Skip to content

Replace the profile mappings for an AI agent provider

Request

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

Replaces the AI agent provider's profile mappings. After saving, the new mappings are immediately applied to all existing AI agents sourced from this provider.

Note: This operation replaces all existing property mappings with the provided list.

Path
providerIdstringrequired

ID of the AI agent provider

Example:aip-1a2b3c4d
Bodyapplication/jsonrequired
propertyMappingsArray of objects(AIAgentProviderProfileMappingProperty)

List of attribute mapping rules from the source app to the AI agent profile

curl -i -X PUT \
  https://subdomain.okta.com/workload-principals/api/v1/ai-agent-providers/aip-1a2b3c4d/profile-mappings \
  -H 'Content-Type: application/json' \
  -d '{
    "propertyMappings": [
      {
        "targetField": "agentName",
        "sourceExpression": "source.agentName"
      },
      {
        "targetField": "agentDescription",
        "sourceExpression": "source.agentDescription"
      },
      {
        "targetField": "agentPlatform",
        "sourceExpression": "source.agentPlatform"
      },
      {
        "targetField": "externalID",
        "sourceExpression": "source.agentID"
      }
    ]
  }'

Responses

Accepted

Headers
Locationstring, (uri)required

URL to poll for status. See AI Agent Operations.

Example:"https://{yourOktaDomain}/workload-principals/api/v1/operations/op-1a2b3c4d"
Response
No content