Delete Case
The Delete Case endpoint allows you to remove one or more existing media watcher cases from the system. By providing the reference IDs of the cases, you can delete specific cases and their associated data.
POST/api/adverse-media/delete
POST https://api.amlwatcher.com/api/adverse-media/delete HTTP/1.1Host: api.amlwatcher.comAuthorization: Bearer TokenContent-Type: application/jsonContent-Length: 573{"adverse_search_references": ["ddabd3c2ae8f1633f1edbb11"],"reason": "reason for case deletion"}
Request
Parameters | Required | Type | Description |
---|---|---|---|
adverse_search_references | Yes | Array of Strings | A list of reference IDs representing the media watcher cases to be deleted. |
reason | Yes | String | A string providing the reason for deleting the specified adverse search references. This could include details about why the deletion is required, such as redundancy, error correction, or updated information. Must be between 10 and 200 characters. |
Response
Parameters | Description |
---|---|
error | Whenever there is an error in your request, this parameter will have details of that error; otherwise it’ll remain empty. |
status | The status field is set to either “SUCCESS” or “FAIL”, indicating that the API request resulted in a successful or failure/error condition respectively. |
data | An array containing the actual response elements. |
Sample Response
{
"data": {
"message": "Adverse Media cases deleted successfully"
},
"error": false,
"status": "SUCCESS"
}