Skip to main content
POST
Add a team member (by ID)

Authorizations

X-API-Key
string
header
required

Path Parameters

shopId
string
required

Shop ID (ObjectId)

Body

application/json
userId
string
required

User ID (ObjectId)

Pattern: ^[0-9a-fA-F]{24}$
Example:

"664f1a2b3c4d5e6f7a8b9c0d"

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