/v1/tools/adjustpricedChange a finished job
Re-runs a finished job with a patch applied, as a new job linked to the original, which is kept as it was. Charged the price quote_adjustment returns for the same patch. A chain of adjustments stops at 10. Adjustable params by action: add_voice_effect: through, room, first, around; burn_captions: start, end, position, text, captions; clean_up_voice: parts, s_sounds, highs_from, listen_above, sensitivity, amount, recovery, steady; compress_video: quality; convert: as, by; cut_video: timeline; draw_chart: chart, says, note, title, answer, across, values, main, aspect_ratio, seconds, back, text, accent, gradient_from, gradient_to, font; make_spreadsheet: columns, sheet; mix_sounds: timeline; read_fields: fields, row; transcribe: language; transcribe_audio: language.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
job_id | string | Required | |
patch | array | Required | An RFC 6902 JSON Patch against the job's params, e.g. [{"op":"replace","path":"/start","value":15.3}]. replace, add and test are accepted. |
nonce | string | None | Optional. Send the same nonce again to get the same job back rather than a second charge. |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/adjust \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"job_id":"…","patch":[{"op":"replace","path":"…","value":"…"}]}'Answer
{
"ok": true,
"result": {
"job_id": "job_…",
"status": "running",
"price_usd": "$…"
}
}It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.
Every call can also answer an error: what comes back. Try it with your key from Account.