List applied policies
const url = 'https://localhost:10001/api/v1/projects/example/policies';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:10001/api/v1/projects/example/policies \ --header 'Authorization: <Authorization>'List all policies applied to a specific project
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Responses
Section titled “ Responses ”Applied policies
A policy applied to a project, tracked independently of the library template it came from
object
Verifiable actor; appliedBy is the label
Set via the archive endpoint
Set via the archive endpoint
Verifiable actor; archivedBy is the label
Assigned by the integrity service
Set via the archive endpoint
Taken from the path on create
Taken from the path on create
Derived from name
Assigned by the integrity service
Example generated
[ { "name": "example" }]Bad request - Invalid project ID
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No project access
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Project not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}