Skip to main content
Update an existing agent. The request body is a partial patch: any field you include is replaced, any field you omit is left unchanged. Following the OpenAI beta convention, updates use POST on the resource path.

Endpoint

Authentication

Authorization: Bearer <api_key> or Authorization: ApiKey <api_key>.

Path parameters

string
required
Agent identifier.

Request body

string
Display name.
string
Backing model identifier.
string
System instructions.
array
Full replacement of the tool list.
object
Full replacement of metadata.

Response

Returns the full updated agent object; same shape as Get Agent.

Example