Delete empty tokens

If several production lines have served their purpose, they MUST be dismantled. This can be done using a single mass data operation instead of explicit individual operations. To do this, the request MUST be sent without any HTTP request path parameter.

Because the previous step deleted all existing token data for the current session, the remote service returns an empty list in the JSON response body.

Request endpoint

DELETE SERVER:PORT/api/tokens

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:52:59 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4

Request body

# intentionally blank

Response body

{
    "links": {
        "self": "/api/tokens"
    },
    "data": []
}

HTTPie example

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