Update picture
Updates the properties and relationships of a picture object for Dynamics 365 Business Central.
HTTP request
Replace the URL prefix for Dynamics 365 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
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
Raw picture binary data.
Response
If successful, this method returns 204 No Content
response code. It does not return anything in the response body.
Example
Request
Here is an example of the request.
PATCH https://{businesscentralPrefix}/api/v1.0/companies(companyId)/items(itemId)/picture(itemId)/content
Response
No response.