Median

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.

FieldTypeRequiredDescription
orgstringYesAn id or a slug.

Responses

StatusDescription
200Where the session now works.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
idstringNo
namestringNo
slugstringNo

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"}'

Still need help?

    Esc