Retrieve linked Label documents by ID

Retrieves documents relationships.

get

Retrieves documents relationships for the specified ID.

Authorizations
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 000000000000000000000001
documentIdstringRequired

Label Document Identifier

Example: 000000000000000000000001
Responses
200
Successful operation.
application/json
get
GET /api/v1/policy-labels/{definitionId}/documents/{documentId}/relationships HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "target": {
    "id": "000000000000000000000001",
    "policyId": "000000000000000000000001",
    "hash": "hash",
    "signature": 0,
    "status": "NEW",
    "tag": "Block tag",
    "type": "Document type",
    "createDate": "1900-01-01T00:00:00.000Z",
    "updateDate": "1900-01-01T00:00:00.000Z",
    "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
    "document": {
      "@context": [
        "text"
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "type": [
        "text"
      ],
      "verifiableCredential": [
        {}
      ],
      "proof": {}
    }
  },
  "relationships": [
    {
      "id": "000000000000000000000001",
      "policyId": "000000000000000000000001",
      "hash": "hash",
      "signature": 0,
      "status": "NEW",
      "tag": "Block tag",
      "type": "Document type",
      "createDate": "1900-01-01T00:00:00.000Z",
      "updateDate": "1900-01-01T00:00:00.000Z",
      "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
      "document": {
        "@context": [
          "text"
        ],
        "id": "00000000-0000-0000-0000-000000000000",
        "type": [
          "text"
        ],
        "verifiableCredential": [
          {}
        ],
        "proof": {}
      }
    }
  ]
}

Last updated