Skip to content

Create/Update site

Request

Update site information.

Security
api_key
Bodyapplication/jsonrequired

Update site information.

addressstring
idstring or null, (uuid)
namestring, non-emptyrequired
openingHourobject or null
organisationIdstring, (uuid)
statestring
Enum:"active""deleted"
tzstring
curl -i -X PUT \
  https://coreapi.hoxton.ai/_mock/v1/sites \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "address": "string",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "openingHour": {},
    "organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98",
    "state": "active",
    "tz": "string"
  }'

Responses

OK.

Bodyapplication/json
addressstring
idstring or null, (uuid)
namestring, non-emptyrequired
openingHourobject or null
organisationIdstring, (uuid)
statestring
Enum:"active""deleted"
tzstring
Response
{ "address": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "openingHour": {}, "organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98", "state": "active", "tz": "string" }