Create location attribute
Creates a unique location attribute
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Body
Location attribute code
"isBopis"
Location attribute name
"isBopis"
Detailed description of the attribute
"To check the status of the BOPIS(Buy-Online-Pickup-In-Store)"
Data type of an attribute
BOOLEAN
, INTEGER
, NUMBER
, STRING
Flag to define the attribute as mandatory while creating location. If it's configured as true, this attribute is mandatory while creating location.
true
Response
Location attribute ID that is generated automatically for the location
"622786ae0bdb19221a24fb61"
Location attribute code
"isBopis"
Location attribute name
"Is Bopis"
Detailed description about attribute
"To check the status of the BOPIS (Buy-Online_Pickup-In-Store)"
Data type of an attribute
BOOLEAN
, INTEGER
, NUMBER
, STRING
Flag to define the attribute as mandatory while creating location. If it's configured as true, this attribute is needed while creating location
true
Was this page helpful?