curl --request POST \
--url https://api.example.com/v1/roles \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"title": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"type": "TYPE_UNSPECIFIED"
}
'{
"name": "<string>",
"title": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"type": "TYPE_UNSPECIFIED"
}Creates a new custom role. Permissions required: bb.roles.create
curl --request POST \
--url https://api.example.com/v1/roles \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"title": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"type": "TYPE_UNSPECIFIED"
}
'{
"name": "<string>",
"title": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"type": "TYPE_UNSPECIFIED"
}The ID to use for the role, which will become the final component of the role's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/.
Role defines a set of permissions that can be assigned to users.
Resource name. Format: roles/{role}
Human-readable title.
Optional description of the role.
List of permission identifiers granted by this role.
Role type indicating if it's built-in or custom.
TYPE_UNSPECIFIED, BUILT_IN, CUSTOM OK
Role defines a set of permissions that can be assigned to users.
Resource name. Format: roles/{role}
Human-readable title.
Optional description of the role.
List of permission identifiers granted by this role.
Role type indicating if it's built-in or custom.
TYPE_UNSPECIFIED, BUILT_IN, CUSTOM Was this page helpful?