Skip to main content
PUT
JavaScript

Authorizations

x-api-key
string
header
required

Your unique Avido API key

x-application-id
string
header
required

Your unique Avido Application ID

Path Parameters

id
string<uuid>
required

The unique identifier of the task

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json

Request body for updating an existing task

title
string

The title of the task

Minimum string length: 1
Example:

"Updated Credit Card Block"

description
string

A short description of the task

Minimum string length: 1
Example:

"The user wants to block their credit card immediately"

topicId
string<uuid> · null · null

ID of the topic this task belongs to

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"789e4567-e89b-12d3-a456-426614174000"

inputExamples
string[]

Example inputs for the task

Example:
metadata
object | null

Replace the existing task metadata. Use null to clear all metadata for the task.

Example:
simulatedPromptSchema
object · null · null

JSON schema that defines the structure for user prompts that should be generated for tests. Use null to clear the schema.

Example:
isVerified
boolean

Whether the task has been verified

Example:

true

deleteEmptySourceTopic
boolean

If true and the task is moved to a different topic, the source topic will be deleted if it has no remaining tasks. Warning: this is a destructive operation — the source topic will be permanently removed when empty.

Example:

true

Response

Task updated successfully

Successful response containing the task data

task
Task · object
required

A task that represents a specific job-to-be-done by the LLM in the user application.