delete
https://api-v2.pandavideo.com.br/comparison
Deletes one or more A/B tests (comparisons) in bulk.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
DELETE /comparison
Batch‑deletes one or more A/B tests owned by the authenticated user.
AuthorizationRequires a valid API Key in the
Authorizationheader. Send the key directly — noBearerprefix.
comparison_idsis the field name (plural even for one id)The body always carries an array, even when deleting a single test. There is no per‑id endpoint for delete.
HTTP Method & Path
DELETE /comparison
Base URL: https://api-v2.pandavideo.com.br
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
comparison_ids | array of string | yes | Comparison ids to delete. Items must start with 636f6d70- and belong to the authenticated user — any id that does not match is silently skipped (no error returned for missing ones). |
{
"comparison_ids": [
"636f6d70-e29b-41d4-a716-446655440000",
"636f6d70-e29b-41d4-a716-446655440001"
]
}Response
Success Response (200)
"Comparison deleted"The response body is the string literal "Comparison deleted" (not an object).
Side effects
- The comparison rows are removed from the database;
comparison_videojoin rows are removed by cascade. - The video records themselves are not deleted.
- The S3 config files for each deleted comparison are not explicitly cleaned up by this endpoint.
- An audit log is queued per deletion (
category: comparison, activity: remove).
Error Responses
- 401 — missing/invalid API Key.
- 500 —
"Library not found"or any internal error.
Silent skip for unknown / non‑owned ids. The handler filters byuser_id IN comparison_idsbefore deleting; ids that do not belong to the caller are excluded without surfacing an error. To verify, list the comparisons afterwards.
Example Usage
cURL
curl --request DELETE \
--url 'https://api-v2.pandavideo.com.br/comparison' \
--header 'Authorization: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{ "comparison_ids": ["636f6d70-e29b-41d4-a716-446655440000"] }'