LogoLogo
CommunityCreate AccountSign in
LogoLogo
  • Overview
    • Welcome
    • Authentication
    • Using Environments
  • API Reference
CommunityCreate AccountSign in
API ReferenceJobs

Acknowledge a job

POST
https://api.x.flatfile.com/v1/jobs/:jobId/ack
POST
/v1/jobs/:jobId/ack
1curl -X POST https://api.x.flatfile.com/v1/jobs/us_jb_YOUR_ID/ack \
2 -H "X-Disable-Hooks: true" \
3 -H "Authorization: Bearer <token>" \
4 -H "Content-Type: application/json" \
5 -d '{
6 "info": "Acknowledged by user",
7 "progress": 100,
8 "estimatedCompletionAt": "2023-10-30T20:04:32.074Z"
9}'
Try it
200Example0
1{
2 "data": {
3 "createdAt": "2023-10-30T20:04:28.556Z",
4 "createdBy": "us_usr_YOUR_ID",
5 "id": "us_jb_YOUR_ID",
6 "operation": "submitAction",
7 "source": "us_wb_YOUR_ID",
8 "type": "workbook",
9 "updatedAt": "2023-10-30T20:04:32.075Z",
10 "config": {},
11 "destination": "us_wb_YOUR_ID",
12 "environmentId": "us_env_YOUR_ID",
13 "fileId": "us_fl_YOUR_ID",
14 "finishedAt": "2023-10-30T20:04:32.074Z",
15 "info": "Starting job to submit action to webhook.site",
16 "input": {},
17 "managed": true,
18 "mode": "foreground",
19 "outcome": {
20 "message": "Data was successfully submitted to Webhook.site. Go check it out at https://example.site/example."
21 },
22 "progress": 100,
23 "spaceId": "us_sp_YOUR_ID",
24 "startedAt": "2023-10-30T20:04:29.453Z",
25 "status": "complete",
26 "subject": {
27 "type": "resource",
28 "id": "us_wb_YOUR_ID"
29 },
30 "trigger": "immediate"
31 }
32}
Acknowledge a job and return the job

Path parameters

jobIdstringRequired
ID of job to return

Headers

AuthorizationstringRequired
Bearer authentication of the form `Bearer <token>`, where token is your auth token.
X-Disable-Hooks"true"RequiredDefaults to true

Request

This endpoint expects an optional object.
infostringOptional
progressintegerOptional
the progress of the job. Whole number between 0 and 100
estimatedCompletionAtdatetimeOptional

Response

This endpoint returns an object.
dataobject
A single unit of work that will execute asynchronously
Was this page helpful?
Previous

Acknowledge a job outcome

Next
Built with
ID of job to return

Bearer authentication of the form Bearer <token>, where token is your auth token.