Delete a shop's avatar

DELETE /company/shops/@id/avatar

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 shop you want to delete the avatar for

Example request 1 Delete shop avatar

DELETE /company/shops/2985/avatar HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 1390a86426de812adffa57d2f0d10e2c5a59539e773a816e3ad27d8863b3c4ce7c8c39a15693f2629b29dfe0281a0d1383dc14d870a52a705559fb70557d547a5fa244995477656c6b8e3f068668731fd1b1a0e3fb231f6064440d90e6b3da3e549a5848
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Example request 2 Delete shop avatar of shop without avatar

DELETE /company/shops/2986/avatar HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 1390a86426de812adffa57d2f0d10e2c5a59539e773a816e3ad27d8863b3c4ce7c8c39a15693f2629b29dfe0281a0d1383dc14d870a52a705559fb70557d547a5fa244995477656c6b8e3f068668731fd1b1a0e3fb231f6064440d90e6b3da3e549a5848
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Example response 1 Delete shop avatar

HTTP/1.1 204 No Content

Example response 2 Delete shop avatar of shop without avatar

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Length: 127

{
    "code": "invalid_request",
    "message": "No shop avatar set. You can't delete an avatar of a shop without an avatar."
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable