POST /company/companies/@id/permissions/users
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | The ID of the company |
Pass the following properties via application/json or form encoding in the body of the request.
A dictionary with fields
Field | Type | Description |
---|---|---|
String | A String value |
POST /company/companies/19/permissions/users HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 22
{
"email": "..."
}
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 |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 493
{
"shop_ids": [
13,
12,
19
],
"permissions": {
"company_info": true,
"holidays": false,
"newsletters": false,
"translations": false,
"permissions": true,
"email_settings": false,
"products": true,
"shop_info": true,
"checkout_settings": false,
"time_settings": false,
"discounts": true
},
"id": 11,
"user": {
"id": 16,
"email": "..."
}
}