跳转到主要内容
POST
/
space
/
{spaceId}
/
invitation
/
link
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/space/{spaceId}/invitation/link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "owner"
}
'
{
  "invitationId": "<string>",
  "role": "owner",
  "inviteUrl": "<string>",
  "invitationCode": "<string>",
  "createdBy": "<string>",
  "createdTime": "<string>"
}

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
role
enum<string>
required
可用选项:
owner,
creator,
editor,
commenter,
viewer

Response

201 - application/json

Successful response, return the ID of the invitation link.

invitationId
string
required
role
enum<string>
required
可用选项:
owner,
creator,
editor,
commenter,
viewer
inviteUrl
string
required
invitationCode
string
required
createdBy
string
required
createdTime
string
required
Last modified on December 10, 2025