clock-rotate-leftget_task_history

imerit_ango.sdk.SDK.

get_task_history(task_history_id, task_id)

Get the stage history of a task.

Parameters

  • task_history_id: string, optional, default None

    • Optionally, the ID of the stage history item.

    • For example, if you run this function on a task without passingtask_history_id, assuming the task has been through 6 stages, you will receive a list with 6 objects. Each of these objects has its own _id value. If you pass this _id value as the task_history_id parameter, you can filter out all tak stage history items and only return the one with this specific ID.

    • Example: '0000000aa0a00a0000aaaa0a'

  • task_id: string

    • ID of the task to get the history of. Task IDs can be obtained from the UI, and from get_tasks.

    • Example: '0000000aa0a00a0000aaaa0a'

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

Example

Get the task history of a specific task.

chevron-rightSample Outputhashtag
circle-info

See also

get_task

Last updated