Skip to main content

Batch Delete Warrants
Warrant Cloud Only

Delete up to 100 warrants in one API request.

Endpoint

DELETE /v2/warrants

Request

Body


A list of warrants (as defined in the delete warrant API).


note

Each batch delete request can delete up to 100 new warrants. Requests containing more than 100 warrants will fail.

Batch deletes are atomic operations. If any error (client or server) is encountered during creation, none of the warrants will be deleted. Batch delete requests can therefore be safely retried.

curl "https://api.warrant.dev/v2/warrants" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'[
{
"objectType": "report",
"objectId": "avk2837",
"relation": "viewer",
"subject": {
"objectType": "user",
"objectId": "5djfs6"
}
},
{
"objectType": "report",
"objectId": "slp1029",
"relation": "viewer",
"subject": {
"objectType": "user",
"objectId": "8lnsp7"
}
}
]'

Response

Headers


Warrant-Token string

A unique transaction identifier for this write operation. Can be cached and passed on subsequent read requests.


200 OK