Delete

HTTP Method: DELETE
Base Syntax:

http://deepserhost/api/rest/[entity]/[id]

Example Syntax:

http://deepserhost/api/rest/company/6

Description: deletes the entity, given an entity ID.
Example Result:

http://deepserhost/api/rest/company/6
// this is only in case of an error
{
    "messages": {
        "error": [
            {
                "code": 404,
                "message": "Resource not found."
            }
        ]
    }
}


If the entity is successfully deleted returns an empty response, else returns a JSON object with error messages.