拒绝工作空间邀请
POST
/web/v1/system/profile/invitations/{invitationBizId}/decline JWT拒绝工作空间邀请,可附带拒绝原因。成功时返回 200 OK,data 为 null。
鉴权
Auth Chain: WEB Chain — 需要
Authorization: Bearer <jwt>以下请求头由系统自动注入(前端无需处理):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
请求参数
路径参数
| Name | Type | Required | In | Description |
|---|---|---|---|---|
invitationBizId | String | Required | path | 邀请业务 ID |
请求体(可选)
InvitationDeclineRequest:
| Name | Type | Required | In | Description |
|---|---|---|---|---|
reason | String | Optional | body | 可选的拒绝原因(最多 500 个字符) |
请求体示例:
请求体 200
{
"reason": "暂时不感兴趣"
}请求示例
json
{
"reason": "Not interested at this time"
}成功响应
成功 200
{
"success": true,
"code": "2040",
"message": "NO_CONTENT",
"data": null
}错误响应
未授权 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}| 错误码 | HTTP | 描述 |
|---|---|---|
4010 | 401 | 未授权(无效或缺少 JWT token) |
WORKSPACE.INVITATION_ALREADY_PROCESSED | 409 | 邀请已被接受、拒绝或取消 |
说明
- 请求体为可选。如省略,则拒绝邀请时不附带原因。
reason字段限制为 500 个字符。- 邀请被消费后不可再次拒绝。