Tasks

Create a task

Create a new task in the caller's org.

When agent_id is provided it must belong to the caller's org; otherwise a 422 is returned. The task starts in pending status.

post/tasks

Request

  • Base URL: https://api-docs.jackhamr.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api-docs.jackhamr.ai/tasks
  • Auth: none declared

Request body

namestring required
descriptionstring nullable
task_typestring
agent_idstring nullable
parent_idstring nullable
commandstring nullable
working_directorystring nullable
environment_varsobject nullable
dependenciesstring[] nullable
priorityinteger
scheduled_atstring date-time nullable
max_retriesinteger

Response

Successful Response

idstring required
agent_idstring nullable
parent_idstring nullable
namestring required
descriptionstring nullable
task_typestring required
statusstring required
priorityinteger
commandstring nullable
working_directorystring nullable
environment_varsobject nullable
dependenciesstring[] nullable
progress_percentinteger
progress_messagestring nullable
result_dataobject nullable
error_messagestring nullable
started_atstring date-time nullable
completed_atstring date-time nullable
scheduled_atstring date-time nullable
duration_secondsinteger nullable
exit_codeinteger nullable
max_retriesinteger
retry_countinteger
retry_delay_secondsinteger
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.