Policies
Get details of a specific policy by ID.
Unique identifier of the resource
1
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
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
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
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
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?