PATCH /company/categories/@id
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 category you want to update |
Pass the following properties via application/json or form encoding in the body of the request.
Field | Type | Description |
---|---|---|
name | [Language: String] | Translated category name |
description | [Language: String] | Description of this category |
active | Bool | A boolean value |
only_order_in_store | Bool | Whether this product can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop |
seo | company.SeoData | Optional. The category's webpage search engine metatags |
PATCH /company/categories/19 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.2
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 625
{
"name": "Miss Shanel Muller",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": true,
"seo": {
"title": {
"en": "Accusantium aliquid sunt maiores quia esse iusto molestiae."
},
"description": {
"en": "Sunt minima molestiae culpa optio. Sed quod minus omnis in. Hic sequi sit animi corporis. Et quia voluptate at officia omnis eligendi quasi quam."
},
"url": {
"en": "https://zboncak.com/veniam-voluptatum-impedit-beatae-nesciunt.html"
}
}
}
Field | Type | Description |
---|---|---|
name | [Language: String] | Translated category name |
description | [Language: String] | Description of this category |
active | Bool | A boolean value |
only_order_in_store | Bool | Whether this product can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop |
products | [company.Product.simple] | Array of company.Product.simple |
shops | [company.Shop.simple] | Array of company.Shop.simple |
id | Int | ID of the category |
banner | Image? | Nullable. |
seo | company.SeoData | Optional. The category's webpage search engine metatags |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 12937
{
"name": "Elnora Parker",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": true,
"products": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": false,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 18,
"target_price": false,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 12,
"maximum": 16,
"maximum_day": 17,
"maximum_week": 12
},
"weight": {
"minimum": 10,
"maximum": 14,
"maximum_day": 17,
"maximum_week": 17,
"suggested": 18
},
"persons": {
"minimum": 18,
"maximum": 10
}
},
"id": 15,
"allergens": [
{
"id": 15,
"name": "Sesame"
},
{
"id": 13,
"name": "Nuts"
},
{
"id": 14,
"name": "Sulphite"
}
],
"price_look_up_code": "...",
"seo": {
"title": {
"en": "Non ullam voluptas cupiditate non officiis."
},
"description": {
"en": "Quia voluptas eos qui amet omnis. Ab delectus ipsum animi odio nemo eveniet explicabo. Quos omnis est molestiae ea eum deserunt rem."
},
"url": {
"en": "http://www.crona.com/"
}
}
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": true,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 14,
"target_price": false,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 16,
"maximum": 10,
"maximum_day": 16,
"maximum_week": 17
},
"weight": {
"minimum": 15,
"maximum": 15,
"maximum_day": 19,
"maximum_week": 11,
"suggested": 17
},
"persons": {
"minimum": 13,
"maximum": 16
}
},
"id": 15,
"allergens": [
{
"id": 10,
"name": "Sesame"
},
{
"id": 13,
"name": "Mollusc"
},
{
"id": 15,
"name": "Sulphite"
}
],
"price_look_up_code": "...",
"seo": {
"title": {
"en": "Sunt aut commodi aliquid odio id tenetur qui."
},
"description": {
"en": "Suscipit et ex qui itaque architecto itaque. Sit architecto quia adipisci. Et et expedita tempore."
},
"url": {
"en": "http://www.nitzsche.org/aliquid-perferendis-error-voluptate-voluptatem-dolor"
}
}
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": false,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 10,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 15,
"maximum": 10,
"maximum_day": 13,
"maximum_week": 18
},
"weight": {
"minimum": 14,
"maximum": 11,
"maximum_day": 12,
"maximum_week": 12,
"suggested": 13
},
"persons": {
"minimum": 19,
"maximum": 10
}
},
"id": 16,
"allergens": [
{
"id": 13,
"name": "Egg"
},
{
"id": 13,
"name": "Crustaceans"
},
{
"id": 11,
"name": "Gluten"
}
],
"price_look_up_code": "...",
"seo": {
"title": {
"en": "Harum reiciendis impedit eos velit maiores et."
},
"description": {
"en": "In iure et tenetur quasi. Et cum ipsum sed dolor dolorem id ut reiciendis. Beatae voluptate repudiandae sit laboriosam non enim. Quasi aliquid aperiam ut."
},
"url": {
"en": "http://lynch.com/"
}
}
}
],
"shops": [
{
"name": "Miss Roselyn Cummerata Sr.",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"allow_orders": true,
"delivery_use_intervals": true,
"id": 12,
"avatar": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
},
{
"name": "Mrs. Magali Powlowski",
"active": false,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"allow_orders": true,
"delivery_use_intervals": true,
"id": 11,
"avatar": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
},
{
"name": "Alva Feil",
"active": false,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"allow_orders": true,
"delivery_use_intervals": true,
"id": 10,
"avatar": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
}
],
"id": 17,
"banner": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
"seo": {
"title": {
"en": "Sunt architecto dolorem iure quod rem maxime ut omnis esse."
},
"description": {
"en": "Distinctio quam porro eligendi dicta est modi velit. Culpa minus eius voluptatem non nobis. Non voluptas expedita et et maiores. Non recusandae alias excepturi pariatur ipsam."
},
"url": {
"en": "http://www.ullrich.info/cupiditate-ab-repudiandae-qui-ipsa-ea-perspiciatis-vitae"
}
}
}