Create a new Label document for token (VP)
Creates a new label document.
Authorizations
Path parameters
definitionIdstringRequiredExample:
policy label Identifier
000000000000000000000001Body
idstringOptionalExample:
000000000000000000000001definitionIdstringOptionalExample:
000000000000000000000001policyIdstringOptionalExample:
000000000000000000000001policyTopicIdstringOptionalExample:
0.0.1policyInstanceTopicIdstringOptionalExample:
0.0.1topicIdstringOptionalExample:
0.0.1creatorstringOptionalExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001ownerstringOptionalExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001messageIdstringOptionalExample:
0000000000.000000001targetstringOptionalExample:
0000000000.000000001relationshipsstring[]OptionalExample:
["0000000000.000000001"]documentobject | nullableOptional
Responses
200
Successful operation.
application/json
401
Unauthorized.
403
Forbidden.
500
Internal server error.
application/json
post
/policy-labels/{definitionId}/documentsPOST /api/v1/policy-labels/{definitionId}/documents HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 485
{
"id": "000000000000000000000001",
"definitionId": "000000000000000000000001",
"policyId": "000000000000000000000001",
"policyTopicId": "0.0.1",
"policyInstanceTopicId": "0.0.1",
"topicId": "0.0.1",
"creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"messageId": "0000000000.000000001",
"target": "0000000000.000000001",
"relationships": [
"0000000000.000000001"
],
"document": {}
}{
"id": "000000000000000000000001",
"definitionId": "000000000000000000000001",
"policyId": "000000000000000000000001",
"policyTopicId": "0.0.1",
"policyInstanceTopicId": "0.0.1",
"topicId": "0.0.1",
"creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"messageId": "0000000000.000000001",
"target": "0000000000.000000001",
"relationships": [
"0000000000.000000001"
],
"document": {}
}PreviousRetrieve token (VP) and all its dependencies by document IDNextRetrieve a list of created Label documents
Last updated