Update picture (v1.0)
Updates the properties and relationships of a picture object for Business Central.
HTTP request
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 | When this request header is included and the eTag provided does not match the current tag on the picture, the picture will not be updated. |
Request body (v1.0)
Raw picture binary data.
Response (v1.0)
If successful, this method returns 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 response.