(Quick Reference) Service: Dissociate an item category from an employee

Description: This web service is used in order to dissociate an item category from an employee, when success it will returns

Method: DELETE

URL:

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

Parameters:

NameDescriptionTypeRequiredExamples values
idId of the desired record to deleteLongYes777

URL with external_id:

https://BASE_URL/api/VERSION/employeeItemCategories/reference/{itemCategoryId}/{userId}

Parameters:

NameDescriptionTypeRequiredExamples values
itemCategoryIdreference of the item categoryStringYesCC-002
userIdreference of the userStringYesU-001

Success Output

Success case: response.status=200
{
    "success": "true",
    "success_description": "Instance deleted successfully"
}

Failure Output

Failure case:response.status = 400
{
    "error": "invalid_param_type",
    "error_description": "The type of parameter id you provided is not valid for this request."
}
{
    "error": "delete_failed",
    "error_description": "Failed to delete instance"
}
Failure case:response.status = 404
{
    "error": "not_found",
    "error_description": "The item category employee with the id 999 doesn't exist."
}

Failure case:response.status = 500
{
    "error": "server_error",
    "error_description": "Oops! Something went wrong..."
}