Patch a location

Prev Next
Patch
/network/locations/{locationId}

Apply a patch to a location passing only the properties to modify.

Required permissions: READ_LOCATION, WRITE_LOCATION.

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the target tenant (e.g. acme).

Path parameters
locationId
stringRequired

The location identifier.

Minimum1.0
Exampleabcd1234
Body parameters

The details of location being patched.

Expand All
object
name
string

The location name.

country
string

The country the location belongs to.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

gpsPosition
string

The GPS coordinates associated with this location.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": "123" }
property*
string additionalProperties
customerId
string

The customer identifier.

customer
object

The location identifier (required only for creation).

id
string
Example1234abcd
Responses
200

Successful patched.

Expand All
object
id
string

The location object identifier.

name
string

The location name.

country
string

The country the location belongs to.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

gpsPosition
string

The GPS coordinates associated with this location.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": "123" }
property*
string additionalProperties
customerId
string

The customer identifier.

400

Request data not valid.

object
message
string

The error response.

ExampleBad request
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
404

Resource was not found.

object
message
string

The error response.

ExampleResource not found
429

API call rate limit exeeded.

object
message
string

The error response.

ExampleAPI call rate limit exeeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error