[DELETE] Custom Entities

Modified on Wed, 11 Mar at 12:48 PM

Delete Custom Entity (Item)


This operation allows you to delete a specific element belonging to a custom entity


It follows REST principles and aligns with the OData v4.01 standard.


[DELETE] Custom Entity (Item) Endpoint


https://api2.saleslayer.com/rest/Catalog/CustomEntities('{customEntityDenominator}')/Item({itemId})


Making a request


  • Use the HTTP method: DELETE.
  • Include the API key in the request headers for authentication.
  • It does not require a body (request body).
  • Required parameters in the route
    • CustomEntityDenominator: Identifier name of the custom entity.
    • itemId: Unique identifier of the item to be deleted.


Request example:


DELETE /rest/Catalog/CustomEntity('Sales')/Item(507)


Response


204 No content


The item was successfully deleted. No additional content is returned.


400 Bad Request


Common errors include:

  • The provided ID is in an incorrect format (must be numeric).
  • Required parameters are missing or invalid.


"The identifier xxxx_id is invalid or not found"


401 Unauthorized


Missing or invalid API key.


403 Forbidden


The user does not have permission to perform this operation.


404 Not Found


The item specified by itemtId does not exist or its status is 'X' (already deleted).


412 Precondition Failed


System is not in a valid state to perform the operation.


500 Internal Server Error


Unexpected system failure


Limitations and considerations


  • Only one element can be deleted from the custom entity per request.
  • Deletion is not supported in environments with multi-table attributes

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article