Summary already exists
A summary already exists, or is being generated for the video that you tried adding a summary to.
Sample error response
{
"type": "https://docs.api.video/reference/summary-already-exists",
"title": "A summary already exists or is being created on this video.",
"status": 409,
"detail": "You can delete the existing summary and generate a new one.",
"name": "videoId"
}
This error can occur in 3 scenarios:
- When using Generate summaries on an already uploaded video that has a summary, or where summary generation is in progress
- When using Update summary details on a video where summary generation is in progress
- When using Update video object on a video where a summary source is already generated, or where summary generation is in progress
Causes
- Using the Generate summaries or the Update video object endpoint to generate a summary is only allowed for videos where no summary is generated yet.
- Using the Update summary details endpoint operation to
PATCH
a summary is only allowed when the API has already finished generating that summary. Specifically, the API does not allow using this endpoint operations when thesourceStatus
of a summary iswaiting
.
Solutions
If you received this error when you tried to generate a summary using the Generate summaries or the Update video object endpoints, you first need to delete the existing summary:
curl -s --location --request DELETE 'https://ws.staging.api.video/summaries/summary_1CGHWuXjhxmeH4WiZ51234/source' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic {Your API key}' \
After the API responds with
204 - Deleted
, you can repeat your original request toPOST
orPATCH
the summary.If you received this error when you tried to
PATCH
an existing summary, wait for the API to finish generating that summary. You can monitorsourceStatus
to see the status of summary generation.
Next steps
- Learn more about the AI-driven Summarization feature