Browse Platform API
Platform APIEnterprise

Update a timer task

Copy

Update a timer task's schedule, category, retry policy, or callback configuration.

HTTP request

POST {API_ADDRESS}/timer/update_timer_task

Request example

curl --request POST "${API_ADDRESS}/timer/update_timer_task" --header "Content-Type: application/json" --header "operationID: ${OPERATION_ID}" --header "token: ${TOKEN}" --data-raw '{"taskID":"task_001","taskName":"Updated reminder","executeAt":1719900000000,"userID":"user_001"}'

Request body

ParameterRequiredTypeDescription
taskIDYesstringTimer task ID.
userIDYesstringUser associated with the task.
taskNameNostringNew name.
taskCategoryNostringNew business category.
executeAtNointNew execution time in Unix milliseconds.
executeBeforeNointNew latest execution time in Unix milliseconds.
maxRetryNointNew maximum retry count.
callbackConfigNoTimerTaskCallbackConfigNew callback configuration.

Response

The common response has errCode: 0 when the task was updated successfully.

Errors

See Error codes.

Permissions and limits

  • Available only in OpenIM Enterprise.
  • Omit fields that should remain unchanged.