v1
latestOpenAPI 3.0.02026-08-04265791.1 MBStores
Create
You may create a new single store or multiple stores using this action.
When creating a single store the body contains a json object, when creating multiple stores the body contains an array of objects.
Warning: a maximum of 1000 items can be sent in a single request.
post/public/api/stores
Headers
Acceptstring
e.g. application/json
Request body
Example request
{
"title": "ice-cream-store",
"address": "Statue of Liberty, New York, USA",
"tags": [
"The dream ice-cream",
"number 1 ice-cream"
],
"client_id": "007",
"store_type_name": "ice-cream",
"capacity": 100
}Response
OK
Example response
[
{
"store_id": "5b2122014ebf5300360acae1",
"title": "ice-cream-store",
"address": "Statue of Liberty, New York, USA",
"tags": [
"The dream ice-cream",
"number 1 ice-cream"
],
"client_id": "007",
"store_type_name": "ice-cream",
"latitude": 40.6895453,
"longitude": -74.0449292,
"country": "United States",
"timezone": "America/New_York",
"created_date": "2018-05-23T04:51:40.862Z",
"updated_date": "2018-05-23T04:51:40.862Z"
},
{
"store_id": "5b2122014ebf5300360acae2",
"title": "another-ice-cream-store",
"address": "77th Street, East Elmhurst, NY, USA",
"tags": [
"The dream ice-cream",
"number 1 ice-cream"
],
"client_id": "007",
"store_type_name": "ice-cream",
"latitude": 40.765361,
"longitude": -73.8940281,
"country": "United States",
"timezone": "America/New_York",
"created_date": "2018-05-23T04:51:40.862Z",
"updated_date": "2018-05-23T04:51:40.862Z"
}
]