Modifier

Partager via


Delete picture

Deletes the properties and relationships of a picture object for Business Central.

HTTP request

Replace the URL prefix for Business Central depending on environment following the guideline.

DELETE businesscentralPrefix/companies({companyId})/items({itemId})/picture({pictureId})
DELETE businesscentralPrefix/companies({companyId})/vendors({vendorId})/picture({pictureId})
DELETE businesscentralPrefix/companies({companyId})/employees({employeeId})/picture({pictureId})
DELETE businesscentralPrefix/companies({companyId})/customers({customerId})/picture({pictureId})

Request headers

Header Value
Authorization Bearer {token}. Required.
If-Match When this request header is included and the eTag provided does not match the current tag on the picture, the picture will not be updated.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

The metadata will be updated on the same link.

Example

Request

Here is an example of the request.

DELETE https://api.businesscentral.dynamics-tie.com/v2.0/api/v2.0/companies(companyId)/customers(customerId)/picture(pictureId)

Response

No content.

See also

Tips for working with the APIs
picture
Get picture
Update picture