--- title: members.changeRole | Doing Work API description: Owner changes a worker among office, lead and field. The old membership ends and a new one starts, so history keeps both. url: https://doingwork.work/docs/reference/members-changerole/ --- # members.changeRole Owner changes a worker among office, lead and field. The old membership ends and a new one starts, so history keeps both. Shop roles are owner, office, lead and field. | | | |---|---| | Who | Agents can call this | | REST | `POST /v1/members/role` | | MCP tool | `members_changeRole` | | Writes | yes, send an Idempotency-Key | | Area | [Team (unlimited workers)](https://doingwork.work/docs/reference/#team-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 | Field | Type | Required | |---|---|---| | `membership_id` | string | yes | | `role` | string (one of office, lead, field) | yes | ## Example ```http 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 | Code | Status | What to do | |---|---|---| | `owner_role_fixed` | 409 | The owner's role can't be changed. | | `forbidden` | 403 | This 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_limited` | | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |