Create picture (v1.0)

Creates the properties and relationships of a picture object for Business Central.

HTTP request (v1.0)

Replace the URL prefix for Business Central depending on environment following the guideline.

PATCH businesscentralPrefix/companies({companyId})/items({itemId})/picture({pictureId})/content
PATCH businesscentralPrefix/companies({companyId})/vendors({vendorId})/picture({pictureId})/content
PATCH businesscentralPrefix/companies({companyId})/employees({employeeId})/picture({pictureId})/content
PATCH businesscentralPrefix/companies({companyId})/customers({customerId})/picture({pictureId})/content

Request headers (v1.0)

Header Value
Authorization Bearer {token}. Required.
Content-Type application/octet-stream
If-Match *

Request body (v1.0)

Raw picture binary data.

Response (v1.0)

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Example (v1.0)

Request

Here is an example of the request.

PATCH https://{businesscentralPrefix}/api/v1.0/companies(companyId)/items(itemId)/picture(itemId)/content

Response

No content.

Tips for working with the APIs
Error Codes
Picture
Get Picture
Update Picture
Delete Picture