picture resource type

Represents a picture in Business Central.

Note

For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET picturepictureGets a picture object.
DELETE picturenoneDeletes a picture object.
PATCH picturepictureUpdates a picture object.
NavigationReturn TypeDescription
itemitemGets the item of the picture.
customercustomerGets the customer of the picture.
contactcontactGets the contact of the picture.
vendorvendorGets the vendor of the picture.
employeeemployeeGets the employee of the picture.
itemVariantitemVariantGets the item variant of the picture.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the picture. Non-editable.
parentTypeNAV.pictureEntityParentTypeThe type of the parent document of the picture. It can be "Customer", "Item", "Vendor", "Employee", or "Contact".
widthintegerThe width of the picture.
heightintegerThe height of the picture.
contentTypestringThe media type of the picture.
pictureContentstreamThe picture's content.

JSON representation

Here's a JSON representation of the picture resource.

{
    "id": "GUID",
    "parentType": "NAV.pictureEntityParentType",
    "width": "integer",
    "height": "integer",
    "contentType": "string",
    "pictureContent": "stream"
}

GET picture
DELETE picture
PATCH picture