Change a retailer user's role
PATCH
/v1/retailers/{id}/users/{uid}Auth: Factory API key
Path parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | · |
uidrequired | string | · |
Request body
| Field | Type | Description |
|---|---|---|
rolerequired | string | · one of: "owner", "buyer", "viewer", "accounts", "integrations" |
Response
200
Code samples
curl -X PATCH "https://api.skuflo.io/v1/retailers/id_9c1a4e/users/string" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"role": "owner"
}'