Skip to main content
PATCH
Update an agent

Authorizations

Authorization
string
header
required

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

Path Parameters

spaceId
required

ID of the space the agent belongs to.

Required string length: 2 - 6
agentId
string<uuid>
required

Unique ID of the agent.

Body

application/json
name
string

Display name of the agent.

Minimum string length: 1
description
string

Short description of what the agent does.

systemInstruction
string | null

System prompt / instructions that define the agent's behavior.

conversationStarters
object[]

Suggested prompts shown to users when starting a chat with the agent.

welcomeMessage
object

Welcome message shown when a chat with the agent starts, keyed by locale (e.g. { "text": { "en-US": "Hi!" } }).

model
string | null

Model ID used for completions with this agent (e.g. "azure-gpt-4o"). See List all AI models.

temperature
number | null

Sampling temperature applied to completions with this agent.

attachmentIds
string<uuid>[]

KB asset IDs (files uploaded via Upload an asset) attached as agent knowledge.

folderIds
string<uuid>[]

Knowledge folder IDs whose contents the agent can search.

contentIds
string<uuid>[]

nuwacom document/content IDs attached as agent knowledge.

allowUploads
boolean

Whether users may attach file uploads when chatting with the agent.

allowUrls
boolean

Whether users may attach URLs when chatting with the agent.

enableFollowUpMessages
boolean

Whether the agent suggests follow-up messages after each response.

categoryId
number | null

ID of the library category the agent is assigned to.

voiceId
string<uuid> | null

ID of the tone-of-voice profile applied to the agent.

appEnabled
boolean

Whether the agent is available inside the nuwacom app. Defaults to true.

embedEnabled
boolean

Whether the agent is published as an external, embeddable chat widget. When enabling this, set embedOptions.domainWhitelist before publishing (publishing an embed-enabled agent without an allowlist is rejected). Defaults to false.

embedOptions
object

External embed widget options (allowed domains, theme, upload/voice toggles, source display). On update the provided object fully replaces the current embed options.

actions
object[]

Actions/tools the agent can use. On update the provided array fully replaces the agent's current draft actions (send [] to remove all). Publish the agent to make action changes take effect for the Completion API.

Response

Agent updated successfully.

id
string<uuid>
required

Unique ID of the agent. Use it with the Completion API (agentId option) to chat with the agent.

spaceId
required

ID of the space the agent belongs to.

Required string length: 2 - 6
name
string
required
description
string
required
systemInstruction
string | null
required
conversationStarters
object[]
required
welcomeMessage
object | null
required
model
string | null
required
temperature
number | null
required
attachmentIds
string<uuid>[]
required
folderIds
string<uuid>[]
required
contentIds
string<uuid>[]
required
allowUploads
boolean
required
allowUrls
boolean
required
enableFollowUpMessages
boolean
required
categoryId
number | null
required
voiceId
string | null
required
appEnabled
boolean
required
embedEnabled
boolean
required

Whether the agent is published as an external, embeddable chat widget.

embedId
string | null
required

Identifier used to embed the agent as an external widget.

embedOptions
object
required

External embed widget options (draft state).

actions
object[]
required

Actions/tools configured on the agent (draft state).

isSystemAgent
boolean
required

true for built-in nuwacom system agents (cannot be updated or deleted).

published
boolean
required

Whether a published version of the agent exists. Publishing happens in the nuwacom app.

hasUnpublishedChanges
boolean
required

true when the draft differs from the published version (or nothing has been published yet).

createdAt
string
required
updatedAt
string
required