Skip to content

katana_public_api_client.api.custom_fields.get_all_custom_fields_collections

katana_public_api_client.api.custom_fields.get_all_custom_fields_collections

Classes

Functions

asyncio(*, client) async

List all custom fields collections

Retrieves a list of custom fields collections.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/custom_fields/get_all_custom_fields_collections.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
) -> CustomFieldsCollectionListResponse | ErrorResponse | None:
    """List all custom fields collections

     Retrieves a list of custom fields collections.

    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:
        Union[CustomFieldsCollectionListResponse, ErrorResponse]
    """

    return (
        await asyncio_detailed(
            client=client,
        )
    ).parsed

asyncio_detailed(*, client) async

List all custom fields collections

Retrieves a list of custom fields collections.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/custom_fields/get_all_custom_fields_collections.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
) -> Response[CustomFieldsCollectionListResponse | ErrorResponse]:
    """List all custom fields collections

     Retrieves a list of custom fields collections.

    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[CustomFieldsCollectionListResponse, ErrorResponse]]
    """

    kwargs = _get_kwargs()

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(*, client)

List all custom fields collections

Retrieves a list of custom fields collections.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/custom_fields/get_all_custom_fields_collections.py
def sync(
    *,
    client: AuthenticatedClient | Client,
) -> CustomFieldsCollectionListResponse | ErrorResponse | None:
    """List all custom fields collections

     Retrieves a list of custom fields collections.

    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:
        Union[CustomFieldsCollectionListResponse, ErrorResponse]
    """

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed(*, client)

List all custom fields collections

Retrieves a list of custom fields collections.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/custom_fields/get_all_custom_fields_collections.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
) -> Response[CustomFieldsCollectionListResponse | ErrorResponse]:
    """List all custom fields collections

     Retrieves a list of custom fields collections.

    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[CustomFieldsCollectionListResponse, ErrorResponse]]
    """

    kwargs = _get_kwargs()

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)