Create a custom role
Create a custom role that can be set on users.
POST
/api/v1/{team_slug}/{app_slug}/custom-rolesAuthorization
AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
Path parameters
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
Request body
requiredapplication/jsoncustom role details
is_defaultbooleannamestringrequiredslugstringrequiredResponses
200
custom role created successfully
datainternal_pkg_webserver_v1.CustomRolerequiredShow propertiesHide properties
app_idstringcreated_atstringidstringis_defaultbooleannamestringslugstringupdated_atstringdetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequired400
Invalid request (e.g. bad payload, validation error)
detailsstring[]messagestringsuccessbooleanrequired401
Unauthorized access
detailsstring[]messagestringsuccessbooleanrequired409
Conflict (e.g. already exists)
detailsstring[]messagestringsuccessbooleanrequired500
Internal server error
detailsstring[]messagestringsuccessbooleanrequired