(Quick Reference) Service: Delete an item-unit

Description: Returns a json response.

Method: DELETE

URL:

https://BASE_URL/api/VERSION/itemUnits/{id}

Parameters:

NameDescriptionTypeRequiredExample values
idThe numerical ID of the desired item-unitLongyes123

URL with external_id:

https://BASE_URL/api/VERSION/itemUnits/reference/{itemId}/{unitId}

Parameters:

NameDescriptionTypeRequiredExamples values
itemIdreference of the itemStringYeseliteBook_820
unitIdreference of the unitStringYesPiéce

Success Output

Success case: response.status = 200

{
  "success": "true",
  "success_description": "Instance deleted successfully"
}

Failure Output

Failure case:response.status = 400

{
  "error": "delete_failed",
  "error_description": "Failed to delete instance."
}

Failure case:response.status = 404

{
  "error": "not_found",
  "error_description": "The item unit with the id 70 doesn't exist."
}