Last updated 7 months ago
Add policy test. Only users with the Standard Registry role are allowed to make the request.
/policies/{policyId}/test
Policy Id
000000000000000000000001
curl -L \ --request POST \ --url '/api/v1/policies/{policyId}/test' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: multipart/form-data' \ --form 'file=@[object Object]'
[ { "id": "000000000000000000000001", "uuid": "00000000-0000-0000-0000-000000000000", "name": "Test Name", "policyId": "000000000000000000000001", "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001", "date": "1900-01-01T00:00:00.000Z", "duration": 0, "progress": 0, "resultId": "00000000-0000-0000-0000-000000000000", "result": "text", "status": "New" } ]