Create a page for a website

POST /company/websites/@id/pages

Request

Authentication

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 website you want to create a page for

Body

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

A dictionary with fields

Field Type Description
name String A String value
url String A String value
language Language 2 letter ISO representation of a language in lowercase
country Country 2 letter ISO representation of a country (string)

Example request 1

POST /company/websites/18/pages HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.8.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 82
{
    "name": "...",
    "url": "...",
    "language": "nl",
    "country": "BE"
}

Response

A dictionary with fields

Field Type Description
id Int An integer value
url String A String value

Example response 1

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

{
    "id": 12,
    "url": "..."
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable