Picture resource type (v1.0)

NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0).

Represents a picture in Business Central. You can save the stream as an image directly.

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.
POST picturepictureCreates a picture object.
PATCH picturepictureUpdates a picture object.
DELETE picturenoneDeletes a picture object.

Properties

PropertyTypeDescription
idGUIDID of the entity that picture belongs to. Non-editable.
widthnumericThe picture width.
heightnumericThe picture height.
contentTypeMIMEImage type.
content@odata.mediaEditLinkLink to upload raw image data
content@odata.mediaReadLinkLink to download raw image data

JSON representation

Here is a JSON representation of the resource.

{
  "id": "d0e5d5da-795a-4924-b376-13665f794cdd",
  "width": 500,
  "height": 496,
  "contentType": "image\jpeg",
  "content@odata.mediaEditLink": "https:\\api.businesscentral.dynamics-tie.com\v1.0\api\beta\companies(55c438d0-2f5c-44a0-9965-20b4923d0bef)\items(d0e5d5da-795a-4924-b376-13665f794cdd)\picture(d0e5d5da-795a-4924-b376-13665f794cdd)\content",
  "content@odata.mediaReadLink": "https:\\api.businesscentral.dynamics-tie.com\v1.0\api\beta\companies(55c438d0-2f5c-44a0-9965-20b4923d0bef)\items(d0e5d5da-795a-4924-b376-13665f794cdd)\picture(d0e5d5da-795a-4924-b376-13665f794cdd)\content"
}

Get Picture
Create Picture
Update Picture
Delete Picture