Skip to content
BolderBolder Developers
Esc
↑↓navigate↵open⌘Jpreview

Assign a user to a branch

Needs shops.write. The user must have a role in the seller; the assignment records that role (vendedor, supervisor…). Assigning twice is a no-op. Note that a full-scope token of a user with branches only sees the orders fulfilled from those branches.

POST/shops/{shop_id}/branches/{id}/users
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
shop_idintegerrequired
idintegerrequired
Request body
requiredapplication/json
user_idintegerrequired
Responses
201

The branch with its users

403

Access denied

422

Not a user of this shop

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.onbolder.com/v2/shops/1/branches/12/users' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "user_id": 0
}'
Response
The branch with its users

Was this page helpful?