LoguDocs
Open Logu

Members · removeMember

Remove a member, or leave

DELETE /v1/workspaces/{id}/members/{userId}

Owners remove anyone; any member can remove themselves (leave). The last Owner can't (409).

Who may call it
humans: every member
Server
https://api.logu.dev

Parameters#

NameInTypeRequiredDescription
idpathstringrequiredThe workspace's id (wsp_…). The request acts in this workspace (the Logu-Workspace header is ignored). · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6
userIdpathstringrequiredThe member's user id. · e.g. Hk9cW2vZpT4mQ6nJ

Example#

curl -s -X DELETE "https://api.logu.dev/v1/workspaces/wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6/members/Hk9cW2vZpT4mQ6nJ" \
  -H "Authorization: Bearer $LOGU_SESSION_TOKEN"

Responses#

204

Removed.

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
403forbiddenThe caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint).
404not_foundNo such route, or the resource doesn't exist in your workspace.
409conflictThe resource isn't in a state that allows this: an ask that is no longer waiting (ask has its current state), an invitation no longer pending, the last Owner.
500internal_errorSomething went wrong on Logu's side.