Undo a copy revision
undo_copy_revisionRestores the copy that was current before a kept revision of a finished image ad, as a new history entry, and returns the new version. Takes the version_id of a kept revision from the get_creative_workspace history. Nothing is generated and no credits are spent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"generation_job_id": "<generation_job_id>",
"version_id": "<version_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "undo_copy_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version_id | Yes | version_id of a kept revision in the get_creative_workspace history. | |
| idempotency_key | Yes | Caller-chosen unique value for this change (1 to 128 letters, digits, hyphens or underscores), not a value from a preview. A repeat with the same value returns the original result. | |
| generation_job_id | Yes | Finished-image reference of a single ad: _references.generation_job_id on a list_generation_jobs row. Not the job_id that get_ad_status takes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Current progress or delivery state. | |
| version_id | No | version id value in this response. | |
| cost_credits | No | Credits quoted or charged by this operation. | |
| refund_credits | No | refund credits value in this response. | |
| original_cost_credits | No | original cost credits value in this response. |