Projects
Update Main Project
Update main project details.
A project owner can update all relevant project details, including default name, address and other project related details.
The whole object must be specified when using this endpoint, and optional fields will be set to empty. The PATCH endpoint can be used to update only specific fields. Typically, this endpoint is called after a request to get details.
put/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.