Policy Import from IPFS
Creates a request to import a remote policy.
Authorizations
Body
messageIdstringRequired
Responses
200
Policy.
application/json
401
Unauthorized.
403
Forbidden.
500
Internal server error.
application/json
post
POST /api/v1/external-policies/import HTTP/1.1
Host:
Authorization: Bearer JWT
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 DBNextApproves policy Asynchronously
Last updated