Role Assignments
Bulk Operations
Bulk create role assignments
Changed onpost/v2/facts/{proj_id}/{env_id}/role_assignments/bulk
Request
- Base URLhttps://api.permit.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
proj_idstring required
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").
Query parameters
missing_user_policy'fail' | 'ignore' | 'create'
An enumeration.
Policy for missing users - 'fail': Fail the entire operation if a user is missing; 'ignore': Skip assignments for missing users; 'create': Create missing users and continue with the operation
Request body
Example request
[
{
"user": "jane@coolcompany.com",
"role": "admin",
"tenant": "stripe-inc"
}
]Response
Successful Response
Changes
- info
added the non-success response with the status
- info
- info
added the non-success response with the status
- info