Policies
Get details of a specific policy by ID.
Unique identifier of the resource
1
Policy details.
Forbidden
The given resource or object was not found or does not exist.
GET /api/v1/policies/{id}/ HTTP/1.1
Host: sandbox.akinon.com
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
1
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:00Z
Modified Date
2024-11-15T00:00:00Z
The policy was successfully updated.
Forbidden
The given resource or object was not found or does not exist.
PUT /api/v1/policies/{id}/ HTTP/1.1
Host: sandbox.akinon.com
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
1
The 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
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Retrieve a list of policies with optional filtering.
Filters 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:00Z
Filter by modification date using supported lookup expressions (e.g., gt
, gte
, lt
, lte
, date__gt
, etc.).
modified_date__lt=2024-01-01T00:00:00Z
Filter by user IDs associated with the policy.
1
Filter by frontend permission group IDs associated with the policy.
5
A list of policies.
Forbidden
GET /api/v1/policies/ HTTP/1.1
Host: sandbox.akinon.com
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:00Z
Modified Date
2024-11-15T00:00:00Z
The policy was successfully created.
Required field(s) are missing, data is invalid, or the action is not allowed.
Forbidden
POST /api/v1/policies/ HTTP/1.1
Host: sandbox.akinon.com
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"
}
Was this helpful?