Modifier

Partager via


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

Method Return Type Description
GET picture picture Gets a picture object.
POST picture picture Creates a picture object.
PATCH picture picture Updates a picture object.
DELETE picture none Deletes a picture object.

Properties

Property Type Description
id GUID ID of the entity that picture belongs to. Non-editable.
width numeric The picture width.
height numeric The picture height.
contentType MIME Image type.
content@odata.mediaEditLink Link to upload raw image data
content@odata.mediaReadLink Link 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"
}

See also

Get Picture
Create Picture
Update Picture
Delete Picture