Skip to main content
POST
Create or replace a text source on several agents

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Body

application/json
title
string
required
Maximum string length: 100
Example:

"Shipping policy"

text
string
required
Maximum string length: 10000
agentIds
string[]

Agents to apply the operation to. Omit to use every agent the API key can access.

Maximum array length: 100
train
boolean
default:false

Start training on each agent the change affects, so it goes live without a separate call.

validFrom
string<date-time> | null

ISO 8601. The agent uses the source only from this time. null clears it. When editing, an omitted field keeps the current value.

Example:

"2026-11-24T00:00:00.000Z"

validUntil
string<date-time> | null

ISO 8601, after validFrom. The agent stops using the source after this time. null clears it. When editing, an omitted field keeps the current value.

Example:

"2026-11-30T23:59:59.000Z"

Response

succeeded
number
required
failed
number
required
results
object[]
required