Delete 1st tokens part
After receiving and saving all streamed data of the 1st tokens part that was formerly generated with a custom alphabet for a number of digits, the production line has not been completely emptied but has served its purpose for the 1st tokens part and MUST be dismantled. To do this, the identifier of the tokens object MUST be sent as HTTP request path parameter.
The identifier of the deleted tokens object is returned from the remote service as data id together with the data type: tokens together with other attribute–value pairs 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:33 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4
Request body
# intentionally blank
Response body
{
"links": {
"self": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
},
"data": {
"attributes": {
"analysis": "none",
"rate": 15038,
"reachable": "10485",
"alphabet": "UPPER_VOWELS",
"available": "7888609052210118054117285652827862296732064351090230047702789306639625",
"partial": true,
"checksum": "1010001100111110000111001001101010110001011010011100000110101011000011100000110011011001001101011110010011001101101000110111011010111101000110010011011111101111110011011000111101111110110111001011101100110011111011111101111110111011011011101011110010111010111101000110011011000001100111110010111011001101111110011011000101100000110000111001111101100110011011010011100101110001111000001100110110010011011011100101110100011001101101010110100111001101100011110101011001101100111110001111011001101011110100011010001101101110000111010111100101110001011010111101111110001111000001101111110111111000111100100110111011001111100101110000111000011100111110010011011101100010110101011011101100101110000111010001",
"status": "deleted",
"filesizes": {
"data": 100999,
"snapshot": 14720
},
"digits": "100",
"filehashes": {
"data": "8b5e65c60e2a4a263eec8b56f58ff04c70236831d9d1f1d8311715ddb072d361",
"snapshot": "29a44fd3d478a270382efa4e2b1d0e4f81976be6fa54823c7df796b5acbad1de"
},
"size": "1000",
"timestamps": {
"ended": "2024-03-19T12:57:27.839Z",
"deleted": "2024-03-19T12:57:33.199Z",
"started": "2024-03-19T12:57:21.181Z",
"requested": "2024-03-19T12:57:19.785Z",
"finished": "2024-03-19T12:57:27.849Z"
}
},
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"type": "tokens",
"relationships": {
"payment": {
"data": {
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"ident": "pi_XXXXXXXXXXXXXXXXXXXXXXXX",
"type": "transaction"
}
}
}
}
}
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