collections_create_collection¶
Create a new collection
Functions
- async pydelfini.delfini_core.api.collections.collections_create_collection.asyncio(*, client, body)[source]¶
Create a new collection
Create a new collection accessible to the currently logged-in user.
- Parameters:
body (NewCollection) – New collection request
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Union[Collection]
- Return type:
- async pydelfini.delfini_core.api.collections.collections_create_collection.asyncio_detailed(*, client, body)[source]¶
Create a new collection
Create a new collection accessible to the currently logged-in user.
- Parameters:
body (NewCollection) – New collection request
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[Union[Collection, ServerError]]
- Return type:
- pydelfini.delfini_core.api.collections.collections_create_collection.sync(*, client, body)[source]¶
Create a new collection
Create a new collection accessible to the currently logged-in user.
- Parameters:
body (NewCollection) – New collection request
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Union[Collection]
- Return type:
- pydelfini.delfini_core.api.collections.collections_create_collection.sync_detailed(*, client, body)[source]¶
Create a new collection
Create a new collection accessible to the currently logged-in user.
- Parameters:
body (NewCollection) – New collection request
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[Union[Collection, ServerError]]
- Return type: