Upload a category banner

POST /company/categories/@id/banner



This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

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 upload a banner for

File upload

This endpoint requires uploaded files in the HTTP request. You can check the examples on the right for more information or read more about this on MDN.

Key Description
file Upload a single file

Example request 1

POST /company/categories/13/banner HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: multipart/form-data;boundary="boundary"

Content-Disposition: form-data; name="single"; filename="test.jpg"
Content-Type: image/jpeg

...<Binary file here depending on Content-Transfer-Encoding field>...


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
id Int ID of the category
banner Image? Nullable.
seo company.SeoData Optional. The category's webpage search engine metatags

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 1011

    "name": "Lorenz Hagenes",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    "active": true,
    "only_order_in_store": false,
    "id": 14,
    "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": "Ab placeat sed sunt voluptas velit ipsa dolorum dolorem.",
        "description": "Ipsa et quos temporibus nihil et voluptas animi. Sed atque aliquam veniam quo aut. Ex veritatis assumenda aut molestias neque.",
        "url": "http://gislason.com/dolore-vel-vitae-dolor-voluptas-iure"
Version update available Please adjust your integration to the latest stable version (1.6.0)
1.5.0 stable