Update a venue
PUT
Updates a venue's name and status. name is required; leaving status out sets it to ACTIVE. Returns the venue directly (no status/message envelope), or 404 if it does not exist.
How to use it
- Get the venue's ID from List venues.
- Send name (required, non-blank, still unique) and status. If you leave status out it is set back to ACTIVE, so always send the current status when you only rename.
- The response is the updated venue itself, without the status/message envelope; 404 if the ID does not exist.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64application/json- body
id?|Venue (site) ID.
Format
int64name*stringVenue name.
status*stringVenue status: ACTIVE, INACTIVE, ARCHIVED or DELETED.
Value in
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringWhen the venue was last changed.
Format
date-timeOK
*/*- response
id?|Venue (site) ID.
Format
int64name*stringVenue name.
status*stringVenue status: ACTIVE, INACTIVE, ARCHIVED or DELETED.
Value in
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringWhen the venue was last changed.
Format
date-timeExample Request
curl -X PUT 'https://beta.iotoms.com/api/v1/catalog/business/venues/0' \ -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"}