Update website page data

PATCH /company/websites/pages/@id

Update website page data

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Body

Pass the following properties via application/json or form encoding in the body of the request.

todo

Field Type Description
id Int Unique ID of the page
name String Name of the page, usually used in the title HTML tag
url String URL of the page
language String Which language the page belongs to
locked Bool Homepages are automatically generated and are locked. This means that they cannot be deleted
data String A String value
upload_ids [Int] Array of Int

Example request 1

PATCH /company/websites/pages/@id 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: 178
{
    "id": 11,
    "name": "...",
    "url": "...",
    "language": "...",
    "locked": false,
    "data": "...",
    "upload_ids": [
        18,
        15,
        19
    ]
}

Response

todo

Field Type Description
id Int Unique ID of the page
name String Name of the page, usually used in the title HTML tag
url String URL of the page
language String Which language the page belongs to
locked Bool Homepages are automatically generated and are locked. This means that they cannot be deleted
data String A String value
upload_ids [Int] Array of Int

Example response 1

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

{
    "id": 15,
    "name": "...",
    "url": "...",
    "language": "...",
    "locked": true,
    "data": "...",
    "upload_ids": [
        13,
        12,
        10
    ]
}
1.9.0 stable