Roles

Create role

Creates a custom role with a permission tree spanning tenant + division + environment scopes. New id returned in ld-role header. System roles cannot be created via this API.

post/tenants/{tenant_id}/roles

Request

  • Base URL
    https://api.laserdata.cloud
  • Auth
    • API key in header ld-api-key
    • or API key in cookie session

Path parameters

tenant_idinteger required
Example:7261845022003200000

Tenant identifier

Request body

namestring required

Example request

{
  "name": "tenant-admin"
}

Response

Role created. The new role ID is returned in the ld-role header

Changes

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