跳转到主要内容
PATCH
/
space
/
{spaceId}
/
collaborators
cURL
curl --request PATCH \
  --url https://app.teable.ai/api/space/%7BspaceId%7D/collaborators \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"principalId":"string","principalType":"user","role":"owner"}'

授权

Authorization
string
header
必填

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

路径参数

invitationId
string
必填
spaceId
string
必填

请求体

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

响应

200

Successful response.

Last modified on March 5, 2026