Skip to the documentation
API

Decline an invitation

Turns an invitation down, so its link stops working.

POST/account/invitations/{invitationId}/decline

Runs the real call on your workspace.

POST /account/invitations/{invitationId}/decline

Turns an invitation down, so its link stops working.

Example

Needs account:write. Whoever sent it is told, and it cannot be taken back: they have to invite the person again.

curl
curl -X POST "$OE/account/invitations/winv_6bb640f5b99e47deb758f1f5/decline" -H "$AUTH"
Response
{ "object": "invitation", "id": "winv_6bb640f5b99e47deb758f1f5", "declined": true }

An invitation the person already accepted is a 409 invitation_accepted.

Reference