Delete A/B Tests

Deletes one or more A/B tests (comparisons) in bulk.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

DELETE /comparison

Batch‑deletes one or more A/B tests owned by the authenticated user.

📘

Authorization

Requires a valid API Key in the Authorization header. Send the key directly — no Bearer prefix.

⚠️

comparison_ids is 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

FieldTypeRequiredDescription
comparison_idsarray of stringyesComparison 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_video join 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 by user_id IN comparison_ids before 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"] }'

Recipes

Body Params
comparison_ids
array of uuids
required

IDs of the A/B tests to be deleted.

comparison_ids*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json