Delete Report

DELETE /1.2/report/{id}?idType={id_type}

Description

Deletes a report as specified by given id (id can be TruSTAR report id or external tracking id).

Parameters

Parameter Required Description
id X TruSTAR report id or external tracking id
idType   internal or external (defaults to internal when not provided)

Responses

200 (OK)

400 (Bad Request)

{
    "timestamp": <milliseconds since epoc>,
    "status": 400,
    "error": "Bad Request",
    "message": <error detail (e.g. id not provided)>
}

or

{
    "timestamp": <milliseconds since epoc>,
    "status": 400,
    "error": "Forbidden",
    "message": <error detail (e.g. user doesn't have update permissions)>
}

403 (Forbidden)

{
    "timestamp": <milliseconds since epoc>,
    "status": 400,
    "error": "Bad Request",
    "message": <error detail (e.g. user cannot delete report)>
}

Example Usage

Request

curl -k -X DELETE -H "Authorization: Bearer {access_token}" "https://api.trustar.co/api/1.2/report/1234?idType=external"