agent_id
, follow this guide:curl --location -g --request PUT 'https:///v2/api/agent/1251/alias' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"alias": "PolicyWhisperer_1251-dev@ejento.ai"
}'
{
"success": true,
"message": "Agent Alias updated successfully",
"data": [
{
"id": 1283,
"agent_name": "SP Indexing 3",
"alias": "SPIndexing3_1283-dev@ejento.ai",
"project": {
"id": 2,
"created_by": "user@example.com",
"created_on": "2024-01-23T16:49:01.320701Z",
"modified_by": "zobia@example.com",
"modified_on": "2024-09-09T22:39:02.737244Z",
"project_name": "indexing",
"team_visibility": false,
"is_deleted": false,
"team": 2
}
}
]
}