# Get Function Space Category List

<mark style="color:green;">`POST`</mark> `[PlatformAddress]/api/1.0/venue?action=getFunctionSpaceCategoryList`

Return the venue function space category list for the venue.

#### Path Parameters

| Name                                      | Type    | Description                                |
| ----------------------------------------- | ------- | ------------------------------------------ |
| venueId<mark style="color:red;">\*</mark> | integer | The id of the venue                        |
| perPage                                   | integer | The number of menu to get in a single call |

{% tabs %}
{% tab title="200 " %}

```
{
    "meta": {
        "totalResults": 5,
        "start": 0,
        "perPage": 10,
        "count": 5
    },
    "results": [
        {
            "id": 2,
            "name": "B Category"
        },
        {
            "id": 1,
            "name": "A Category"
        },
        {
            "id": 3,
            "name": "C"
        },
        {
            "id": 4,
            "name": "abc"
        },
        {
            "id": 5,
            "name": "D Category"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### Example Request

`Get Venues Function Space Category List`

```javascript
{
    "venueId": 1,
    "perPage":10
}
```

### Returns

`A collection object with the following properties in the results`

| Property | Data Type | Description                          |
| -------- | --------- | ------------------------------------ |
| id       | integer   | The unique id of the space category. |
| name     | string    | The name of the space category.      |

#### Throws

| Code                 | Description            |
| -------------------- | ---------------------- |
| Specific Code: 24150 | Account does not exist |
| Specific Code: 24102 | Venue does not exist   |
| Specific Code: 24408 | Feature not allowed    |
