Update Member

Members

Update Member

Changes a member's role to admin or member. A key cannot make anybody an owner — do that in the console, signed in as one — and the workspace's last owner cannot be demoted. Needs a full key.

PATCH/members/{id}

Path parameters

idstring (uuid)required
The member's id, from List Members.

Headers

Katexs-Workspacestring
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.

Request body

rolestringrequired
The new role. owner is refused with 403: make owners in the console. One of: admin, member.

Example request

bash
curl -X PATCH "https://app.katexs.com/api/v1/members/{id}" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "admin"
}'

Responses

StatusDescription
200The member as they now are.
400role is not one of the roles.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
403role: "owner" — a key cannot make anybody an owner — or the key may not make this request.
404Not a member of this workspace.
409That would leave the workspace with no owner.
410The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.

Response fields

idstring (uuid)required
The person's id, used by Update Member, Remove Member and Add Team Member.
namestringrequired
Their name.
emailstring (email)required
Their sign-in email.
rolestringrequired
owner, admin or member. One of: owner, admin, member.
joinedAtstring (date-time) | nullrequired
When they joined the workspace.
200 response
{
  "id": "1f3a5c7e-9b2d-4e6f-8a0c-2e4f6a8b0d13",
  "name": "Rahul Kulkarni",
  "email": "rahul@sunrisedental.in",
  "role": "admin",
  "joinedAt": "2026-09-03T12:48:09.377Z"
}

Last updated November 2026 · Found a problem? Email support@katexs.com