Skip to content

katana_public_api_client.api.custom_fields.get_custom_field_definition

katana_public_api_client.api.custom_fields.get_custom_field_definition

Classes

Functions

asyncio(id, *, client) async

Retrieve a custom field definition

Retrieves a single custom field definition by ID.

Parameters:

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_custom_field_definition.py
async def asyncio(
    id: UUID,
    *,
    client: AuthenticatedClient | Client,
) -> CustomFieldDefinition | ErrorResponse | None:
    """Retrieve a custom field definition

     Retrieves a single custom field definition by ID.

    Args:
        id (UUID):

    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:
        CustomFieldDefinition | ErrorResponse
    """

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

asyncio_detailed(id, *, client) async

Retrieve a custom field definition

Retrieves a single custom field definition by ID.

Parameters:

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_custom_field_definition.py
async def asyncio_detailed(
    id: UUID,
    *,
    client: AuthenticatedClient | Client,
) -> Response[CustomFieldDefinition | ErrorResponse]:
    """Retrieve a custom field definition

     Retrieves a single custom field definition by ID.

    Args:
        id (UUID):

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

    kwargs = _get_kwargs(
        id=id,
    )

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

    return _build_response(client=client, response=response)

sync(id, *, client)

Retrieve a custom field definition

Retrieves a single custom field definition by ID.

Parameters:

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_custom_field_definition.py
def sync(
    id: UUID,
    *,
    client: AuthenticatedClient | Client,
) -> CustomFieldDefinition | ErrorResponse | None:
    """Retrieve a custom field definition

     Retrieves a single custom field definition by ID.

    Args:
        id (UUID):

    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:
        CustomFieldDefinition | ErrorResponse
    """

    return sync_detailed(
        id=id,
        client=client,
    ).parsed

sync_detailed(id, *, client)

Retrieve a custom field definition

Retrieves a single custom field definition by ID.

Parameters:

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_custom_field_definition.py
def sync_detailed(
    id: UUID,
    *,
    client: AuthenticatedClient | Client,
) -> Response[CustomFieldDefinition | ErrorResponse]:
    """Retrieve a custom field definition

     Retrieves a single custom field definition by ID.

    Args:
        id (UUID):

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

    kwargs = _get_kwargs(
        id=id,
    )

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

    return _build_response(client=client, response=response)