Skip to content

Update the default AI agent schema

Request

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

Updates the AI agent schema. Use this request to add, modify, or remove custom profile attributes for AI agents.

Note: You must set properties explicitly to null to remove them from the schema, otherwise POST is interpreted as a partial update.

Bodyapplication/jsonrequired
definitionsobject(AIAgentSchemaDefinitions)
descriptionstring

Description for the schema

propertiesobject

AI Agent schema properties

titlestring

Display name for the schema

curl -i -X POST \
  https://subdomain.okta.com/workload-principals/api/v1/ai-agents/schema/default \
  -H 'Content-Type: application/json' \
  -d '{
    "definitions": {
      "custom": {
        "properties": {
          "department": {
            "title": "Department",
            "type": "string",
            "description": "The department that owns this AI agent",
            "mutability": "READ_WRITE",
            "required": false
          }
        }
      }
    }
  }'

Responses

OK

Bodyapplication/json
$schemastringread-only

JSON schema version identifier

createdstring, (date-time)read-only

Timestamp when the schema was created

definitionsobject(AIAgentSchemaDefinitions)
descriptionstring

Description for the schema

idstringread-only

URI of AI Agent schema

lastUpdatedstring, (date-time)read-only

Timestamp when the schema was last updated

namestringread-only

Name of the schema

propertiesobject

AI Agent schema properties

titlestring

Display name for the schema

typestringread-only

Type of root schema

Response
{ "id": "https://{yourOktaDomain}/workload-principals/api/v1/ai-agents/schema/default", "$schema": "http://json-schema.org/draft-04/schema#", "name": "AI Agent", "title": "AI Agent", "description": "Okta AI Agent profile", "created": "2024-01-01T00:00:00.000Z", "lastUpdated": "2024-01-01T00:00:00.000Z", "definitions": { "base": { … }, "custom": { … } }, "_links": { "self": { … } } }