/ Docs
APIUsers

Decline Invitation

Decline a pending invitation addressed to the current user. 404 when the invitation does not exist or is addressed to someone else; 409 when it is yours but no longer pending. Declining never creates a membership, releases the seat the invitation reserved, and leaves the org free to invite the same address again. The decline is recorded in the inviting org's audit log.

POST
/v1/users/me/invitations/{invitation_id}/decline

Authorization

BearerAuth
AuthorizationBearer <token>

Botyard API key — see /docs/authentication.

In: header

Path Parameters

invitation_id*Invitation Id

Response Body

application/json

curl -X POST "https://example.com/v1/users/me/invitations/string/decline"
{
  "invitation_id": "string",
  "org_id": "string",
  "email": "string",
  "role_id": "string",
  "invited_by": "string",
  "status": "pending",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "error_code": "string",
  "errors": [
    {
      "pointer": "string",
      "detail": "string",
      "type": "string"
    }
  ],
  "trace_id": "string"
}