DELETE /company/shops/@id/avatar
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 shop you want to delete the avatar for |
DELETE /company/shops/1416/avatar HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer cdd7aa29926a089ef248cbdf0361a1ec4c6ad1109fd6ed0e740cee5813d795cab093340f21f433c436d858509d7f71c13e084f473063b6128d1b78d06d6fc83e9f03e788df11869c205e0e4000a3f9d60835e15c7c2fa525f6573c32a0cc788837d35bf1
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
DELETE /company/shops/1417/avatar HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer cdd7aa29926a089ef248cbdf0361a1ec4c6ad1109fd6ed0e740cee5813d795cab093340f21f433c436d858509d7f71c13e084f473063b6128d1b78d06d6fc83e9f03e788df11869c205e0e4000a3f9d60835e15c7c2fa525f6573c32a0cc788837d35bf1
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
HTTP/1.1 204 No Content
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."
}