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:
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:

Collection

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:
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:

Response[Collection | ServerError]

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:
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:

Collection

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:
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:

Response[Collection | ServerError]