Accept a workspace invitation

Accept a workspace invitation sent to the current identity.

HTTP
POST $CLOUDSIGMA_API_BASE/workspaces/invitations/{invitation_id}/accept

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and obtain invitation_id from the invitation received. The invitation must be sent to the current user.

Path parameters

Replace $CLOUDSIGMA_API_KEY and $INVITATION_ID with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/workspaces/invitations/$INVITATION_ID/accept" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY"

Parameter

Type

Required

Description

invitation_id

string

Yes

Invitation ID to accept.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "accepted": true
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.accepted

boolean

Whether the invitation has been accepted.

Error response

JSON
{
  "code": "NOT_FOUND",
  "msg": "未找到",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on