Importing Policy from a Zip file with Metadata

Imports new policy from a zip file with metadata.

post

Imports new policy and all associated artifacts, such as schemas and VCs, from the provided zip file into the local DB. Only users with the Standard Registry role are allowed to make the request.

Authorizations
Query parameters
versionOfTopicIdstringRequired

Topic Id

Body
policyFilestring Β· binaryOptional
metadatastring Β· binaryOptional
Responses
200
Successful operation.
application/json
Responseobject
post
POST /api/v1/policies/push/import/file-metadata?versionOfTopicId=text HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 43

{
  "policyFile": "binary",
  "metadata": "binary"
}
{}

Last updated