Delete unknown tokens

After a production line has served its purpose, it MUST be dismantled. To do this, the identifier of the token object MUST be sent as an HTTP request path parameter. Here the API remote service is attacked by trying to delete a production line with a random identifier.

The errors status: 404 is returned from the remote service together with the errors detail: Unknown tokens id. in the JSON response body.

Request endpoint

DELETE SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Response status

200

Request headers

Accept:application/vnd.api+json
Content-Type:application/vnd.api+json
Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS

Response headers

Transfer-Encoding:chunked
Connection:keep-alive
Accept:application/vnd.api+json
Cache-Control:no-cache
Date:Tue, 19 Mar 2024 12:57:40 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4

Request body

# intentionally blank

Response body

{
    "errors": [
        {
            "status": 404,
            "detail": "Unknown tokens id.",
            "source": {
                "parameter": "id",
                "pointer": ""
            },
            "title": "Tokens not found"
        }
    ],
    "links": {
        "self": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    }
}

HTTPie example

$ http delete SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS