Jobs
Set a Technician as Primary
Changed onSets the specified technician as the primary technician for the job. All other technicians will be set as non-primary.
put/v2/jobs/{jobId}/team/{userId}
Request
- Base URLhttps://api.workiz.com/crm/api
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
jobIdstring required
Example:JOB-BA5r7o4bqzR9MONa
The Job ID
userIdstring required
Example:USR-BA5r7o4bqzR9MONa
The User ID
Headers
Authorizationstring required
Example:Bearer <token>
Bearer Token
Response
The updated technician with isPrimary set to true
Example response
{
"id": "USR-BA5r7o4bqzR9MONa",
"name": "John Doe",
"emailAddress": "john.doe@example.com",
"isPrimary": true
}Changes
- info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info