Update a Custom Role, allowing you to set the name, api_id, description, and permissions of an already existing Custom Role.
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.
API identifier of the custom role (api_id)
Custom role update 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"
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"
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"
]Organization ID (optional). Specify if you have access to more than one organization.
42