Projects
Patch Main Project
Update main project details.
A project owner can update all relevant project details, including default name, address and other project related details.
This endpoint will ignore any fields that are empty; only fields with values will be updated.
patch/v1/project/{project_id}/
Request
- Base URLhttps://developer.beta.salussafety.io
- URLhttps://developer.beta.salussafety.io/v1/project/{project_id}/
- 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
{
"name": "The Project Name",
"address": "123 Somewhere Ave",
"city": "Vancouver",
"country": "Canada",
"timezone": "America/Vancouver",
"phone": "16045551234",
"longitude": 35.89421911,
"latitude": 139.94637467,
"isPrivate": true,
"geoCheckInEnabled": true
}Response
Successful Response
Example response
{
"data": {
"id": 123,
"name": "The Project Name",
"address": "123 Somewhere Ave",
"city": "Vancouver",
"country": "Canada",
"timezone": "America/Vancouver",
"phone": "16045551234",
"longitude": 35.89421911,
"latitude": 139.94637467,
"siteCode": 54231,
"isPrivate": true,
"geoCheckInEnabled": true
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.