Skip to content

Generate applied policy report

POST
/api/v1/projects/{projectId}/policies/report
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

projectId
required
string

Project ID, UUID (urn:uuid optional), or slug:my-project

Policy report request

Media type application/json
object
format

Pdf returns a PDF, else a zip

string
Example
pdf
paper

Pdfgen default when omitted

string
Example
a4
policyCids
required

At least one CID is required

Array<string>
>= 1 items

Rendered policy report document

file

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
error
string
Example
Invalid request body

Unauthorized - Authentication required

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Forbidden - No project access or insufficient permissions

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Project not found

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Internal server error

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Bad gateway - pdfgen report generation failed

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body