Policy Import from IPFS
Creates a request to import a remote policy.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
messageIdstringRequired
Responses
200
Policy.
application/json
idstringRequiredExample:
000000000000000000000001uuidstringRequiredExample:
00000000-0000-0000-0000-000000000000namestringRequiredExample:
Policy namedescriptionstringRequiredExample:
DescriptionversionstringRequiredExample:
1.0.0topicIdstringRequiredExample:
0.0.1instanceTopicIdstringRequiredExample:
0.0.1messageIdstringRequiredExample:
0000000000.000000001policyTagstringRequiredExample:
TagcreatorstringRequiredExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001ownerstringRequiredExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001statusstring · enumRequiredExample:
NEWPossible values: 401
Unauthorized.
403
Forbidden.
500
Internal server error.
application/json
post/external-policies/import
POST /api/v1/external-policies/import HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"messageId": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"id": "000000000000000000000001",
"uuid": "00000000-0000-0000-0000-000000000000",
"name": "Policy name",
"description": "Description",
"version": "1.0.0",
"topicId": "0.0.1",
"instanceTopicId": "0.0.1",
"messageId": "0000000000.000000001",
"policyTag": "Tag",
"creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"status": "NEW"
}PreviousPreviews the policy from IPFS without loading it into the local DB
NextApproves policy Asynchronously
Last updated