PATCH
/
api
/
v1
/
agents
/
{agent_id}
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "status": "ACTIVE",
  "autoConfirm": true,
  "description": "",
  "emailTrigger": {
    "active": true,
    "allowedSenders": [
      "<string>"
    ],
    "email": "<string>"
  },
  "dataSchema": {
    "title": "DataToExtract",
    "description": "",
    "type": "object",
    "properties": {},
    "required": [
      "<string>"
    ]
  },
  "dataDestinations": [
    {
      "type": "ASKUI_WORKFLOW",
      "host": "SELF",
      "runnerTags": [
        "<string>"
      ],
      "workflows": [
        "<string>"
      ]
    }
  ],
  "workspaceId": "<string>",
  "folderPath": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Body

application/json
name
string | null

The name of the agent. The name must only contain the following characters: a-z, A-Z, 0-9, -, _, and space. The name must not be empty. The name must start and end with a letter or a number. The name must not be longer than 64 characters.

description
string | null
default:
Maximum length: 1024
status
enum<string> | null
Available options:
ACTIVE,
ARCHIVED
emailTrigger
object | null
autoConfirm
boolean | null

Response

200
application/json
Successful Response
name
string
required

The name of the agent. The name must only contain the following characters: a-z, A-Z, 0-9, -, _, and space. The name must not be empty. The name must start and end with a letter or a number. The name must not be longer than 64 characters.

status
enum<string>
required
Available options:
ACTIVE,
ARCHIVED
autoConfirm
boolean
required

If true, the agent will automatically confirm the data extracted, i.e., no review is necessary.

emailTrigger
object
required
dataDestinations
object[]
required
workspaceId
string
required
id
string
createdAt
string
updatedAt
string
description
string
default:
Maximum length: 1024
dataSchema
object | null
        The data schema describes the data to extract in form of a [JSON schema draft 2020-12](https://json-schema.org/draft/2020-12/release-notes). Use the ["description" keyword](https://json-schema.org/understanding-json-schema/reference/annotations) of each property to provide additional information about the field, e.g., the prompt for extraction from sources. 
    
folderPath
string | null