Truvity Platform API. (0.28.6)
Download OpenAPI specification:Download
Truvity Platform API.
Create a new API key.
Create a new API key resource.
Authorizations:
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "secret": "pa$$word",
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for API Keys.
Search for API Keys with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (ApiKeyFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (ApiKeySort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "expiration": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "subject_id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_EXPIRATION",
- "order": "ASC"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Get the latest version of API Key.
Get the latest version of API Key.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyLatest( context.TODO(), "id", &sdkgo.ApiKeyLatestRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Update API Key.
Update API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete API Key.
Delete API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.ApiKeys.ApiKeyDelete( context.TODO(), "id", &sdkgo.ApiKeyDeleteRequest{ IfMatch: "If-Match", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore API Key.
Restore API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyRestore( context.TODO(), "id", &sdkgo.ApiKeyRestoreRequest{ IfMatch: "If-Match", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read API Key's history.
History of the API Key's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyHistory( context.TODO(), "id", &sdkgo.ApiKeyHistoryRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the API Key.
Read the specific version of the API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyRevision( context.TODO(), "id", 1, &sdkgo.ApiKeyRevisionRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Import Credential.
Import a Verifiable Credential.
Authorizations:
query Parameters
blob_id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Credentials.
Search for Credentials with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (CredentialFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (CredentialSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "multihash": {
- "operator": "EQUAL",
- "value": "string"
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_ID",
- "order": "ASC"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Upload Credential's blob.
The upload Credential's blob operation.
Authorizations:
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialUpload( context.TODO(), &sdkgo.CredentialUploadRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Get the latest version of Credential.
Get the latest version of Credential.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialLatest( context.TODO(), "id", &sdkgo.CredentialLatestRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete Credential.
Delete Credential's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.Credentials.CredentialDelete( context.TODO(), "id", &sdkgo.CredentialDeleteRequest{ IfMatch: "If-Match", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore Credential.
Restore Credential's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialRestore( context.TODO(), "id", &sdkgo.CredentialRestoreRequest{ IfMatch: "If-Match", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read Credential's history.
History of the Credential's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialHistory( context.TODO(), "id", &sdkgo.CredentialHistoryRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the Credential.
Read the specific version of the Credential's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialRevision( context.TODO(), "id", 1, &sdkgo.CredentialRevisionRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Download of Credential's blob.
Download of Credential's blob.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
"string"
Verify Credential.
Verify a Verifiable Credential.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialVerify( context.TODO(), "id", )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "verified": true
}
Get DID-Document.
Get DID-Document for did:web Method Specification.
path Parameters
tenant_id required | string <uuid> The ID of the tenant. |
header Parameters
If-None-Match | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-None-Match header field is used to declare a list of identifiers that are required to fail matching all the current resource version identifiers as a pre-condition for executing the request on the server side. This is especially used in conjunction with an * (asterix) that is matching all possible resource identifiers to ensure the initial creation of a resource. Other use cases are possible but rare. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.2 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Desk.DidDocumentGet( context.TODO(), "tenant_id", &sdkgo.DidDocumentGetRequest{}, )
Response samples
- 200
- 400
- 429
- 500
- default
{- "@context": [
- "string"
], - "id": "strings",
- "verificationMethod": [
- {
- "publicKeyBase58": "string",
- "id": "strings",
- "type": "Multikey",
- "controller": "strings",
- "@context": [
- "string"
]
}
], - "authentication": [
- "strings"
], - "assertionMethod": [
- "strings"
],
}
Receive DIDComm Message.
Receive DIDComm Message.
path Parameters
tenant_id required | string <uuid> The ID of the tenant. |
Request Body schema: application/didcomm-signed+jsonrequired
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
"string"
Response samples
- 400
- 415
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Search for DIDComm Messages.
Search for DIDComm Messages with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (DidcommMessageFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (DidcommMessageSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "credentials": {
- "operator": "IN",
- "values": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "from": {
- "operator": "EQUAL",
- "value": "strings"
}, - "presentations": {
- "operator": "IN",
- "values": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "to": {
- "operator": "EQUAL",
- "value": "strings"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_FROM",
- "order": "ASC"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- null
], - "proof": {
- "type": null,
- "id": null
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Send a DIDComm Message.
Send a DIDComm Message to a recipient.
Authorizations:
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | object (DIDCommMessageSend) The request to send a DIDComm message. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "to": "strings",
- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "credentials": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "disable_transitive_closure": true,
- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "presentations": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Get the latest version of DIDComm Message.
Get the latest version of DIDComm Message.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageLatest( context.TODO(), "id", &sdkgo.DidcommMessageLatestRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete DIDComm Message.
Delete DIDComm Message's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.DidcommMessages.DidcommMessageDelete( context.TODO(), "id", &sdkgo.DidcommMessageDeleteRequest{ IfMatch: "If-Match", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore DIDComm Message.
Restore DIDComm Message's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageRestore( context.TODO(), "id", &sdkgo.DidcommMessageRestoreRequest{ IfMatch: "If-Match", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read DIDComm Message's history.
History of the DIDComm Message's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageHistory( context.TODO(), "id", &sdkgo.DidcommMessageHistoryRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- null
], - "proof": {
- "type": null,
- "id": null
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the DIDComm Message.
Read the specific version of the DIDComm Message's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageRevision( context.TODO(), "id", 1, &sdkgo.DidcommMessageRevisionRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Return the tenant's DID(did:web) document.
Return the tenant's DID(did:web) document. Comparing to DIDDocumentGet endpoint, this one returns the tenant's DID(did:web) document for the authenticated tenant only.
Authorizations:
header Parameters
If-None-Match | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-None-Match header field is used to declare a list of identifiers that are required to fail matching all the current resource version identifiers as a pre-condition for executing the request on the server side. This is especially used in conjunction with an * (asterix) that is matching all possible resource identifiers to ensure the initial creation of a resource. Other use cases are possible but rare. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.2 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Dids.DidDocumentSelfGet( context.TODO(), &sdkgo.DidDocumentSelfGetRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "@context": [
- "string"
], - "id": "strings",
- "verificationMethod": [
- {
- "publicKeyBase58": "string",
- "id": "strings",
- "type": "Multikey",
- "controller": "strings",
- "@context": [
- "string"
]
}
], - "authentication": [
- "strings"
], - "assertionMethod": [
- "strings"
],
}
Create Draft.
Create Draft's resource.
Authorizations:
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | object (DraftCreate) The schema for creating a draft. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Drafts.
Search for Drafts with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (DraftFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (DraftSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "meta": {
- "subject": {
- "operator": "EQUAL",
- "value": "string"
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_TYPE",
- "order": "ASC"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Get the latest version of Draft.
Get the latest version of Draft.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Drafts.DraftLatest( context.TODO(), "id", &sdkgo.DraftLatestRequest{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Update Draft.
Update Draft's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See [API Guideline Rule #181][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
Request Body schema: application/jsonrequired
required | object (DraftCreate) The schema for creating a draft. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}