跳转到主要内容
POST
/
space
/
{spaceId}
/
invitation
/
email
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/space/{spaceId}/invitation/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emails": [
    "[email protected]"
  ],
  "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
emails
string<email>[]
required
Minimum array length: 1
role
enum<string>
required
可用选项:
owner,
creator,
editor,
commenter,
viewer

Response

201 - application/json

Successful response, return invitation information.

{key}
object