Skip to main content
POST
/
api
/
access-control
Creates a new access control area with default roles (View, Add, Manage, Change, Delete).
curl --request POST \
  --url https://{tenant}.ekso.app/api/access-control \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity": "<string>",
  "accessControlId": "<string>",
  "area": "<string>",
  "role": 123,
  "userGroup": [
    "<string>"
  ],
  "isSystem": true,
  "tenantId": "<string>",
  "id": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updated": "2023-11-07T05:31:56Z",
  "updatedBy": "<string>",
  "deleted": true
}
'

Authorizations

Authorization
string
header
required

JWT Bearer token. Obtain via the OAuth 2.0 token endpoint.

Body

The access control rule specifying the new area name.

entity
null | string
accessControlId
string
area
string
role
integer
userGroup
string[]
isSystem
boolean
tenantId
string
id
string
created
string<date-time>
createdBy
string
updated
string<date-time>
updatedBy
string
deleted
boolean

Response

Access control area and default roles created successfully.