Menu
Create Job
Create a job
POST
/api/jobsUse it in a workflow
- Add a step and choose the Gorgias connector.
- Pick the Create Job action (under Jobs).
- Fill in the fields below, then reference the result from later steps as
{{createJob.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"params": {
"ticket_ids": [
1,
2,
3
],
"updates": {
"status": "open"
}
},
"type": "updateTicket",
"meta": {
"description": "This job closes all tickets created in 2018"
},
"scheduled_datetime": "2019-11-23T16:30:00.966927"
}
Response
Returns 201 with an object. Read it in later steps with {{createJob.response.data.<field>}}.
{
"id": 1234,
"cancel_requested_datetime": "2019-11-23T16:31:00.966927",
"cancelled_datetime": "2019-11-23T16:32:00.966927",
"created_datetime": "2019-11-23T16:00:00.966927",
"ended_datetime": "2019-11-23T16:32:00.966927",
"failed_datetime": "2019-11-23T15:59:41.966927",
"info": {
"progress_count": 123
},
"locked_datetime": "2019-11-23T16:30:01.966927",
"meta": {
"description": "This job closes all tickets created in 2018"
},
"params": {
"ticket_ids": [
1,
2,
3
],
"updates": {
"status": "open"
}
},
"scheduled_datetime": "2019-11-23T16:30:00.966927",
"started_datetime": "2019-11-23T16:30:01.966927"
}
Need more? See the Gorgias guide for connection setup and behaviour shared by every action.
Was this page helpful?