Update a location

patch/locations/v1beta1/locations/{id}

Update the location Information for a specified location.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Unique 32 digit alpha-numeric identifier for the location (945e70ec-b043-4cad-9ed0-069c06fdb8af)

Request Body schema: application/merge-patch+json
required

Updated Location Information

Array of objects (server.UpdateAddressNBRequest)
Array of objects (server.UpdateContactsNBRequest)
description
string
expiredAt
string

Date the location expired.

name
string <= 100 characters
locationType
string (db.LocationType)

Type of location.

Value: "building"
validated
boolean
Default: true

Boolean confirming if the location has been validated or not.

validatedAt
string

The date the location was validated in the format mm-dd-yyyy.

validatedByEmail
string

Email address of the workspace user that validated the location.

validatedByName
string

The name of the workspace user that validated the location.

validationCycle
string (db.ValidationCycle)

An integer in months that defines how long the location remains validated.

Enum: "" "6" "12" "18"
validationExpired
boolean
Default: false

A Boolean confirming if the location validation has expired or not.

Responses
200

OK

400

Bad request

404

Not found

500

Internal server error

Request samples
application/merge-patch+json
{
  • "addresses": [
    ],
  • "contacts": [
    ],
  • "description": "string",
  • "expiredAt": "string",
  • "name": "string",
  • "locationType": "building",
  • "validated": true,
  • "validatedAt": "string",
  • "validatedByEmail": "string",
  • "validatedByName": "string",
  • "validationCycle": "",
  • "validationExpired": false
}
Response samples
application/json
{
  • "addresses": [
    ],
  • "contacts": [
    ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "locationType": "building",
  • "createdAt": "string",
  • "description": "string",
  • "expiredAt": "string",
  • "generation": 0,
  • "type": "locations/external-service",
  • "updatedAt": "string",
  • "validated": true,
  • "validatedAt": "string",
  • "validatedByEmail": "string",
  • "validatedByName": "string",
  • "validationCycle": "",
  • "validationExpired": false
}