Skip to main content

Log Task Execution

Endpoint: POST /tasks/{taskId}/log

Logs messages or additional details to a specific task execution.

Path parameters

ParameterDescriptionTypeRequired/ Optional
taskIdThe execution ID of the task to log the message.stringRequired.

Request body

Format the request to include the details to be logged for the task.

Example

{"message": "Log this message to the task"}

Examples

Log messages to a task execution

Request

curl -X 'POST' \
'https://<YOUR_CLUSTER>/api/tasks/0c658ed7-becd-11ef-a89d-86a819bd92bf/log' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"message": "Log this message to the task"}'

Response

Returns 200 OK, indicating that the message has been logged to the task execution.