跳转到主要内容
POST
/
space
/
{spaceId}
/
collaborator
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/space/{spaceId}/collaborator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "collaborators": [
    {
      "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

spaceId
string
required

Body

application/json
collaborators
object[]
required
role
enum<string>
required
可用选项:
owner,
creator,
editor,
commenter,
viewer

Response

200

Successful response.

Last modified on December 10, 2025