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 URL
    https://developer.beta.salussafety.io
  • URL
    https://developer.beta.salussafety.io/v1/project/{project_id}/
  • Auth
    • HTTP bearer
    • or OAuth 2
      Client credentials
      Token URL: https://guardian.beta.salussafety.io/token
    • or OAuth 2
      Authorization code: https://guardian.beta.salussafety.io/authorize
      Token URL: https://guardian.beta.salussafety.io/token

Path parameters

project_idinteger required

Request body

namestring nullable

The name of the project.

addressstring nullable

The address of the project site.

citystring nullable

The city of the project site.

countrystring nullable

The country of the project site.

timezonestring nullable

The timezone associated with the project site.

phonestring nullable

The main phone number associated with the project site.

longitudenumber nullable

The longitude of the project site.

latitudenumber nullable

The latitude of the project site.

musterPointstring nullable

The muster point for the project site.

isPrivateboolean nullable

Indicates that a project is private.

geoCheckInEnabledboolean nullable

Enable or disable having workers get automatically checked in and out of the site based on their location

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

errorboolean

A boolean error indicator.

messagestring nullable

Optional message.

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.