POST /me/organization
Updated Oct 1, 20261 minute read
Switch organizations
Rebinds the token to another of its person's organizations, by id or slug. Membership is checked now and again on every later call.
Part of Account.
Request body
application/json, required.
| Field | Type | Required | Description |
|---|---|---|---|
org | string | Yes | An id or a slug. |
Responses
| Status | Description |
|---|---|
200 | Where the session now works. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
404 | Not one of yours, or not there at all. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | |
name | string | No | |
slug | string | No |
Example request
curl -X POST https://api.median.sh/v1/me/organization \
-H "Authorization: Bearer $BEARER_AUTH" \
-H "content-type: application/json" \
-d '{"org":"acme"}'