Bulk Operations

Bulk Create Users

Changed on
post/v2/facts/{proj_id}/{env_id}/bulk/users

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": [
    {
      "key": "user|892179821739812389327",
      "email": "jane@coolcompany.com",
      "first_name": "Jane",
      "last_name": "Doe",
      "attributes": {
        "department": "marketing",
        "age": 30,
        "subscription": {
          "tier": "pro",
          "expired": false
        }
      },
      "role_assignments": [
        {
          "role": "admin",
          "tenant": "stripe-inc"
        },
        {
          "role": "viewer",
          "tenant": "othercompany.com"
        }
      ]
    }
  ]
}

Response

Successful Response

UserCreateBulkOperationResult required

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status