Enqueue a manual TRaSH source sync
const url = 'https://example.com/api/v1/trash-guide/sources/1/sync';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/trash-guide/sources/1/syncEnqueues a manual sync for the TRaSH source and returns the per-run correlation token plus a source-labeled status view, so the initiating surface can link to exactly one current-or-terminal run. An already-running source dedupes onto the in-flight run (409) instead of acking a new one.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”TRaSH source ID
Responses
Section titled “Responses”Sync queued (or coalesced onto a pending run)
Manual-sync enqueue acknowledgement, linking to exactly one current-or-terminal run.
object
Single wire view of a source’s current queue slot + latest terminal run, reused by the POST response and the GET status resolver.
object
object
Versioned, structured terminal evidence for one TRaSH sync run, serialized into job_run_history.output. Survives a source hard-delete via its embedded identity snapshot.
object
Typed, closed, SAFE failure evidence. message/recoveryAction are pre-authored copy that never embeds raw exception text, git/parser diagnostics, credentials, or hostnames.
object
Closed, safe vocabulary of TRaSH sync failure reasons. Assigned by outcome/error type only — never by message parsing — so no raw diagnostic can leak.
Example
{ "success": true, "queued": true, "view": { "arrType": "radarr", "latestRun": { "status": "success", "evidence": { "schemaVersion": 1, "source": { "arrType": "radarr" }, "trigger": "manual", "status": "success", "failure": { "code": "source_missing" } } } }}Invalid source ID
object
Error message
Examplegenerated
{ "error": "example"}TRaSH source not found
object
Error message
Examplegenerated
{ "error": "example"}A sync is already running for this source — links to the existing run
Already-running dedupe response — links to the existing in-flight run rather than acking a new one.
object
Single wire view of a source’s current queue slot + latest terminal run, reused by the POST response and the GET status resolver.
object
object
Versioned, structured terminal evidence for one TRaSH sync run, serialized into job_run_history.output. Survives a source hard-delete via its embedded identity snapshot.
object
Typed, closed, SAFE failure evidence. message/recoveryAction are pre-authored copy that never embeds raw exception text, git/parser diagnostics, credentials, or hostnames.
object
Closed, safe vocabulary of TRaSH sync failure reasons. Assigned by outcome/error type only — never by message parsing — so no raw diagnostic can leak.
Example
{ "deduped": true, "view": { "arrType": "radarr", "latestRun": { "status": "success", "evidence": { "schemaVersion": 1, "source": { "arrType": "radarr" }, "trigger": "manual", "status": "success", "failure": { "code": "source_missing" } } } }}Failed to enqueue the sync
object
Error message
Examplegenerated
{ "error": "example"}