members.setPermissions

Owner only, not an agent: turn a worker's permissions on or off. Give only the flags to change (see_prices, see_costs, take_money, delete, manage_schedule). They narrow what the worker's role allows and apply to the worker's own agents too. see_prices can be turned back on for a field worker or a lead; a new field worker starts with see_prices off, and a new lead also starts with see_costs, take_money and delete off. A role change starts again from that role's defaults.

WhoA person's own sign-in only (agent tokens are refused)
RESTPOST /v1/members/permissions
MCP toolNot an MCP tool
Writesyes, send an Idempotency-Key
AreaShop

When to use it

Owner only, not an agent: turn a worker's permissions on or off. Give only the flags to change (see_prices, see_costs, take_money, delete, manage_schedule).

What to tell the owner

Ask the person to do this with their own sign-in. Your agent token is refused here.

Input

FieldTypeRequired
shop_idstring (uuid)yes
person_idstring (uuid)yes
see_pricesbooleanno
see_costsbooleanno
take_moneybooleanno
deletebooleanno
manage_schedulebooleanno

Example

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

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "person_id": "00000000-0000-4000-8000-000000000000"
}

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
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.