user_id
as a path parameter to identify the user who will receive the permission.organization_id
: The ID of the organization the user is being associated with.Admin
, User
, etc.).curl --location -g --request POST 'https:///v2/api/user/0/permission' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"organization_id": 1
}'
{
"success": true,
"message": "UserOrganization created successfully.",
"data": {
"id": 8,
"organization": {
"id": 1,
"org_name": "Data Science Dojo",
"domain": "datasciencedojo.com"
},
"permission": "User",
"created_by": "user@example.com",
"created_on": "2025-04-04T15:08:06.025013Z",
"user": 2
}
}