Team Members

Withdraw an invitation

Requires team-member:remove, the same ability as removing a member, because withdrawing an invitation and removing a member revoke the same prospective access.

curl -X DELETE https://api.subscriby.net/v1/teams/$TEAM_ID/invitations/$INVITATION_ID \
  -H "Authorization: Bearer $SUBSCRIBY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

An invitee is not a member. Someone who has not accepted has no membership row to remove, only a pending invitation. That is why this is a separate route: removing a member and withdrawing an invitation fail on different things, and using the wrong one returns 404 rather than doing something surprising.

Returns 204 No Content and the invitation link stops working.

delete/v1/teams/{team}/invitations/{invitation}

Request

  • Base URL: https://api.subscriby.net
  • URL: https://api.subscriby.net/v1/teams/{team}/invitations/{invitation}
  • Auth: HTTP bearer

Path parameters

teamstring uuid required

The team, resolved by the route binder.

invitationstring uuid required

The pending invitation, resolved within the team by the route binder.

Headers

Idempotency-Keystring uuid required

A key unique to this operation, such as a fresh UUID. The same key replays the original 2xx response for 24 hours (with Idempotent-Replay: true), so a retry after a timeout never repeats the write; the same key with a different body is refused with 409.

Response

No content

Changes

No recorded changes to this operation across all 1 revision of this API.