Skip to main content
PUT
Update a member roles/permissions

Authorizations

X-API-Key
string
header
required

Path Parameters

shopId
string
required

Shop ID (ObjectId)

userId
string
required

User ID (ObjectId)

Body

application/json
roles
string[]

Roles with permission presets: owner, admin, manager, support, viewer (and legacy view/edit/full).

Maximum array length: 10
Example:
customPermissions
string[]

Extra single permissions resource:action (e.g. 'products:write'), wildcards 'orders:' / ''. Granted ON TOP of roles.

Maximum array length: 64
Example:

Response

OK

success
boolean
Example:

true

data
object
message
string