Skip to main content
POST
/
api
/
authentication-manager
/
user
/
{id}
/
permission
/
batch
addUserPermissionBatch
curl --request POST \
  --url https://api.artemis.cynopsis.co/api/authentication-manager/user/{id}/permission/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Domain-ID: <x-domain-id>' \
  --data '[
  "<string>"
]'
[
  {
    "createdAt": {
      "date": 123,
      "day": 123,
      "hours": 123,
      "minutes": 123,
      "month": 123,
      "nanos": 123,
      "seconds": 123,
      "time": 123,
      "timezoneOffset": 123,
      "year": 123
    },
    "createdBy": {
      "email": "<string>",
      "firstName": "<string>",
      "fullName": "<string>",
      "id": 123,
      "lastName": "<string>"
    },
    "domainId": "<string>",
    "id": 123,
    "permission": "ADMIN",
    "updatedAt": {
      "date": 123,
      "day": 123,
      "hours": 123,
      "minutes": 123,
      "month": 123,
      "nanos": 123,
      "seconds": 123,
      "time": 123,
      "timezoneOffset": 123,
      "year": 123
    },
    "updatedBy": {
      "email": "<string>",
      "firstName": "<string>",
      "fullName": "<string>",
      "id": 123,
      "lastName": "<string>"
    },
    "userId": "<string>"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Domain-ID
integer
required

X-Domain-ID

Path Parameters

id
integer
required

id

Body

application/json · string[]

permission

The body is of type string[].

Response

OK

createdAt
object
createdBy
object
domainId
string
id
integer
permission
enum<string>
Available options:
ADMIN,
ANONYMOUS,
CASE_APPROVE,
CASE_APPROVE_ACCEPTED,
CASE_APPROVE_ACCEPTED_HIGH_RISK,
CASE_APPROVE_ACCEPTED_LOW_RISK,
CASE_APPROVE_ACCEPTED_MEDIUM_HIGH_RISK,
CASE_APPROVE_ACCEPTED_MEDIUM_LOW_RISK,
CASE_APPROVE_ACCEPTED_MEDIUM_RISK,
CASE_APPROVE_REJECTED,
CASE_ASSIGN,
CASE_CREATE,
CASE_DELETE,
CASE_DELETE_COMMENT,
CASE_DELETE_DOCUMENT,
CASE_GROUP_PERMISSIVE,
CASE_PERMISSIVE,
CASE_REQUEST_UPDATE,
CASE_UPDATE,
CASE_VIEW,
ORL_CREATE,
ORL_DELETE,
ORL_UPDATE,
ORL_VIEW,
SERVICE,
USER_CREATE,
USER_DELETE,
USER_GROUP_CREATE,
USER_GROUP_DELETE,
USER_GROUP_UPDATE,
USER_GROUP_VIEW,
USER_REACTIVATE,
USER_UPDATE_PERMISSION,
USER_VIEW
updatedAt
object
updatedBy
object
userId
string