agent_id
.agent_id
, follow this guide:curl --location -g --request POST 'https:///v2/api/agent/0/user' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"users": [
160,
16
]
}'
{
"success": true,
"message": "User added successfully",
"data": [
{
"id": 127,
"user": {
"id": 160,
"email": "user@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2024-12-19T23:03:56.620602Z",
"first_name": "user",
"last_name": "user",
"organization": {
"id": 1,
"org_name": "Data Science Dojo",
"domain": "datasciencedojo.com",
"org_logo_url": null,
"org_icon_url": null,
"is_deleted": false,
"created_by": "System",
"created_on": "2024-01-20T01:32:56.659642Z",
"modified_by": "user@example.com",
"modified_on": "2024-01-20T01:32:56.659663Z"
}
}
}
]
}