Removes an AI resource from one language. The other languages of the same resource keep existing.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
DELETE /aiworkflow/aipackage
Removes one resource from one language: eBook (abstract), Mind Map (mindmap) or Quiz (questions). The other languages of the same resource keep existing.
AuthorizationRequires the account API key in the
Authorizationheader, without theBearerprefix.
The body goes in the DELETE. This endpoint takes a JSON body — these are not query params. HTTP clients that drop the body onDELETE(some wrappers and proxies do) need to be configured to send it.
HTTP Method & Path
DELETE /aiworkflow/aipackage
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
| Item | Value |
|---|---|
| Security Scheme | API Key |
| Header | Authorization |
| Format | The raw key, without Bearer |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Account API key |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
video_id | string (uuid) | Yes | Video the resource belongs to |
resource | string | Yes | abstract, mindmap or questions |
lang | string | Yes | Language to remove. Required in every call — omitting it returns 400 should have required property 'lang' |
{
"video_id": "{video_id}",
"resource": "questions",
"lang": "pt-BR"
}
Removal is per language, not per resource. Deleting thept-BRQuiz does not delete theenQuiz. To remove the whole resource, call once per language — the existing languages are listed inconfig.ai.resources[].
Different from the download permission, which is per resource and applies to every language (see AI Package Actions). Removal is per language; permission is per resource.
Response
Success Response (200)
Confirms the removal. After it:
- the matching entry disappears from
config.ai.resources[]inGET /videos/{video_id}; - the
{video_external_id}-ai.{lang}.jsonfile no longer carries that resource key — and, if it was the last resource of that language, the file stops existing (404); - the legacy
{video_external_id}-ai.jsonfile, when the video had one, is removed as well.
The public files are served through a CDN. Right after the delete you may still read the previous version from cache — the404shows up once the cache expires. Add a cache-busting query string when you need to confirm the state immediately.
Error Responses
400: invalid payload —resourceoutside the enum, orlangmissing (should have required property 'lang').401: missing or invalid API key.404: video or resource not found in the given language.500: internal error.
Regenerate instead of deleting
If the goal is to redo the content, do not delete it first: the regenerate action on AI Package Actions deletes and generates again in the same language in a single call — and reuses the configuration of the previous generation.
Example Usage
cURL
curl -X DELETE "https://api-v2.pandavideo.com.br/aiworkflow/aipackage" \
-H "Authorization: {api_key}" \
-H "Content-Type: application/json" \
-d '{
"video_id": "{video_id}",
"resource": "questions",
"lang": "pt-BR"
}' 401Missing or invalid API key.
404Video or resource not found.
