Projects
Add a Worker
Add a worker to project.
The user must already exist before being added to a project.
post/v1/project/{project_id}/worker/
Request
- Base URLhttps://developer.beta.salussafety.io
- URLhttps://developer.beta.salussafety.io/v1/project/{project_id}/worker/
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: https://guardian.beta.salussafety.io/token
- or OAuth 2Authorization code: https://guardian.beta.salussafety.io/authorizeToken URL: https://guardian.beta.salussafety.io/token
Path parameters
project_idinteger required
Request body
Example request
{
"userId": 2
}Response
Successful Response
Example response
{
"data": {
"userId": 2,
"id": 1,
"companyId": 2,
"siteId": 2
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.