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
nullto remove them from the schema, otherwisePOSTis interpreted as a partial update.
- https://subdomain.okta.comhttps://subdomain.okta.com/workload-principals/api/v1/ai-agents/schema/default
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
}
}
}
}
}'OK
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": { … } } }