---
title: "Cancel a pending invitation to an organization"
method: DELETE
path: "/organizations/{organization_id}/invitations/{invitation_id}"
tags: ["Organization Invitations"]
---

# Cancel a pending invitation to an organization

`DELETE /organizations/{organization_id}/invitations/{invitation_id}`

## Request

- Base URL: `https://api.upsun.com`
- URL: `https://api.upsun.com/organizations/{organization_id}/invitations/{invitation_id}`
- Auth: OAuth 2
  - Authorization code: `https://auth.api.platform.sh/oauth2/authorize`
  - Token URL: `https://auth.api.platform.sh/oauth2/token`
- TypeScript: <https://skmtc.dev/upsun/apis/upsun-com-rest-api/docs/organizations/:organization_id/invitations/:invitation_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancels the specified invitation.

## Response `204`

No Content

## Other responses

- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/upsun/apis/upsun-com-rest-api.md) - [All operations](https://skmtc.dev/upsun/apis/upsun-com-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsun/apis/upsun-com-rest-api/revisions/6cc88fde6435?raw)
