Custom Roles
Create Custom Role
This endpoint enables you to create custom roles for organizations within your scope.
post/custom_role
Request
- Base URLhttps://api.partoo.co/v2
- AuthAPI key in header x-APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
org_idinteger
Organization ID. Only PROVIDER users can specify a different organization. If not provided, defaults to your own organization.
Request body
Example request
{
"name": "My Custom Role",
"api_id": "my_custom_role",
"description": "This Custom Role is just an example for our API documentation",
"permissions": [
"business_edit",
"business_edit_name",
"review_read"
],
"org_id": 42
}Response
OK
Example response
{
"api_id": "my_custom_role"
}Changes
No recorded changes to this operation across all 2 revisions of this API.