Manage a location

patch/locations/v1/locations/update/{id}

Manage the location information for a location specified by its location ID. Provide information in the request body schema to create, update, or delete the location's address, contact, or location details.

SecurityBearer
Request
path Parameters
id
required
string <uuid>

The unique identifier for the location. For example, 945e70ec-b043-4cad-9ed0-069c06fdb8af.

Request Body schema: application/merge-patch+json
required
object (server.UpdateAddressesPatchRequest)
object (server.UpdateContactsPatchRequest)
object (server.LocationDetails)
Responses
200

OK

400

Bad request

404

Not found

500

Internal server error

Request samples
application/merge-patch+json
{
  • "addresses": {
    },
  • "contacts": {
    },
  • "locationDetails": {
    }
}
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
}