跳转到主要内容
PATCH
/
space
/
{spaceId}
/
collaborators
cURL
curl --request PATCH \
  --url http://127.0.0.1:3000/api/space/{spaceId}/collaborators \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "principalId": "<string>",
  "principalType": "user",
  "role": "owner"
}
'

Authorizations

Authorization
string
header
required

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

Path Parameters

invitationId
string
required
spaceId
string
required

Body

application/json
principalId
string
required
principalType
enum<string>
required
可用选项:
user,
department
role
enum<string>
required
可用选项:
owner,
creator,
editor,
commenter,
viewer

Response

200

Successful response.