# Leave an organization/Decline an invite to an organization

del ` https://app.mk.io/api/v1/user/organizations/:organization_id`

This endpoint allows the current user to remove their access to a particular MK.IO organization. This operation can only be reversed by accepting a new invitation from that organization.

If you are still not part of that organization but have a pending invite for it, this endpoint would decline that invitation.

Requires authentication; no additional RBAC permissions required.

## Authentication

Authorization Bearer

Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Path parameters

organization_id string Required format: uuid

## Response

204 OK

No response body.

## Errors

### 400 Bad Request

error object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- codestring Required
- detailstring Required
- extraDetail map from strings to any Optional

### 401 Unauthorized

error object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- codestring Required
- detailstring Required
- extraDetail map from strings to any Optional

### 403 Forbidden

error object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- codestring Required
- detailstring Required
- extraDetail map from strings to any Optional

### 404 Not Found

error object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- codestring Required
- detailstring Required
- extraDetail map from strings to any Optional

### 429 Too Many Requests

error object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- codestring Required
- detailstring Required
- extraDetail map from strings to any Optional

### 500 Internal Server Error

error object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- codestring Required
- detailstring Required
- extraDetail map from strings to any Optional
