Generate applied policy report
const url = 'https://localhost:10001/api/v1/projects/example/policies/report';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"format":"pdf","paper":"a4","policyCids":["example"]}'};
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://localhost:10001/api/v1/projects/example/policies/report \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "format": "pdf", "paper": "a4", "policyCids": [ "example" ] }'Fetches the policy manifest for the project and renders it to a report document via the pdfgen service
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Request Body
Section titled “Request Body ”Policy report request
object
Pdf returns a PDF, else a zip
Example
pdfPdfgen default when omitted
Example
a4At least one CID is required
Responses
Section titled “ Responses ”Rendered policy report document
Bad request - Invalid project ID, request body, or missing policy CIDs
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyError body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyUnauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyError body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyForbidden - No project access or insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyError body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyProject not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyError body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyInternal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyError body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyBad gateway - pdfgen report generation failed
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request bodyError body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
Invalid request body