This endpoint enables you to create custom roles for organizations within your scope.
The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
Custom role creation payload.
Name of the Custom Role. Cannot contain any of the following characters: ,;/\|<>.
1 - 100"My Custom Role"
Unique identifier. Cannot contain any of the following characters: ,;/\|<>.
1 - 100"my_custom_role"
List of permission names. (Use GET /api/v2/permissions to get a list of all available permissions for your organization.)
[
"business_edit",
"business_edit_name",
"review_read"
]Description of the Custom Role. Cannot contain any of the following characters: ,;/\|<>.
1 - 200"This Custom Role is just an example for our API documentation"
Organization ID (optional). Specify if you have access to more than one organization.
42