Cids the provided policy, and all the included controls. All items are stored in the blob store.
POST /gov/v1/cid/policy Select code sample Fetch cURL
const url = 'https://example.com/gov/v1/cid/policy';const options = { method: 'POST', headers: {Authorization: 'Bearer
', 'Content-Type': 'application/json'}, body: '{"control":[{"citation":[{"title":"example","url":"example"}],"controlCode":"ADAIP-RIS-044","description":"Must ensure equitable access for all individuals and groups.","extra":{"additionalProperty":"example"},"title":"Ensuring Equitable Access"}],"description":"Framework for ethical AI development.","extra":{"additionalProperty":"example"},"name":"EUAI Act","version":"1.0.2"}'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}
curl --request POST \ --url https://example.com/gov/v1/cid/policy \ --header 'Authorization: Bearer
' \ --header 'Content-Type: application/json' \ --data '{ "control": [ { "citation": [ { "title": "example", "url": "example" } ], "controlCode": "ADAIP-RIS-044", "description": "Must ensure equitable access for all individuals and groups.", "extra": { "additionalProperty": "example" }, "title": "Ensuring Equitable Access" } ], "description": "Framework for ethical AI development.", "extra": { "additionalProperty": "example" }, "name": "EUAI Act", "version": "1.0.2" }'
Cids the provided policy, and all the included controls. All items are stored in the blob store. Returns the CID of the entire policy and each control.