v4
latestOpenAPI 3.1.02026-08-02261331761.5 KBBulk Operations
Bulk Create Or Replace Roles
Create or replace roles in bulk.
put/v2/schema/{proj_id}/{env_id}/bulk/roles
Path parameters
proj_idstring required
Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
env_idstring required
Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").
Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").
Request body
Example request
{
"operations": [
{
"granted_to": {
"users_with_role": [
{
"role": "Admin",
"on_resource": "organization",
"linked_by_relation": "owner"
}
]
}
}
]
}Response
Successful Response