Skip to content
DELETE /sync-job/{id}

The job and its runs are deleted in the background. Until that finishes, getting the job still returns it.

Path Parameters

idstring
required·

The ID of the sync job to delete.

Response Body

idstring · uuid

The ID of the resource that was deleted.

Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795
truto sync-jobs delete '<id>'
import Truto from '@truto/truto-ts-sdk';

const truto = new Truto({
  token: '<your_api_token>',
});

await truto.syncJob.delete('<id>');
import asyncio
from truto_python_sdk import TrutoApi

truto_api = TrutoApi(token="<your_api_token>")

async def main():
    await truto_api.sync_jobs.delete("<id>")

asyncio.run(main())
curl -X DELETE 'https://api.truto.one/sync-job/{id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/sync-job/{id}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/sync-job/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.delete(url, headers=headers, params=params)
print(response.json())