Returns Role as per MessageID

Get role

Returns role

GET/api/v1/entities/roles/{messageId}
Path parameters
messageId*string

Message identifier

Example: "1706823227.586179534"
Response

Role details

Body
id*string

Message identifier

Example: "1706823227.586179534"
uuid*string

UUID

Example: "93938a10-d032-4a9b-9425-092e58bffbf7"
item*RoleDTO (object)
row*RawMessageDTO (object)
activity*RoleActivityDTO (object)
Request
const response = await fetch('/api/v1/entities/roles/{messageId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "1706823227.586179534",
  "uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
  "item": {
    "id": "667c240639282050117a1985",
    "topicId": "0.0.4481265",
    "consensusTimestamp": "1706823227.586179534",
    "owner": "0.0.1",
    "uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
    "status": "NEW",
    "statusReason": "Revoked",
    "lang": "en-US",
    "responseType": "str",
    "statusMessage": "text",
    "files": [
      "QmYtKEVfpbDwn7XLHjnjap224ESi3vLiYpkbWoabnxs6cX"
    ],
    "topics": [
      "0.0.4481265"
    ],
    "tokens": [
      "0.0.4481265"
    ],
    "type": "Role-Document",
    "action": "create-vc-document",
    "options": {
      "role": "Registrant",
      "group": "Registrants",
      "issuer": "did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265"
    },
    "analytics": {
      "policyId": "1706823227.586179534",
      "textSearch": "text"
    }
  },
  "row": {
    "id": "667c240639282050117a1985",
    "consensusTimestamp": "1706823227.586179534",
    "topicId": "0.0.4481265",
    "status": "LOADED",
    "lastUpdate": 1716755852055,
    "message": "eyJpZCI6ImVhYTYyOWZmLWM4NmItNDEyZS1iYzYwLWM4NDk2OTJkMDBiYiIsInN0YXR1cyI6IklTU1VFIiwidHlwZSI6IlN0YW5kYXJkIFJlZ2lzdHJ5IiwiYWN0aW9uIjoiSW5pdCIsImxhbmciOiJlbi1VUyIsImRpZCI6ImRpZDpoZWRlcmE6dGVzdG5ldDpBYkd6Q3hpRzRlZ0xibldCUERpaHdMUVIza0tLcnNGNmJnSDdUdmVGYjI3bl8wLjAuMjE3NiIsInRvcGljSWQiOiIwLjAuMjE3NiIsImF0dHJpYnV0ZXMiOnsiZ2VvZ3JhcGh5IjoidGVzdCIsImxhdyI6InRlc3R0ZXMiLCJ0YWdzIjoidGVzdCJ9fQ",
    "sequenceNumber": 2,
    "owner": "0.0.1914",
    "chunkId": "1706817694.014944860",
    "chunkNumber": 1,
    "chunkTotal": 1,
    "type": "Message",
    "data": "`{\"id\":\"eaa629ff-c86b-412e-bc60-c849692d00bb\",\"status\":\"ISSUE\",\"type\":\"Standard Registry\",\"action\":\"Init\",\"lang\":\"en-US\",\"did\":\"did:hedera:testnet:AbGzCxiG4egLbnWBPDihwLQR3kKKrsF6bgH7TveFb27n_0.0.2176\",\"topicId\":\"0.0.2176\",\"attributes\":{\"geography\":\"test\",\"law\":\"testtes\",\"tags\":\"test\"}}`"
  },
  "activity": {
    "vcs": 10
  }
}

Last updated