Median

DELETE /members/{userId}

Updated Oct 1, 20261 minute read

Remove a member

Takes somebody out of the organization. What they wrote stays: a thread belongs to the organization, not to whoever happened to answer it. The last owner cannot be removed. Your own user id leaves the organization, which any member may do.

Part of Organization.

Parameters

NameInTypeRequiredDescription
userIdpathstringYes

Responses

StatusDescription
200Done.
401The bearer token is missing, revoked, or expired.
403The token's person does not hold the role this needs.
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
okbooleanNo

Example response

{
  "ok": true
}

Example request

curl -X DELETE https://api.median.sh/v1/members/userId \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc