Policies
Get details of a specific policy by ID.
Unique identifier of the resource
1Policy details.
Policy ID
List of users associated with the policy.
List of frontend permission groups associated with the policy.
List of accepted language codes. If empty, all languages are accepted.
["en","es","fr"]Created Date
2024-11-15T00:00:00ZModified Date
2024-11-15T00:00:00ZForbidden
The given resource or object was not found or does not exist.
GET /api/v1/policies/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"users": [
1
],
"fe_permission_groups": [
1
],
"accept_languages": [
"en",
"es",
"fr"
],
"created_date": "2024-11-15T00:00:00Z",
"modified_date": "2024-11-15T00:00:00Z"
}Update the details of an existing policy.
Unique identifier of the resource
1Policy ID
List of users associated with the policy.
List of frontend permission groups associated with the policy.
List of accepted language codes. If empty, all languages are accepted.
["en","es","fr"]Created Date
2024-11-15T00:00:00ZModified Date
2024-11-15T00:00:00ZThe policy was successfully updated.
Policy ID
List of users associated with the policy.
List of frontend permission groups associated with the policy.
List of accepted language codes. If empty, all languages are accepted.
["en","es","fr"]Created Date
2024-11-15T00:00:00ZModified Date
2024-11-15T00:00:00ZForbidden
The given resource or object was not found or does not exist.
PUT /api/v1/policies/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"users": [
1
],
"fe_permission_groups": [
1
],
"accept_languages": [
"en",
"es",
"fr"
]
}{
"id": 1,
"users": [
1
],
"fe_permission_groups": [
1
],
"accept_languages": [
"en",
"es",
"fr"
],
"created_date": "2024-11-15T00:00:00Z",
"modified_date": "2024-11-15T00:00:00Z"
}Delete a specific policy by ID.
Unique identifier of the resource
1The policy was successfully deleted.
No content
Forbidden
The given resource or object was not found or does not exist.
DELETE /api/v1/policies/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Retrieve a list of policies with optional filtering.
Filter by name.
Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).
created_date__gt=2024-01-01T00:00:00ZFilter by modification date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).
modified_date__lt=2024-01-01T00:00:00ZFilter by user IDs associated with the policy.
1Filter by frontend permission group IDs associated with the policy.
5A list of policies.
Policy ID
List of users associated with the policy.
List of frontend permission groups associated with the policy.
List of accepted language codes. If empty, all languages are accepted.
["en","es","fr"]Created Date
2024-11-15T00:00:00ZModified Date
2024-11-15T00:00:00ZForbidden
GET /api/v1/policies/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"users": [
1
],
"fe_permission_groups": [
1
],
"accept_languages": [
"en",
"es",
"fr"
],
"created_date": "2024-11-15T00:00:00Z",
"modified_date": "2024-11-15T00:00:00Z"
}
]Create a new policy.
Policy ID
List of users associated with the policy.
List of frontend permission groups associated with the policy.
List of accepted language codes. If empty, all languages are accepted.
["en","es","fr"]Created Date
2024-11-15T00:00:00ZModified Date
2024-11-15T00:00:00ZThe policy was successfully created.
Policy ID
List of users associated with the policy.
List of frontend permission groups associated with the policy.
List of accepted language codes. If empty, all languages are accepted.
["en","es","fr"]Created Date
2024-11-15T00:00:00ZModified Date
2024-11-15T00:00:00ZRequired field(s) are missing, data is invalid, or the action is not allowed.
Forbidden
POST /api/v1/policies/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"users": [
1
],
"fe_permission_groups": [
1
],
"accept_languages": [
"en",
"es",
"fr"
]
}{
"id": 1,
"users": [
1
],
"fe_permission_groups": [
1
],
"accept_languages": [
"en",
"es",
"fr"
],
"created_date": "2024-11-15T00:00:00Z",
"modified_date": "2024-11-15T00:00:00Z"
}Last updated
Was this helpful?

