Creates a new store.
POST
/api/region/{regionId}/stores
This method creates a new store. The store will initial contains the provided information.
Additional the platform will prepare the chat channels for team and sprinters.
The calling user is added as first store responsible in the store team.
You can add an initial first post on the store wall for all following members.
After creation the platform informs all members of the related region about the new store.
Authorizations
api_key
Requests manipulating data need to supply a CSRF token
TypeAPI Key (header: X-CSRF-Token)
Parameters
Path Parameters
regionId*
Typestring
RequiredRequest Body
application/json
JSON
{
"store": {
"name": "string",
"location": {
"lat": 52.5,
"lon": 13.4
},
"street": "string",
"zipCode": "string",
"city": "string",
"publicInfo": "string"
},
"firstPost": "string"
}
Responses
Created the new store and informed region members provides
application/json
JSON
{
"id": 0
}