Decline Workspace Invitation
POST
/web/v1/system/profile/invitations/{invitationBizId}/decline JWTDeclines a workspace invitation with an optional reason. Returns 200 OK with no-content data.
Required Headers
| Header | Example Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Accept | application/json | Expected response type |
| X-Client-Hash | Client device fingerprint | |
| Accept-Language | en, zh, zh-Hant, ja, vi | Response language (default: en) |
| Authorization | Bearer | JWT access token |
Request Parameters
Path Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
invitationBizId | String | Required | path | Invitation business ID |
Request Body (optional)
InvitationDeclineRequest:
| Name | Type | Required | In | Description |
|---|---|---|---|---|
reason | String | Optional | body | Optional reason for declining (max 500 characters) |
Example request body:
Request Body 200
{
"reason": "Not interested at this time"
}Request Example
json
{
"reason": "Not interested at this time"
}Success Response
Success 200
{
"success": true,
"code": "2040",
"message": "NO_CONTENT",
"data": null
}Error Responses
Unauthorized 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}| Code | HTTP | Description |
|---|---|---|
4010 | 401 | Unauthorized (invalid or missing JWT token) |
WORKSPACE.INVITATION_ALREADY_PROCESSED | 409 | Invitation was already accepted, declined, or cancelled |
Notes
- The request body is optional. If omitted, the invitation is declined without a reason.
- The
reasonfield is limited to 500 characters. - The invitation is consumed and cannot be declined again.