Searching Policies

Search policies.

post

Search policies. Only users with the Standard Registry role are allowed to make the request.

Authorizations
Body
policyIdstringOptionalExample: 000000000000000000000001
typestring Β· enumOptionalExample: LocalPossible values:
ownerstringOptionalExample: #did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001
minVcCountnumberOptionalExample: 0
minVpCountnumberOptionalExample: 0
minTokensCountnumberOptionalExample: 0
textstringOptionalExample: Policy name
thresholdnumber Β· max: 100OptionalExample: 0
Responses
200
Successful operation.
application/json
post
POST /api/v1/analytics/search/policies HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "policyId": "000000000000000000000001"
}
{
  "target": {},
  "result": [
    {
      "type": "Local",
      "id": "000000000000000000000001",
      "topicId": "0.0.1",
      "messageId": "0000000000.000000001",
      "uuid": "00000000-0000-0000-0000-000000000000",
      "name": "Policy name",
      "description": "Policy description",
      "version": "1.0.0",
      "status": "DRAFT",
      "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
      "tags": "Tag",
      "vcCount": 0,
      "vpCount": 0,
      "tokensCount": 0,
      "rate": 0
    }
  ]
}

Last updated