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 |
|---|---|---|---|
|
string |
Yes |
Invitation ID to accept. |
Successful response¶
JSON
{
"code": "OK",
"msg": "OK",
"data": {
"accepted": true
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
boolean |
Whether the invitation has been accepted. |
Error response¶
JSON
{
"code": "NOT_FOUND",
"msg": "未找到",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |
Last updated on