MeduxMedux

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/json
Authorizationstringrequired

Bearer token or API key.

Location: HEADER

task_idstringrequired

No description provided.

Location: PATH

Response

Response

application/json
codeint32optional

Application response code.

CodeMeaning
0OK
13Authentication is required
15Resource not found
99Server error

Available options: 0 13 15 99

Location: RESPONSE

data.taskobjectoptional

No description provided.

Location: RESPONSE

messagestringoptional

No description provided.

Available options: ok unauthenticated not found server error

Location: RESPONSE