cURL
curl --location --request POST https://api.writer.com/v1/applications/jobs/{job_id}/retry \
--header "Authorization: Bearer <token>"import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
response = client.applications.jobs.retry(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.id)import Writer from 'writer-sdk';
const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});
async function main() {
const response = await client.applications.jobs.retry('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.id);
}
main();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "in_progress",
"created_at": "2023-11-07T05:31:56Z"
}Applications API
Retry job execution
Re-triggers the async execution of a single job previously created via the Async api and terminated in error.
POST
/
v1
/
applications
/
jobs
/
{job_id}
/
retry
cURL
curl --location --request POST https://api.writer.com/v1/applications/jobs/{job_id}/retry \
--header "Authorization: Bearer <token>"import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
response = client.applications.jobs.retry(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.id)import Writer from 'writer-sdk';
const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});
async function main() {
const response = await client.applications.jobs.retry('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.id);
}
main();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "in_progress",
"created_at": "2023-11-07T05:31:56Z"
}No-code applications are now called no-code agents. The Applications API, which you can use to programmatically interact with no-code agents, still uses the term
application to minimize breaking changes.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.
Path Parameters
The ID of the job to retry.
Was this page helpful?