PATCH /organization
Updated Oct 1, 20261 minute read
Rename the organization
The name, the slug, or both. The slug is what the workspace's email support address is minted from, so changing it changes where new mail is expected. The picture is a file, so it stays in the dashboard.
Part of Organization.
Request body
application/json, optional.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | |
slug | string | No | Lowercase, no spaces. A slug somebody else holds is refused. |
Responses
| Status | Description |
|---|---|
200 | The organization, as it now reads. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | |
slug | string | No |
Example request
curl -X PATCH https://api.median.sh/v1/organization \
-H "Authorization: Bearer $BEARER_AUTH"