Fields when send to the api inside a request.
Field | Type | Description |
---|---|---|
shop_ids | [Int] | User has access to these shops |
permissions | Dictionary | A dictionary with fields |
Fields when returned by the api in a response.
Field | Type | Description |
---|---|---|
shop_ids | [Int] | User has access to these shops |
permissions | Dictionary | A dictionary with fields |
id | Int | Id of the permissions entry |
user | Dictionary | A dictionary with fields |
When used inside a request.
{
"shop_ids": [
11,
17,
12
],
"permissions": {
"company_info": true,
"holidays": false,
"newsletters": true,
"translations": false,
"permissions": false,
"email_settings": false,
"products": true,
"shop_info": true,
"checkout_settings": false,
"time_settings": false,
"discounts": true
}
}
When returned in a response.
{
"shop_ids": [
14,
11,
10
],
"permissions": {
"company_info": false,
"holidays": false,
"newsletters": false,
"translations": false,
"permissions": false,
"email_settings": false,
"products": false,
"shop_info": false,
"checkout_settings": true,
"time_settings": false,
"discounts": true
},
"id": 15,
"user": {
"id": 15,
"email": "..."
}
}