Delete by hashId
This endpoint removes a mesarument from the queue based on hashId
URL : /queue/remove/hashId/{hashId}
Method : DELETE
X-HMAC required : YES
Request URL Parameters : {hashId}
Response
The response will be a JSON object containing the message and count of affected records.
{
message: string,
data: {
count: number
}
}
Status Codes
The endpoint will return the following status codes based on the operation outcome:
- 200
OK: The request was successful, and the HashId was removed . - 400
Bad Request: The request was invalid. This usually occurs if the request input is invalid. - 500
Internal Server Error: An error occurred on the server while processing the request.
Example Request
DELETE /queue/remove/hashId/521739b1-5f51-4245-b80b-e45465925347-2024-01-25T10:00:00Z HTTP/1.1
Host: localhost:3000
X-HMAC: 5d41402abc4b2a76b9719d911017c592
Example Response
{
"message": "Data removed from queue",
"data": {
"count": 1
}
}
Table of Contents
