Modifier

Partager via


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

Method Return Type Description
GET picture picture Gets a picture object.
DELETE picture none Deletes a picture object.
PATCH picture picture Updates a picture object.
Navigation Return Type Description
item item Gets the item of the picture.
customer customer Gets the customer of the picture.
contact contact Gets the contact of the picture.
vendor vendor Gets the vendor of the picture.
employee employee Gets the employee of the picture.

Properties

Property Type Description
id GUID The unique ID of the picture. Non-editable.
parentType NAV.pictureEntityParentType The type of the parent document of the picture. It can be "Customer","Item", "Vendor", "Employee".
width integer The width of the picture.
height integer The height of the picture.
contentType string The media type of the picture.
pictureContent stream The picture's content.

JSON representation

Here is 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