Skip to content

Update an AI agent

Request

Beta
OAuth 2.0 scope:
  • okta.aiAgents.manage
Admin roles:
  • SUPER_ADMIN

Updates an AI agent. Use this request to perform partial updates on an AI agent's profile properties. Send only the fields to update. Use null to remove a value.

Warning: If the agent is bound to an OAuth2 app instance and you switch its auth method to CIMD by providing oauthClient, the bound OAuth2 app is converted to a CIMD OAuth2 app. Any OAuth2 configuration previously saved in Okta for that app (such as grant types, redirect URIs, and client credentials) is replaced by the CIMD document. This action is destructive and can't be undone.

Path
agentIdstringrequired

ID of the AI agent in Okta

Example:wlpcFogtKCrK9aYq3fgV
Bodyapplication/merge-patch+jsonrequired
profileobject(PatchAIAgentProfile)

Partial update for AI agent profile

resourceUrlstring or null

The resource URL for the agent-to-agent (A2A) server that is associated with this AI agent. When provided, an A2A resource server is automatically created for this agent. This field can only be set once, and only for agents that don't already have an associated A2A server.

Example:"https://demo-agent.example.com"
signOnProviderobject(PatchWorkloadPrincipalSignOnProviderRequest)
oauthClientobject(WorkloadPrincipalOAuthClientCimdRequest)

Registers the AI agent as a CIMD OAuth client, using a hosted metadata URL as the client identity. When provided, Okta creates a CIMD client entity and binding instead of an Okta-hosted client app. You can combine it with signOnProvider: { type: EXISTING_APP, appInstanceId: "..." } to bind the CIMD agent to an existing OIDC app instance. When combined with EXISTING_APP, omit clientIdMatchPattern. The agent adopts the existing app's CIMD identity.

appIdstring or nulldeprecated

The ID of the connected app for the AI agent. Deprecated. Use the Delegation Links API instead.

curl -i -X PATCH \
  https://subdomain.okta.com/workload-principals/api/v1/ai-agents/wlpcFogtKCrK9aYq3fgV \
  -H 'Content-Type: application/merge-patch+json' \
  -d '{
    "appId": "0oab1234EXAMPLEID5d6",
    "profile": {
      "name": "Updated name",
      "description": "Updated description"
    }
  }'

Responses

Accepted

Headers
Locationstring, (uri)required

URL to poll for operation status. See AI Agent Operations.

Example:"https://subdomain.okta.com/workload-principals/api/v1/operations/op-1a2b3c4d"
Response
No content