Permission Group Services
This service includes Permission Groups endpoints.
GET
Permission Groups List
GET
Permission Groups ListThis method is used to get a list of permission_groups.
Path: /api/v1/permission_groups/
Query Parameters
The following query parameters can be used to get the information about Permissions list.
token
string
header
The API key of the customer account
Example Request
To get list of permission_groups, a GET
request should be sent to /api/v1/permission_groups/
endpoint. No query parameter or request body are required.
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns list of permission_groups information.
This example response serves as a reference to understand the structure and data format of permission groups response.
GET
Permission Group Detail
GET
Permission Group DetailThis method is used to get detail of the permission_group.
Path: /api/v1/permission_groups/<id>
Query Parameters
The following query parameters can be used to get the information about permission_group detail.
token
string
header
The API key of the customer account
Example Request
To get permission_group detail, a GET
request should be sent to /api/v1/permission_groups/<id>
endpoint. No query parameter or body are required.
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns permission_group detail information.
id
integer
The ID of the permission group
name
string
The permission group name
description
string
The description of the permission group
users
integer
Staff id's values of the permission_group
This is an example response of permission_group.
POST
Create Permission Group
POST
Create Permission GroupThis method is used to create the permission_group.
Path: /api/v1/permission_groups/
Query Parameters
The following query parameters can be used to get the information about permission_group.
token
string
header
The API key of the customer account
Example Request
To create permission_group, a POST
request should be sent to /api/v1/permission_groups/
endpoint. No query parameter or body are required.
Example Response (201 Created)
In a successful response with a status code of 201 Created
, the API returns created permission_group detail information.
id
integer
The ID of the permission group
name
string
The permission group name
description
string
The description of the permission group
users
integer
Staff id's values of the permission_group
permissions
integer
Permission id's values of the permission_group
This is an example response.
PUT
Update Permission Group
PUT
Update Permission GroupThis method is used to update the permission_group.
Path: /api/v1/permission_groups/<id>/
Query Parameters
The following query parameters can be used to get the information about permission_group.
token
string
header
The API key of the customer account
Example Request
To update permission_group, a PUT
request should be sent to /api/v1/permission_groups/<id>/
endpoint. No query parameter or body are required.
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns updated permission_group detail information.
id
integer
The ID of the permission group
name
string
The permission group name
description
string
The description of the permission group
users
integer
Staff id's values of the permission_group
permissions
integer
Permission id's values of the permission_group
This is an example response.
POST
Assign User to Permission Group
POST
Assign User to Permission GroupThis method is used to assign the user to the permission_group.
Path: /api/v1/permission_groups/<id>/assign-users/
Query Parameters
The following query parameters can be used.
token
string
header
The API key of the customer account
Example Request
To assign the user to the permission_group, a POST
request should be sent to /api/v1/permission_groups/<id>/assign-users/
endpoint. No query parameter or body are required.
Important Note: (Todo: Need to add the description)
Example Response (200 OK)
In a successful response with a status code of 200 OK
, the API returns users and permission_group pk information.
id
integer
The ID of the permission_group
users
integer
Staff id's values of the permission_group
This is an example response.
Was this helpful?