user_id
as a path parameter to identify the user whose active organization needs to be updated.organization_id
of the new organization to which the user should be assigned.curl --location -g --request PUT 'https:///v2/api/user/0/permission' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"organization_id": 2
}'
{
"success": true,
"message": "UserOrganization modified successfully.",
"data": {
"id": 191,
"email": "hz8tester@gmail.com",
"is_staff": false,
"is_superuser": false,
"is_active": false,
"date_joined": "2025-01-31T16:20:38.357227Z",
"first_name": "hz08",
"last_name": "tester",
"organization": {
"id": 2,
"org_name": "Ejento",
"domain": "ejento.ai",
"org_logo_url": "",
"org_icon_url": "",
"is_deleted": false,
"created_by": "System",
"created_on": "2024-03-19T19:10:01.159886Z",
"modified_by": "System",
"modified_on": "2024-03-19T19:10:01.159905Z"
}
}
}