Skip to main content
Flow AgentsVersion: v3

Update Agent Metadata

PATCH/agent-studio/agent/{agentId}

Updates agent metadata such as name, description, and status.

Authorizations

Authorizationstringheaderrequired

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

Scope:agent-studio.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

agentIdstringrequired

Agent ID whose metadata is being updated

Example:p1q2r3s4t5u6v7w8x9y0z1a2

Query Parameters

sourcestring

Origin channel attributed to this write for auditing (e.g. public_api, internal)

Example:api

Body

locationIdstringrequired

Location ID for authorization (cannot be updated)

Example:C2QujeCh8ZnC7al2InWR
namestring

Name of the agent

Example:Updated Customer Support Agent
descriptionstring

Description of the agent

Example:Updated AI agent with enhanced customer support capabilities
statusstring

Status of the agent

Available optionsactiveinactivearchived
Example:active

Response

Agent metadata updated successfully

successbooleanrequired

Success status

Example:true
messagestringrequired

Response message

Example:Agent updated successfully
dataobjectrequired

Updated agent or version data