Skip to content

List project policies

GET
/api/v1/projects/{projectId}/policies
curl --request GET \
--url https://localhost:10001/api/v1/projects/1/policies \
--header 'Authorization: <Authorization>'

List all policies applied to a specific project

projectId
required
integer

Project ID

Project policies

Media type application/json
Array<object>
object
appliedAt
string
appliedBy
string
archivedAt
string
archivedBy
string
cid
string
createdAt
string
id
integer
isArchived
boolean
isReapplied
boolean
name
string
policyId
integer
projectId
integer
slug
string
status
string
subjectCid
string
updatedAt
string
Example generated
[
{
"appliedAt": "example",
"appliedBy": "example",
"archivedAt": "example",
"archivedBy": "example",
"cid": "example",
"createdAt": "example",
"id": 1,
"isArchived": true,
"isReapplied": true,
"name": "example",
"policyId": 1,
"projectId": 1,
"slug": "example",
"status": "example",
"subjectCid": "example",
"updatedAt": "example"
}
]

Bad request - Invalid project ID

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Project not found

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Internal server error

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}