iotoms Docs

Create a venue

POST
/api/v1/catalog/business/venues

Creates a new venue, the top-level business location that stores belong to, and returns it directly with HTTP 201. Venue names must be unique.

How to use it

  1. Send a unique, non-blank name and optionally a status (defaults to ACTIVE).
  2. The response (HTTP 201) is the venue itself with its new id, not wrapped in the status/message envelope.
  3. Use the venue id when creating stores that belong to this venue.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
id?|

Venue (site) ID.

Formatint64
name*string

Venue name.

status*string

Venue status: ACTIVE, INACTIVE, ARCHIVED or DELETED.

Value in"ACTIVE""INACTIVE""ARCHIVED""DELETED"
modifiedTime*string

When the venue was last changed.

Formatdate-time

Response Body

OK

*/*
  1. response
id?|

Venue (site) ID.

Formatint64
name*string

Venue name.

status*string

Venue status: ACTIVE, INACTIVE, ARCHIVED or DELETED.

Value in"ACTIVE""INACTIVE""ARCHIVED""DELETED"
modifiedTime*string

When the venue was last changed.

Formatdate-time
Example Request
curl -X POST 'https://beta.iotoms.com/api/v1/catalog/business/venues' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "status": "ACTIVE",  "modifiedTime": "2019-08-24T14:15:22Z"}'
Example Response
{  "id": 0,  "name": "string",  "status": "ACTIVE",  "modifiedTime": "2019-08-24T14:15:22Z"}