post_memberships_invitations_by_orgid_decline
Calls POST /api/memberships/invitations/{orgId}/decline as the signed-in person · REST reference
Decline the signed-in user's invitation from an organization
Closes every pending membership the invitation names (DECLINED, stamped). Nothing is granted. The organization may invite again later.
Arguments
| Argument | Type | Description | |
|---|---|---|---|
orgIdpath | string (uuid) | required |
Example call
A client sends this over the MCP session; Claude and other agents build it for you. The values are placeholders — the shape is real.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "post_memberships_invitations_by_orgid_decline",
"arguments": {
"orgId": "11111111-1111-4111-8111-111111111111"
}
}
}Result
On success (HTTP 200) the tool returns one text item holding the API's JSON, pretty-printed.
Declined.
{
"data": {
"groupIds": [
"11111111-1111-4111-8111-111111111111"
],
"orgId": "11111111-1111-4111-8111-111111111111",
"status": "INVITED"
},
"success": true
}Fields
| Field | Type | Description |
|---|---|---|
data | object | |
data.groupIds | array of string (uuid) | |
data.orgId | string (uuid) | |
data.status | "INVITED" | "REQUESTED" | "ACCEPTED" | "APPROVED" | "ACTIVE" | "DECLINED" | … (8 values) | The status the memberships carry now. |
success | true |
When it fails
A failed call returns isError: true with the API's message as text. A change the person declines, or lets time out, also comes back this way and nothing changes.
400The request was malformed or failed a guard.
403The DAL refused the caller.
404No such resource — or none this caller may see.
409The organization is not accepting members.
What the model is shown
This is the tool exactly as the server lists it in tools/list. The description starts with the REST call it makes.
{
"name": "post_memberships_invitations_by_orgid_decline",
"description": "POST /api/memberships/invitations/{orgId}/decline — Closes every pending membership the invitation names (DECLINED, stamped). Nothing is granted. The organization may invite again later.\n\nThis changes data. The person is asked to confirm it before it runs, and nothing happens if they decline.",
"inputSchema": {
"type": "object",
"properties": {
"orgId": {
"type": "string"
}
},
"required": [
"orgId"
]
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": false
}
}