> For the complete documentation index, see [llms.txt](https://teamleader-sdk.mcore-services.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teamleader-sdk.mcore-services.dev/api-reference/calendar/activity-types.md).

# Activity Types

Manage activity types in Teamleader Focus Calendar.

```php
Teamleader::activityTypes()
```

|                          |                                                                       |
| ------------------------ | --------------------------------------------------------------------- |
| Class                    | `McoreServices\TeamleaderSDK\Resources\Calendar\ActivityTypes`        |
| Create / update / delete | — / — / —                                                             |
| Pagination               | `page_size` / `page_number`; no totals — a short page is the last one |

## Endpoints

* `activityTypes.list`

## Filters

Passed as the first argument to `list()`. Any other key throws.

| Filter | Description                  |
| ------ | ---------------------------- |
| `ids`  | Array of activity type UUIDs |

## Methods

### `list()`

```php
list(array $filters = [], array $options = []): array
```

List activity types with filtering and pagination

### `byIds()`

```php
byIds(array $ids, array $options = []): array
```

Get activity types by specific IDs

### `findByName()`

```php
findByName(string $name, array $options = []): ?array
```

Find activity type by name (case-insensitive search)

### `all()`

```php
all(array $options = []): array
```

Get all activity types (convenience method)

### `exists()`

```php
exists(string $id): bool
```

Check if activity type exists by ID

### `selectOptions()`

```php
selectOptions(array $options = []): array
```

Get activity types as select options for forms

## Examples

Get all activity types:

```php
$activityTypes = Teamleader::activityTypes()->list();
```

Get specific activity types by IDs:

```php
$activityTypes = Teamleader::activityTypes()->byIds(["uuid1", "uuid2"]);
```

Find activity type by name:

```php
$activityType = Teamleader::activityTypes()->findByName("Meeting");
```
