Add or Update Function Space Category

Add or Update Function Space Category

Add or Update Venue Space Category

POST [PlatformAddress]/api/1.0/venue?action=addOrUpdateFunctionSpaceCategory

Path Parameters

NameTypeDescription

venueId*

integer

id

integer

The unique id of the space category (Leave empty if adding a new space category)

name*

string

The name of the event space category (Required when the ID parameter is missing)

{
  "success": true,
  "id": 7
}

Example Request

Add space category

{
  "venueId": "1",
  "name": "Category 1",
}

Update space category

{
  "id": 7,
  "name": "Updated Category"
}

Returns

PropertyDescription

success

Whether or not the space category was added

id

The unique id of the space category

Throws

CodeDescription

Specific Code: 24308

The venue space category does not exist

Specific Code: 24309

An error has occurred

Specific Code: 24310

The request contains invalid data

Specific Code: 24311

The request contains invalid data

This call takes values for a space category, and either

  1. Updates the values for that space category (after you have provided an id in the parameters), or

  2. Adds the space category to the system (if the id parameter is missing) 1. The result of this call will contain the status of the result (either

    true or false) and the space category identifier of the updated or newly

    created space category.

Last updated