(Quick Reference)
Service: Delete an item-unit
Description: Returns a json response.
Method: DELETE
URL:
https://BASE_URL/api/VERSION/itemUnits/{id}
Parameters:
Name | Description | Type | Required | Example values |
---|
id | The numerical ID of the desired item-unit | Long | yes | 123 |
URL with external_id:
https://BASE_URL/api/VERSION/itemUnits/reference/{itemId}/{unitId}
Parameters:
Name | Description | Type | Required | Examples values |
---|
itemId | reference of the item | String | Yes | eliteBook_820 |
unitId | reference of the unit | String | Yes | Pié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."
}