Infra > Sync Task
Sync Task
Sync the task with the upstream provider and return the latest local state.
POST/api/app/v1/tasks/{task_id}/sync
Examples
curl -X POST https://api.medux.io/api/app/v1/tasks/TASK_ID/sync \ -H 'Authorization: Bearer $MEDUX_API_KEY'
Auth Requirements
Authentication is required via Authorization header.
Preconditions
Requires a task_id created by a clone, generate, or process request.
Use this when you want to refresh task state outside the default polling loop.
Request
Body
application/jsonAuthorizationstringrequiredBearer token or API key.
Location: HEADER
task_idstringrequiredNo description provided.
Location: PATH
Response
Response
application/jsoncodeint32optionalApplication response code.
| Code | Meaning |
|---|---|
0 | OK |
13 | Authentication is required |
15 | Resource not found |
99 | Server error |
Available options: 0 13 15 99
Location: RESPONSE
data.taskobjectoptionalNo description provided.
Location: RESPONSE
messagestringoptionalNo description provided.
Available options: ok unauthenticated not found server error
Location: RESPONSE
On this page