Private preview of the new site. Not live.

members.changeRole

Owner changes a worker between office and field. The old membership ends and a new one starts, so history keeps both.

WhoAgents can call this
RESTPOST /v1/members/role
MCP toolmembers_changeRole
Writesyes, send an Idempotency-Key
AreaTeam (unlimited workers)

When to use it

The owner moves a worker between office and field.

What to tell the owner

Their role changed. Their access changed with it.

Input

FieldTypeRequired
membership_idstringyes
rolestring (one of office, field)yes

Example

POST https://doingwork.work/v1/members/role
content-type: application/json
Idempotency-Key: 3f1c...

{
  "membership_id": "00000000-0000-4000-8000-000000000000",
  "role": "office"
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
owner_role_fixed409The owner's role can't be changed.
forbidden403This worker's role can't do this, or it needs a person's own sign-in rather than an agent token. Tell the person who can.
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.