跳转到主要内容
PATCH
/
base
/
{baseId}
/
authority-matrix-role
/
{authorityMatrixRoleId}
/
user
cURL
curl --request PATCH \
  --url http://127.0.0.1:3000/api/base/{baseId}/authority-matrix-role/{authorityMatrixRoleId}/user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userIds": [
    "<string>"
  ],
  "departmentIds": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "authorityMatrixId": "<string>",
  "users": [
    {
      "id": "<string>",
      "name": "<string>",
      "email": "<string>",
      "avatar": "<string>"
    }
  ],
  "departments": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

baseId
string
required
authorityMatrixRoleId
string
required

Body

application/json
userIds
string[]
departmentIds
string[]

Response

200 - application/json

Successful response

id
string
required
authorityMatrixId
string
required
users
object[]
required
departments
object[]
required