PATCH
/
location
/
{locationNum}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

locationNum
number
required

location number

Body

application/json

Location details

address
object

Location address details

attributes
object

Custom location attributes

coordinates
object

coordinate details of the location in Geo Json format

isActive
boolean

true indicates location is active<br />false indicates location is inactive.

locationNum
integer

Unique number to identify the location

name
string

Name of the location

operatingHours
object[]

Operating hours of the location

services
object

JSON attributes on which locations are allowed to filter

type
string

Type of inventory location

Response

200 - application/json

This object contains location details

address
object

Location address details

attributes
object

Location attribute object

coordinates
object

coordinate details of the location in Geo Json format

createdAt
string

Date on which the location is created

id
string

Unique location identifier

isActive
boolean

true indicates location is active<br />false indicates location is inactive.

locationNum
integer

Unique number to identify the location

name
string

Location name

operatingHours
object[]

Operating hours of the location

services
object

JSON attributes on which locations are allowed to filter

type
string

Location type

updatedAt
string

Date on which the location is updated