> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# API Collections

> Create and manage API collections within an API service

# API Collections

An **API Collection** is a logical grouping of API endpoints within an API Service. It represents a set of related API operations.

> [!NOTE]
>
> Entity schema follows the [OpenMetadata Standard](https://openmetadatastandards.org/data-assets/apis/api-collection/).

## Entity Hierarchy

API Collections belong to an API Service and contain API Endpoints:

```txt API Collection theme={null}
APIService
└── APICollection (this page)
    └── APIEndpoint
```

## Fully Qualified Name

The FQN format for an API collection is:

```
service.collectionName
```

For example: `sample_api_service.pet`

***

## API Endpoints

| Method | Endpoint | Description |
| - | - | - |
| `PUT` | `/v1/apiCollections` | [Create or update an API collection](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/create.md) |
| `POST` | `/v1/apiCollections` | [Create an API collection (POST variant)](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/create.md) |
| `GET` | `/v1/apiCollections` | [List API collections](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/list.md) |
| `GET` | `/v1/apiCollections/{id}` | [Get by ID](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/retrieve.md) |
| `GET` | `/v1/apiCollections/name/{fqn}` | [Get by FQN](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/retrieve.md) |
| `PATCH` | `/v1/apiCollections/{id}` | [Update by ID](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/update.md) |
| `PATCH` | `/v1/apiCollections/name/{fqn}` | [Update by name](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/update.md) |
| `DELETE` | `/v1/apiCollections/{id}` | [Delete by ID](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/delete.md) |
| `DELETE` | `/v1/apiCollections/name/{fqn}` | [Delete by name](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/delete.md) |
| `PUT` | `/v1/apiCollections/restore` | [Restore soft-deleted API collection](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/delete.md) |
| `GET` | `/v1/apiCollections/{id}/versions` | [List versions](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/versions.md) |
| `GET` | `/v1/apiCollections/{id}/versions/{version}` | [Get specific version](https://docs.open-metadata.org/v2.1.x/api-reference/data-assets/api-collections/versions.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.