UserPermission

Request

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

Response

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

Examples

Request

When used inside a request.

Example 1

{
    "shop_ids": [
        14,
        17,
        11
    ],
    "permissions": {
        "company_info": false,
        "holidays": false,
        "newsletters": true,
        "translations": false,
        "permissions": true,
        "email_settings": true,
        "products": true,
        "shop_info": true,
        "checkout_settings": true,
        "time_settings": true,
        "discounts": false
    }
}

Response

When returned in a response.

Example 1

{
    "shop_ids": [
        17,
        16,
        16
    ],
    "permissions": {
        "company_info": false,
        "holidays": false,
        "newsletters": false,
        "translations": true,
        "permissions": true,
        "email_settings": false,
        "products": true,
        "shop_info": true,
        "checkout_settings": false,
        "time_settings": true,
        "discounts": true
    },
    "id": 12,
    "user": {
        "id": 10,
        "email": "..."
    }
}
This is a development version Do not use this version in production
1.10.0 development