Bulk Operations

Bulk Create Or Replace Roles

Create or replace roles in bulk.

put/v2/schema/{proj_id}/{env_id}/bulk/roles

Request

  • Base URL
    https://api.permit.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP 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").

Request body

Example request

{
  "operations": [
    {
      "granted_to": {
        "users_with_role": [
          {
            "role": "Admin",
            "on_resource": "organization",
            "linked_by_relation": "owner"
          }
        ]
      }
    }
  ]
}

Response

Successful Response

createdstring[] required
updatedstring[] required

Changes

No recorded changes to this operation across all 25 revisions of this API.