Policies

Retrieve Policy

get

Get details of a specific policy by ID.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
chevron-right
200

Policy details.

application/json
get
/api/v1/policies/{id}/

Update Policy

put

Update the details of an existing policy.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body
idintegerRead-onlyOptional

Policy ID

usersinteger[]Optional

List of users associated with the policy.

fe_permission_groupsinteger[]Optional

List of frontend permission groups associated with the policy.

accept_languagesstring[]Optional

List of accepted language codes. If empty, all languages are accepted.

Example: ["en","es","fr"]
created_datestring · date-timeRead-onlyOptional

Created Date

Example: 2024-11-15T00:00:00Z
modified_datestring · date-timeRead-onlyOptional

Modified Date

Example: 2024-11-15T00:00:00Z
Responses
chevron-right
200

The policy was successfully updated.

application/json
put
/api/v1/policies/{id}/

Delete Policy

delete

Delete a specific policy by ID.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
delete
/api/v1/policies/{id}/

No content

List Policies

get

Retrieve a list of policies with optional filtering.

Authorizations
AuthorizationstringRequired
Query parameters
namestringOptional

Filter by name.

created_datestring · date-timeOptional

Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: created_date__gt=2024-01-01T00:00:00Z
modified_datestring · date-timeOptional

Filter by modification date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: modified_date__lt=2024-01-01T00:00:00Z
usersinteger[]Optional

Filter by user IDs associated with the policy.

Example: 1
fe_permission_groupsinteger[]Optional

Filter by frontend permission group IDs associated with the policy.

Example: 5
Responses
chevron-right
200

A list of policies.

application/json
get
/api/v1/policies/

Create Policy

post

Create a new policy.

Authorizations
AuthorizationstringRequired
Body
idintegerRead-onlyOptional

Policy ID

usersinteger[]Optional

List of users associated with the policy.

fe_permission_groupsinteger[]Optional

List of frontend permission groups associated with the policy.

accept_languagesstring[]Optional

List of accepted language codes. If empty, all languages are accepted.

Example: ["en","es","fr"]
created_datestring · date-timeRead-onlyOptional

Created Date

Example: 2024-11-15T00:00:00Z
modified_datestring · date-timeRead-onlyOptional

Modified Date

Example: 2024-11-15T00:00:00Z
Responses
post
/api/v1/policies/

Last updated

Was this helpful?