Skip to main content

kobana kadu tasks

Commands of kobana kadu tasks. Every global option (Global options) applies here.

CommandHTTPDescription
tasks endpointGET /v1/tasks/{id}/endpointTask HTTP run endpoint
tasks endpoint updatePUT /v1/tasks/{id}/endpointConfigure the Task's HTTP endpoint
tasks endpoint deleteDELETE /v1/tasks/{id}/endpointDisable the Task's HTTP endpoint
tasks listGET /v1/tasksList tasks
tasks createPOST /v1/tasksCreate task
tasks getGET /v1/tasks/{id}Get task details
tasks updatePATCH /v1/tasks/{id}Update task
tasks deleteDELETE /v1/tasks/{id}Delete tasks (soft delete)
tasks readinessGET /v1/tasks/{id}/readinessRun pre-check
tasks runPOST /v1/tasks/{id}/runRun task

tasks endpoint​

Task HTTP run endpoint

kobana kadu tasks endpoint [ID] [OPTIONS] [COMMAND]

GET /v1/tasks/{id}/endpoint

Configuration of the public endpoint POST /api/run-task/{task_id}. Credentials are never returned: only the *_set flags.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks endpoint update​

Configure the Task's HTTP endpoint

kobana kadu tasks endpoint update [ID] [OPTIONS]

PUT /v1/tasks/{id}/endpoint

Creates or updates. An omitted credential keeps the stored one as long as the auth type does not change. Avoid auth: params: the secret goes in the URL and ends up in proxy and CDN access logs; prefer bearer or header.

Path arguments: id

Request body

NameTypeRequiredDescription
enabledbooleanyes
authstringyesValues: basic, bearer, header, params.
auth_basic_userstringno
auth_basic_passwordstringno
auth_bearer_tokenstringno
auth_header_keystringno
auth_header_valuestringno
auth_param_keystringno
auth_param_valuestringno

More fields and nested objects: kobana schema kadu.tasks.endpoint.update.

Responses

HTTPDescription
200OK
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422INCOMPLETE_AUTH β€” credential missing for the chosen auth type
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks endpoint delete​

Disable the Task's HTTP endpoint

kobana kadu tasks endpoint delete [ID] [OPTIONS]

DELETE /v1/tasks/{id}/endpoint

Keeps the configuration; a PUT with enabled: true re-enables it.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks list​

List tasks

kobana kadu tasks list [OPTIONS]

GET /v1/tasks

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks create​

Create task

kobana kadu tasks create [OPTIONS]

POST /v1/tasks

The task is created in the default pricing tier; tier and AI model are set by Kobana (model in the body is rejected).

Request body

NameTypeRequiredDescription
labelstringyes
workspace_idstring (uuid)yes
activity_idstring (uuid)yes
skill_slugstringyes<plugin>:<skill> from the organization's repository: the workspace's plugin (when it has one), a skill present in the synced catalog (when there is a catalog), never kadu:*.
parameters_schemaobjectno
parameters_sensitivebooleanno
external_idstringnoRecord id in the source system (free text).
custom_metadataobjectno

More fields and nested objects: kobana schema kadu.tasks.create.

Responses

HTTPDescription
201created
400VALIDATION_ERROR
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422VALIDATION_ERROR β€” workspace/activity outside the organization or skill_slug not allowed
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks get​

Get task details

kobana kadu tasks get [ID] [OPTIONS]

GET /v1/tasks/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks update​

Update task

kobana kadu tasks update [ID] [OPTIONS]

PATCH /v1/tasks/{id}

Path arguments: id

Request body

NameTypeRequiredDescription
labelstringno
skill_slugstringno<plugin>:<skill> from the organization's repository: the workspace's plugin (when it has one), a skill present in the synced catalog (when there is a catalog), never kadu:*.
parameters_schemaobjectno
parameters_sensitivebooleanno
custom_metadataobjectno

More fields and nested objects: kobana schema kadu.tasks.update.

Responses

HTTPDescription
200OK
400VALIDATION_ERROR
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422VALIDATION_ERROR β€” skill_slug not allowed
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks delete​

Delete tasks (soft delete)

kobana kadu tasks delete [ID] [OPTIONS]

DELETE /v1/tasks/{id}

Requires the delete level (or all): write does not delete. Cascade: the task's executions and files; cancels schedules and disables the endpoint.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks readiness​

Run pre-check

kobana kadu tasks readiness [ID] [OPTIONS]

GET /v1/tasks/{id}/readiness

Whether the Task can run in the environment: valid environment and a value for every required secret (in the Task's workspace or global). Also returns the Task's queue. The run revalidates everything.

Path arguments: id

Query parameters

NameTypeRequiredDescription
environment_idstringno

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

tasks run​

Run task

kobana kadu tasks run [ID] [OPTIONS]

POST /v1/tasks/{id}/run

Path arguments: id

Request body

NameTypeRequiredDescription
reference_datestringyes
environment_idstring (uuid)yes
parametersobjectno
localestringno
additional_instructionsstringno
input_file_idsarray<string (uuid)>noFiles uploaded through POST /files (confirmed and not yet used).
modestringnoresolve_pendencies only resolves the pending items of the Task's previous executions (console: "Resolve pending items"); parameters is ignored. Values: default, resolve_pendencies.

More fields and nested objects: kobana schema kadu.tasks.run.

Responses

HTTPDescription
201created
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422COST_LIMIT_REACHED / INVALID_PARAMETERS / ENVIRONMENT_REQUIRED / MISSING_SECRETS (details.keys) / INVALID_INPUT_FILES
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).