Add Role To Project
add_role_to_projectAssigns a person to a role in a project, returning the new Role UUID. Provide company, project, and person IDs to create the assignment.
Instructions
Assign a Person to a Role in a Project. A successful response returns the new Role UUID. company_id and project_id default to the values set by procore_set_config when omitted. Creates the role and returns it with its new id (HTTP 201); calling it again creates another record. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: company_id, project_id, person_id. Procore API: Resource Management > Resource Planning. Endpoint: POST /rest/v1.0/workforce-planning/v2/companies/{company_id}/projects/{project_id}/roles
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_id | Yes | JSON request body field — uUID of the Person being assigned the Role. | |
| company_id | Yes | URL path parameter — unique identifier for the company. This parameter accepts both formats: - **Recommended**: Procore company ID (integer) - Use this for new integrations - Legacy: LaborChart UUID format (uuid string... | |
| project_id | Yes | URL path parameter — unique identifier for the project | |
| job_title_id | No | JSON request body field — uUID of the Job Title for the Role. If omitted, the Person's default Job Title is used. |