# searchSections

## searchSections

<mark style="color:green;">`POST`</mark> `https://{YOUR_CLASSLIFE_DOMAIN}/app/apilead.php`

#### Request Body

| Name                                      | Type   | Description                              |
| ----------------------------------------- | ------ | ---------------------------------------- |
| perform<mark style="color:red;">\*</mark> | string | searchSections                           |
| apiKey<mark style="color:red;">\*</mark>  | string | {APIKEY}                                 |
| section\_title                            | String | { Texto para buscar por nombre de turno} |
| section\_alias                            | String | { Texto para buscar por alias de turno}  |
| page                                      | String | { Numero de página }                     |
| max                                       | String | { Items por página }                     |

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

```
{
    "status": "success",
    "data": [
        {
            "section_id": "1",
            "section_title": "Mañana",
            "section_alias": "M"
        }, ...
    ]
}
```

{% endtab %}

{% tab title="200: OK Ejemplo con paginación" %}

```javascript
{
    "status": "success",
    "data": [
        {
            "section_id": "1",
            "section_title": "Mañana",
            "section_alias": "M"
        }, ...
    ],
    "pagination": {
        "total": 50,
        "max": 10,
        "page": 1
    }
}
```

{% endtab %}
{% endtabs %}
