API reference
//
Assign staff to a project
🔐 Required role:
PROJ_C📖 Data dictionary: Project
Assign staff to a project
Creates associations between staff members and a job:
staffJobAssignments: assigns staff directly to the job viastaff_jobrecordsstaffTaskAssignments: assigns staff to specific task types on the job viatask_type_staff_jobrecords
If an association already exists but is inactive, it will be re-activated.
Returns the IDs of created or re-activated records as {"staffJobIds": [<staff_job id>, ...], "staffTaskIds": [<task_type_staff_job id>, ...]}.
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/projects/assign_staff
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/projects/assign_staff
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/projects/assign_staff
curl -i -X POST \
https://api.sandbox.aiwyn.app/api/v1/projects/assign_staff \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"jobId": 5001,
"staffJobAssignments": [
{
"staffId": 103
},
{
"staffId": 104
}
],
"staffTaskAssignments": [
{
"staffId": 103,
"taskTypeId": 10
},
{
"staffId": 104,
"taskTypeId": 11
}
]
}'Response
{ "staffJobIds": [ 0 ], "staffTaskIds": [ 0 ] }