Update item picture
Update the picture of the item in Business Central.
HTTP request
Replace the URL prefix for Business Central depending on environment following the guideline.
PATCH businesscentralPrefix/companies({companyId})/items({itemId})/picture
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Content-Type | application/json |
Request body
In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance you shouldn't include existing values that haven't changed.
Note
You cannot modify parentId, dimensionId or dimensionCode fields, because these are key fields, and rename is not allowed in Default Dimension record.
Response
If successful, this method returns a 200 OK
response code and an updated default dimensions for the item in the response body.
Example
Request
Here is an example of the request.
PATCH https://{businesscentralPrefix}/api/v2.0/companies({companyId})/items({itemId})/picture
Request body
Response
Here is an example of the response.
Note
The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
See also
Tips for working with the APIs
Items
Create item defaultDimensions
Get item defaultDimensions
Delete item defaultDimensions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for