project_id
, follow this guide:curl --location -g --request POST 'https:///v2/api/project/0/user' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_ids": [
0
],
"created_by": "string"
}'
{
"success": true,
"message": "Users added to project successfully.",
"data": [
{
"id": 0,
"user": {
"id": 0,
"email": "user@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"first_name": "string",
"last_name": "string",
"organization": {
"id": 0,
"org_name": "string",
"domain": "string",
"org_logo_url": "string",
"org_icon_url": "string",
"is_deleted": true,
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"modified_by": "string",
"modified_on": "2019-08-24T14:15:22Z"
}
}
}
]
}