Skip to content

Thing

thingiverse.api.thing

Contains endpoint functions for accessing the API

delete_things_thing_id

asyncio(thing_id, *, client) async

Delete a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404 | None

DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404

Source code in thingiverse/api/thing/delete_things_thing_id.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdResponse200
    | DeleteThingsThingIdResponse401
    | DeleteThingsThingIdResponse403
    | DeleteThingsThingIdResponse404
    | None
):
    """Delete a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Delete a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404]

Response[DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdResponse200
    | DeleteThingsThingIdResponse401
    | DeleteThingsThingIdResponse403
    | DeleteThingsThingIdResponse404
]:
    """Delete a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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[DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Delete a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404 | None

DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404

Source code in thingiverse/api/thing/delete_things_thing_id.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdResponse200
    | DeleteThingsThingIdResponse401
    | DeleteThingsThingIdResponse403
    | DeleteThingsThingIdResponse404
    | None
):
    """Delete a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404
    """

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

sync_detailed(thing_id, *, client)

Delete a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404]

Response[DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdResponse200
    | DeleteThingsThingIdResponse401
    | DeleteThingsThingIdResponse403
    | DeleteThingsThingIdResponse404
]:
    """Delete a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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[DeleteThingsThingIdResponse200 | DeleteThingsThingIdResponse401 | DeleteThingsThingIdResponse403 | DeleteThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

delete_things_thing_id_collections

asyncio(thing_id, *, client) async

Delete a thing from all user's collections

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404 | None

DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_collections.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdCollectionsResponse200
    | DeleteThingsThingIdCollectionsResponse403
    | DeleteThingsThingIdCollectionsResponse404
    | None
):
    """Delete a thing from all user's collections

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Delete a thing from all user's collections

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404]

Response[DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_collections.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdCollectionsResponse200
    | DeleteThingsThingIdCollectionsResponse403
    | DeleteThingsThingIdCollectionsResponse404
]:
    """Delete a thing from all user's collections

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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[DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Delete a thing from all user's collections

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404 | None

DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_collections.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdCollectionsResponse200
    | DeleteThingsThingIdCollectionsResponse403
    | DeleteThingsThingIdCollectionsResponse404
    | None
):
    """Delete a thing from all user's collections

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404
    """

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

sync_detailed(thing_id, *, client)

Delete a thing from all user's collections

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404]

Response[DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_collections.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdCollectionsResponse200
    | DeleteThingsThingIdCollectionsResponse403
    | DeleteThingsThingIdCollectionsResponse404
]:
    """Delete a thing from all user's collections

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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[DeleteThingsThingIdCollectionsResponse200 | DeleteThingsThingIdCollectionsResponse403 | DeleteThingsThingIdCollectionsResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

delete_things_thing_id_files_file_id

asyncio(thing_id, file_id, *, client) async

Delete a file from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404 | None

DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_files_file_id.py
async def asyncio(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdFilesFileIdResponse200
    | DeleteThingsThingIdFilesFileIdResponse401
    | DeleteThingsThingIdFilesFileIdResponse403
    | DeleteThingsThingIdFilesFileIdResponse404
    | None
):
    """Delete a file from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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:
        DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404
    """

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

asyncio_detailed(thing_id, file_id, *, client) async

Delete a file from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
Response[DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404]

Response[DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_files_file_id.py
async def asyncio_detailed(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdFilesFileIdResponse200
    | DeleteThingsThingIdFilesFileIdResponse401
    | DeleteThingsThingIdFilesFileIdResponse403
    | DeleteThingsThingIdFilesFileIdResponse404
]:
    """Delete a file from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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[DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        file_id=file_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, file_id, *, client)

Delete a file from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404 | None

DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_files_file_id.py
def sync(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdFilesFileIdResponse200
    | DeleteThingsThingIdFilesFileIdResponse401
    | DeleteThingsThingIdFilesFileIdResponse403
    | DeleteThingsThingIdFilesFileIdResponse404
    | None
):
    """Delete a file from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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:
        DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        file_id=file_id,
        client=client,
    ).parsed

sync_detailed(thing_id, file_id, *, client)

Delete a file from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
Response[DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404]

Response[DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_files_file_id.py
def sync_detailed(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdFilesFileIdResponse200
    | DeleteThingsThingIdFilesFileIdResponse401
    | DeleteThingsThingIdFilesFileIdResponse403
    | DeleteThingsThingIdFilesFileIdResponse404
]:
    """Delete a file from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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[DeleteThingsThingIdFilesFileIdResponse200 | DeleteThingsThingIdFilesFileIdResponse401 | DeleteThingsThingIdFilesFileIdResponse403 | DeleteThingsThingIdFilesFileIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        file_id=file_id,
    )

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

    return _build_response(client=client, response=response)

delete_things_thing_id_images_image_id

asyncio(thing_id, image_id, *, client) async

Delete an image from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required

Raises:

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

Type Description
DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404 | None

DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_images_image_id.py
async def asyncio(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdImagesImageIdResponse200
    | DeleteThingsThingIdImagesImageIdResponse401
    | DeleteThingsThingIdImagesImageIdResponse403
    | DeleteThingsThingIdImagesImageIdResponse404
    | None
):
    """Delete an image from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.

    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:
        DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404
    """

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

asyncio_detailed(thing_id, image_id, *, client) async

Delete an image from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required

Raises:

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

Type Description
Response[DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404]

Response[DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_images_image_id.py
async def asyncio_detailed(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdImagesImageIdResponse200
    | DeleteThingsThingIdImagesImageIdResponse401
    | DeleteThingsThingIdImagesImageIdResponse403
    | DeleteThingsThingIdImagesImageIdResponse404
]:
    """Delete an image from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.

    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[DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        image_id=image_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, image_id, *, client)

Delete an image from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required

Raises:

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

Type Description
DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404 | None

DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_images_image_id.py
def sync(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteThingsThingIdImagesImageIdResponse200
    | DeleteThingsThingIdImagesImageIdResponse401
    | DeleteThingsThingIdImagesImageIdResponse403
    | DeleteThingsThingIdImagesImageIdResponse404
    | None
):
    """Delete an image from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.

    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:
        DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        image_id=image_id,
        client=client,
    ).parsed

sync_detailed(thing_id, image_id, *, client)

Delete an image from a thing

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required

Raises:

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

Type Description
Response[DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404]

Response[DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_images_image_id.py
def sync_detailed(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteThingsThingIdImagesImageIdResponse200
    | DeleteThingsThingIdImagesImageIdResponse401
    | DeleteThingsThingIdImagesImageIdResponse403
    | DeleteThingsThingIdImagesImageIdResponse404
]:
    """Delete an image from a thing

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.

    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[DeleteThingsThingIdImagesImageIdResponse200 | DeleteThingsThingIdImagesImageIdResponse401 | DeleteThingsThingIdImagesImageIdResponse403 | DeleteThingsThingIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        image_id=image_id,
    )

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

    return _build_response(client=client, response=response)

delete_things_thing_id_likes

asyncio(thing_id, *, client) async

Delete a like

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404 | None

Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_likes.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    Any
    | DeleteThingsThingIdLikesResponse200
    | DeleteThingsThingIdLikesResponse401
    | DeleteThingsThingIdLikesResponse403
    | DeleteThingsThingIdLikesResponse404
    | None
):
    """Delete a like

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Delete a like

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404]

Response[Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_likes.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    Any
    | DeleteThingsThingIdLikesResponse200
    | DeleteThingsThingIdLikesResponse401
    | DeleteThingsThingIdLikesResponse403
    | DeleteThingsThingIdLikesResponse404
]:
    """Delete a like

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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[Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Delete a like

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404 | None

Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404

Source code in thingiverse/api/thing/delete_things_thing_id_likes.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    Any
    | DeleteThingsThingIdLikesResponse200
    | DeleteThingsThingIdLikesResponse401
    | DeleteThingsThingIdLikesResponse403
    | DeleteThingsThingIdLikesResponse404
    | None
):
    """Delete a like

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404
    """

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

sync_detailed(thing_id, *, client)

Delete a like

This cannot be undone.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404]

Response[Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404]

Source code in thingiverse/api/thing/delete_things_thing_id_likes.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    Any
    | DeleteThingsThingIdLikesResponse200
    | DeleteThingsThingIdLikesResponse401
    | DeleteThingsThingIdLikesResponse403
    | DeleteThingsThingIdLikesResponse404
]:
    """Delete a like

     This cannot be undone.

    Args:
        thing_id (int):  Example: 1004996.

    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[Any | DeleteThingsThingIdLikesResponse200 | DeleteThingsThingIdLikesResponse401 | DeleteThingsThingIdLikesResponse403 | DeleteThingsThingIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_0_random

asyncio(*, client) async

Get 5 random things with minimal 1000 likes

Raises:

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

Type Description
GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item] | None

GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]

Source code in thingiverse/api/thing/get_things_0_random.py
async def asyncio(
    *,
    client: AuthenticatedClient,
) -> (
    GetThings0RandomResponse401
    | GetThings0RandomResponse403
    | GetThings0RandomResponse404
    | list[GetThings0RandomResponse200Item]
    | None
):
    """Get 5 random things with minimal 1000 likes

    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:
        GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]
    """

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

asyncio_detailed(*, client) async

Get 5 random things with minimal 1000 likes

Raises:

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

Type Description
Response[GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]]

Response[GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]]

Source code in thingiverse/api/thing/get_things_0_random.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThings0RandomResponse401
    | GetThings0RandomResponse403
    | GetThings0RandomResponse404
    | list[GetThings0RandomResponse200Item]
]:
    """Get 5 random things with minimal 1000 likes

    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[GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]]
    """

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)

sync(*, client)

Get 5 random things with minimal 1000 likes

Raises:

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

Type Description
GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item] | None

GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]

Source code in thingiverse/api/thing/get_things_0_random.py
def sync(
    *,
    client: AuthenticatedClient,
) -> (
    GetThings0RandomResponse401
    | GetThings0RandomResponse403
    | GetThings0RandomResponse404
    | list[GetThings0RandomResponse200Item]
    | None
):
    """Get 5 random things with minimal 1000 likes

    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:
        GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]
    """

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed(*, client)

Get 5 random things with minimal 1000 likes

Raises:

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

Type Description
Response[GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]]

Response[GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]]

Source code in thingiverse/api/thing/get_things_0_random.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThings0RandomResponse401
    | GetThings0RandomResponse403
    | GetThings0RandomResponse404
    | list[GetThings0RandomResponse200Item]
]:
    """Get 5 random things with minimal 1000 likes

    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[GetThings0RandomResponse401 | GetThings0RandomResponse403 | GetThings0RandomResponse404 | list[GetThings0RandomResponse200Item]]
    """

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)

get_things_thing_id

asyncio(thing_id, *, client) async

Get thing by id

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema | None

GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema

Source code in thingiverse/api/thing/get_things_thing_id.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdResponse401
    | GetThingsThingIdResponse403
    | GetThingsThingIdResponse404
    | ThingSchema
    | None
):
    """Get thing by id

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema
    """

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

asyncio_detailed(thing_id, *, client) async

Get thing by id

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema]

Response[GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema]

Source code in thingiverse/api/thing/get_things_thing_id.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdResponse401
    | GetThingsThingIdResponse403
    | GetThingsThingIdResponse404
    | ThingSchema
]:
    """Get thing by id

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get thing by id

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema | None

GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema

Source code in thingiverse/api/thing/get_things_thing_id.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdResponse401
    | GetThingsThingIdResponse403
    | GetThingsThingIdResponse404
    | ThingSchema
    | None
):
    """Get thing by id

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema
    """

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

sync_detailed(thing_id, *, client)

Get thing by id

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema]

Response[GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema]

Source code in thingiverse/api/thing/get_things_thing_id.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdResponse401
    | GetThingsThingIdResponse403
    | GetThingsThingIdResponse404
    | ThingSchema
]:
    """Get thing by id

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdResponse401 | GetThingsThingIdResponse403 | GetThingsThingIdResponse404 | ThingSchema]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_ancestors

asyncio(thing_id, *, client) async

Get a list of thing ancestors

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema] | None

GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]

Source code in thingiverse/api/thing/get_things_thing_id_ancestors.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdAncestorsResponse401
    | GetThingsThingIdAncestorsResponse403
    | GetThingsThingIdAncestorsResponse404
    | list[ThingSchema]
    | None
):
    """Get a list of thing ancestors

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]
    """

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

asyncio_detailed(thing_id, *, client) async

Get a list of thing ancestors

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]]

Response[GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/thing/get_things_thing_id_ancestors.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdAncestorsResponse401
    | GetThingsThingIdAncestorsResponse403
    | GetThingsThingIdAncestorsResponse404
    | list[ThingSchema]
]:
    """Get a list of thing ancestors

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get a list of thing ancestors

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema] | None

GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]

Source code in thingiverse/api/thing/get_things_thing_id_ancestors.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdAncestorsResponse401
    | GetThingsThingIdAncestorsResponse403
    | GetThingsThingIdAncestorsResponse404
    | list[ThingSchema]
    | None
):
    """Get a list of thing ancestors

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]
    """

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

sync_detailed(thing_id, *, client)

Get a list of thing ancestors

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]]

Response[GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/thing/get_things_thing_id_ancestors.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdAncestorsResponse401
    | GetThingsThingIdAncestorsResponse403
    | GetThingsThingIdAncestorsResponse404
    | list[ThingSchema]
]:
    """Get a list of thing ancestors

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdAncestorsResponse401 | GetThingsThingIdAncestorsResponse403 | GetThingsThingIdAncestorsResponse404 | list[ThingSchema]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_categories

asyncio(thing_id, *, client) async

Get thing category

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item] | None

GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_categories.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdCategoriesResponse401
    | GetThingsThingIdCategoriesResponse403
    | GetThingsThingIdCategoriesResponse404
    | list[GetThingsThingIdCategoriesResponse200Item]
    | None
):
    """Get thing category

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]
    """

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

asyncio_detailed(thing_id, *, client) async

Get thing category

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]]

Response[GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_categories.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdCategoriesResponse401
    | GetThingsThingIdCategoriesResponse403
    | GetThingsThingIdCategoriesResponse404
    | list[GetThingsThingIdCategoriesResponse200Item]
]:
    """Get thing category

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get thing category

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item] | None

GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_categories.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdCategoriesResponse401
    | GetThingsThingIdCategoriesResponse403
    | GetThingsThingIdCategoriesResponse404
    | list[GetThingsThingIdCategoriesResponse200Item]
    | None
):
    """Get thing category

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]
    """

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

sync_detailed(thing_id, *, client)

Get thing category

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]]

Response[GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_categories.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdCategoriesResponse401
    | GetThingsThingIdCategoriesResponse403
    | GetThingsThingIdCategoriesResponse404
    | list[GetThingsThingIdCategoriesResponse200Item]
]:
    """Get thing category

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdCategoriesResponse401 | GetThingsThingIdCategoriesResponse403 | GetThingsThingIdCategoriesResponse404 | list[GetThingsThingIdCategoriesResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_comments

asyncio(thing_id, *, client) async

Get an unthreaded paginated list of comment objects

See also GET /things/id/threaded_comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item] | None

GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_comments.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdCommentsResponse401
    | GetThingsThingIdCommentsResponse403
    | GetThingsThingIdCommentsResponse404
    | list[GetThingsThingIdCommentsResponse200Item]
    | None
):
    """Get an unthreaded paginated list of comment objects

     See also GET /things/id/threaded_comments

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]
    """

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

asyncio_detailed(thing_id, *, client) async

Get an unthreaded paginated list of comment objects

See also GET /things/id/threaded_comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]]

Response[GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_comments.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdCommentsResponse401
    | GetThingsThingIdCommentsResponse403
    | GetThingsThingIdCommentsResponse404
    | list[GetThingsThingIdCommentsResponse200Item]
]:
    """Get an unthreaded paginated list of comment objects

     See also GET /things/id/threaded_comments

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get an unthreaded paginated list of comment objects

See also GET /things/id/threaded_comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item] | None

GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_comments.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdCommentsResponse401
    | GetThingsThingIdCommentsResponse403
    | GetThingsThingIdCommentsResponse404
    | list[GetThingsThingIdCommentsResponse200Item]
    | None
):
    """Get an unthreaded paginated list of comment objects

     See also GET /things/id/threaded_comments

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]
    """

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

sync_detailed(thing_id, *, client)

Get an unthreaded paginated list of comment objects

See also GET /things/id/threaded_comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]]

Response[GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_comments.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdCommentsResponse401
    | GetThingsThingIdCommentsResponse403
    | GetThingsThingIdCommentsResponse404
    | list[GetThingsThingIdCommentsResponse200Item]
]:
    """Get an unthreaded paginated list of comment objects

     See also GET /things/id/threaded_comments

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdCommentsResponse401 | GetThingsThingIdCommentsResponse403 | GetThingsThingIdCommentsResponse404 | list[GetThingsThingIdCommentsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_copies

asyncio(thing_id, *, client, page=UNSET, per_page=UNSET) async

Get copies/makes of a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item] | None

GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_copies.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetThingsThingIdCopiesResponse401
    | GetThingsThingIdCopiesResponse403
    | GetThingsThingIdCopiesResponse404
    | list[GetThingsThingIdCopiesResponse200Item]
    | None
):
    """Get copies/makes of a thing

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]
    """

    return (
        await asyncio_detailed(
            thing_id=thing_id,
            client=client,
            page=page,
            per_page=per_page,
        )
    ).parsed

asyncio_detailed(thing_id, *, client, page=UNSET, per_page=UNSET) async

Get copies/makes of a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
Response[GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]]

Response[GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_copies.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetThingsThingIdCopiesResponse401
    | GetThingsThingIdCopiesResponse403
    | GetThingsThingIdCopiesResponse404
    | list[GetThingsThingIdCopiesResponse200Item]
]:
    """Get copies/makes of a thing

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, page=UNSET, per_page=UNSET)

Get copies/makes of a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item] | None

GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_copies.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetThingsThingIdCopiesResponse401
    | GetThingsThingIdCopiesResponse403
    | GetThingsThingIdCopiesResponse404
    | list[GetThingsThingIdCopiesResponse200Item]
    | None
):
    """Get copies/makes of a thing

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        page=page,
        per_page=per_page,
    ).parsed

sync_detailed(thing_id, *, client, page=UNSET, per_page=UNSET)

Get copies/makes of a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
Response[GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]]

Response[GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_copies.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetThingsThingIdCopiesResponse401
    | GetThingsThingIdCopiesResponse403
    | GetThingsThingIdCopiesResponse404
    | list[GetThingsThingIdCopiesResponse200Item]
]:
    """Get copies/makes of a thing

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetThingsThingIdCopiesResponse401 | GetThingsThingIdCopiesResponse403 | GetThingsThingIdCopiesResponse404 | list[GetThingsThingIdCopiesResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_derivatives

asyncio(thing_id, *, client, page=UNSET, per_page=UNSET) async

Get a list of thing derivatives

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema] | None

GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]

Source code in thingiverse/api/thing/get_things_thing_id_derivatives.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetThingsThingIdDerivativesResponse401
    | GetThingsThingIdDerivativesResponse403
    | GetThingsThingIdDerivativesResponse404
    | list[ThingSchema]
    | None
):
    """Get a list of thing derivatives

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]
    """

    return (
        await asyncio_detailed(
            thing_id=thing_id,
            client=client,
            page=page,
            per_page=per_page,
        )
    ).parsed

asyncio_detailed(thing_id, *, client, page=UNSET, per_page=UNSET) async

Get a list of thing derivatives

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
Response[GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]]

Response[GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]]

Source code in thingiverse/api/thing/get_things_thing_id_derivatives.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetThingsThingIdDerivativesResponse401
    | GetThingsThingIdDerivativesResponse403
    | GetThingsThingIdDerivativesResponse404
    | list[ThingSchema]
]:
    """Get a list of thing derivatives

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, page=UNSET, per_page=UNSET)

Get a list of thing derivatives

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema] | None

GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]

Source code in thingiverse/api/thing/get_things_thing_id_derivatives.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetThingsThingIdDerivativesResponse401
    | GetThingsThingIdDerivativesResponse403
    | GetThingsThingIdDerivativesResponse404
    | list[ThingSchema]
    | None
):
    """Get a list of thing derivatives

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        page=page,
        per_page=per_page,
    ).parsed

sync_detailed(thing_id, *, client, page=UNSET, per_page=UNSET)

Get a list of thing derivatives

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

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

Type Description
Response[GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]]

Response[GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]]

Source code in thingiverse/api/thing/get_things_thing_id_derivatives.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetThingsThingIdDerivativesResponse401
    | GetThingsThingIdDerivativesResponse403
    | GetThingsThingIdDerivativesResponse404
    | list[ThingSchema]
]:
    """Get a list of thing derivatives

    Args:
        thing_id (int):  Example: 1004996.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetThingsThingIdDerivativesResponse401 | GetThingsThingIdDerivativesResponse403 | GetThingsThingIdDerivativesResponse404 | list[ThingSchema]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_files

asyncio(thing_id, *, client, file_id=UNSET) async

Get files by thing

Get a list of files associated with a thing or

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int | Unset
UNSET

Raises:

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

Type Description
GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema] | None

GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]

Source code in thingiverse/api/thing/get_things_thing_id_files.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    file_id: int | Unset = UNSET,
) -> (
    GetThingsThingIdFilesResponse401
    | GetThingsThingIdFilesResponse403
    | GetThingsThingIdFilesResponse404
    | list[FileSchema]
    | None
):
    """Get files by thing

     Get a list of files associated with a thing or

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int | Unset):

    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:
        GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]
    """

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

asyncio_detailed(thing_id, *, client, file_id=UNSET) async

Get files by thing

Get a list of files associated with a thing or

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int | Unset
UNSET

Raises:

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

Type Description
Response[GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]]

Response[GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]]

Source code in thingiverse/api/thing/get_things_thing_id_files.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    file_id: int | Unset = UNSET,
) -> Response[
    GetThingsThingIdFilesResponse401
    | GetThingsThingIdFilesResponse403
    | GetThingsThingIdFilesResponse404
    | list[FileSchema]
]:
    """Get files by thing

     Get a list of files associated with a thing or

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int | Unset):

    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[GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        file_id=file_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, file_id=UNSET)

Get files by thing

Get a list of files associated with a thing or

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int | Unset
UNSET

Raises:

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

Type Description
GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema] | None

GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]

Source code in thingiverse/api/thing/get_things_thing_id_files.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    file_id: int | Unset = UNSET,
) -> (
    GetThingsThingIdFilesResponse401
    | GetThingsThingIdFilesResponse403
    | GetThingsThingIdFilesResponse404
    | list[FileSchema]
    | None
):
    """Get files by thing

     Get a list of files associated with a thing or

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int | Unset):

    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:
        GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        file_id=file_id,
    ).parsed

sync_detailed(thing_id, *, client, file_id=UNSET)

Get files by thing

Get a list of files associated with a thing or

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int | Unset
UNSET

Raises:

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

Type Description
Response[GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]]

Response[GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]]

Source code in thingiverse/api/thing/get_things_thing_id_files.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    file_id: int | Unset = UNSET,
) -> Response[
    GetThingsThingIdFilesResponse401
    | GetThingsThingIdFilesResponse403
    | GetThingsThingIdFilesResponse404
    | list[FileSchema]
]:
    """Get files by thing

     Get a list of files associated with a thing or

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int | Unset):

    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[GetThingsThingIdFilesResponse401 | GetThingsThingIdFilesResponse403 | GetThingsThingIdFilesResponse404 | list[FileSchema]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        file_id=file_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_files_file_id

asyncio(thing_id, file_id, *, client) async

Get file by thing

Gets more detailed info about a specific file belonging to this thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404 | None

FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404

Source code in thingiverse/api/thing/get_things_thing_id_files_file_id.py
async def asyncio(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    FileSchema
    | GetThingsThingIdFilesFileIdResponse401
    | GetThingsThingIdFilesFileIdResponse403
    | GetThingsThingIdFilesFileIdResponse404
    | None
):
    """Get file by thing

     Gets more detailed info about a specific file belonging to this thing.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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:
        FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404
    """

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

asyncio_detailed(thing_id, file_id, *, client) async

Get file by thing

Gets more detailed info about a specific file belonging to this thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
Response[FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404]

Response[FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_files_file_id.py
async def asyncio_detailed(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    FileSchema
    | GetThingsThingIdFilesFileIdResponse401
    | GetThingsThingIdFilesFileIdResponse403
    | GetThingsThingIdFilesFileIdResponse404
]:
    """Get file by thing

     Gets more detailed info about a specific file belonging to this thing.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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[FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        file_id=file_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, file_id, *, client)

Get file by thing

Gets more detailed info about a specific file belonging to this thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404 | None

FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404

Source code in thingiverse/api/thing/get_things_thing_id_files_file_id.py
def sync(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    FileSchema
    | GetThingsThingIdFilesFileIdResponse401
    | GetThingsThingIdFilesFileIdResponse403
    | GetThingsThingIdFilesFileIdResponse404
    | None
):
    """Get file by thing

     Gets more detailed info about a specific file belonging to this thing.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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:
        FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        file_id=file_id,
        client=client,
    ).parsed

sync_detailed(thing_id, file_id, *, client)

Get file by thing

Gets more detailed info about a specific file belonging to this thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
file_id int
required

Raises:

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

Type Description
Response[FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404]

Response[FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_files_file_id.py
def sync_detailed(
    thing_id: int,
    file_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    FileSchema
    | GetThingsThingIdFilesFileIdResponse401
    | GetThingsThingIdFilesFileIdResponse403
    | GetThingsThingIdFilesFileIdResponse404
]:
    """Get file by thing

     Gets more detailed info about a specific file belonging to this thing.

    Args:
        thing_id (int):  Example: 1004996.
        file_id (int):

    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[FileSchema | GetThingsThingIdFilesFileIdResponse401 | GetThingsThingIdFilesFileIdResponse403 | GetThingsThingIdFilesFileIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        file_id=file_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_images

asyncio(thing_id, *, client, size=UNSET, type_=UNSET) async

Get image(s) by thing

Gets summary information for all images associated with a thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404 | None

Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404

Source code in thingiverse/api/thing/get_things_thing_id_images.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> (
    Any
    | GetThingsThingIdImagesResponse401
    | GetThingsThingIdImagesResponse403
    | GetThingsThingIdImagesResponse404
    | None
):
    """Get image(s) by thing

     Gets summary information for all images associated with a thing.

    Args:
        thing_id (int):  Example: 1004996.
        size (str | Unset):
        type_ (str | Unset):

    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:
        Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404
    """

    return (
        await asyncio_detailed(
            thing_id=thing_id,
            client=client,
            size=size,
            type_=type_,
        )
    ).parsed

asyncio_detailed(thing_id, *, client, size=UNSET, type_=UNSET) async

Get image(s) by thing

Gets summary information for all images associated with a thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
Response[Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404]

Response[Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_images.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> Response[
    Any
    | GetThingsThingIdImagesResponse401
    | GetThingsThingIdImagesResponse403
    | GetThingsThingIdImagesResponse404
]:
    """Get image(s) by thing

     Gets summary information for all images associated with a thing.

    Args:
        thing_id (int):  Example: 1004996.
        size (str | Unset):
        type_ (str | Unset):

    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[Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        size=size,
        type_=type_,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, size=UNSET, type_=UNSET)

Get image(s) by thing

Gets summary information for all images associated with a thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404 | None

Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404

Source code in thingiverse/api/thing/get_things_thing_id_images.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> (
    Any
    | GetThingsThingIdImagesResponse401
    | GetThingsThingIdImagesResponse403
    | GetThingsThingIdImagesResponse404
    | None
):
    """Get image(s) by thing

     Gets summary information for all images associated with a thing.

    Args:
        thing_id (int):  Example: 1004996.
        size (str | Unset):
        type_ (str | Unset):

    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:
        Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        size=size,
        type_=type_,
    ).parsed

sync_detailed(thing_id, *, client, size=UNSET, type_=UNSET)

Get image(s) by thing

Gets summary information for all images associated with a thing.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
Response[Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404]

Response[Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_images.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> Response[
    Any
    | GetThingsThingIdImagesResponse401
    | GetThingsThingIdImagesResponse403
    | GetThingsThingIdImagesResponse404
]:
    """Get image(s) by thing

     Gets summary information for all images associated with a thing.

    Args:
        thing_id (int):  Example: 1004996.
        size (str | Unset):
        type_ (str | Unset):

    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[Any | GetThingsThingIdImagesResponse401 | GetThingsThingIdImagesResponse403 | GetThingsThingIdImagesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        size=size,
        type_=type_,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_images_image_id

asyncio(thing_id, image_id, *, client, size=UNSET, type_=UNSET) async

Get image(s) by thing

Gets more detailed information about a specific image.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int
required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404 | None

GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404

Source code in thingiverse/api/thing/get_things_thing_id_images_image_id.py
async def asyncio(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> (
    GetThingsThingIdImagesImageIdResponse200
    | GetThingsThingIdImagesImageIdResponse401
    | GetThingsThingIdImagesImageIdResponse403
    | GetThingsThingIdImagesImageIdResponse404
    | None
):
    """Get image(s) by thing

     Gets more detailed information about a specific image.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):
        size (str | Unset):
        type_ (str | Unset):

    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:
        GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404
    """

    return (
        await asyncio_detailed(
            thing_id=thing_id,
            image_id=image_id,
            client=client,
            size=size,
            type_=type_,
        )
    ).parsed

asyncio_detailed(thing_id, image_id, *, client, size=UNSET, type_=UNSET) async

Get image(s) by thing

Gets more detailed information about a specific image.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int
required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
Response[GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404]

Response[GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_images_image_id.py
async def asyncio_detailed(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> Response[
    GetThingsThingIdImagesImageIdResponse200
    | GetThingsThingIdImagesImageIdResponse401
    | GetThingsThingIdImagesImageIdResponse403
    | GetThingsThingIdImagesImageIdResponse404
]:
    """Get image(s) by thing

     Gets more detailed information about a specific image.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):
        size (str | Unset):
        type_ (str | Unset):

    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[GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        image_id=image_id,
        size=size,
        type_=type_,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, image_id, *, client, size=UNSET, type_=UNSET)

Get image(s) by thing

Gets more detailed information about a specific image.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int
required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404 | None

GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404

Source code in thingiverse/api/thing/get_things_thing_id_images_image_id.py
def sync(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> (
    GetThingsThingIdImagesImageIdResponse200
    | GetThingsThingIdImagesImageIdResponse401
    | GetThingsThingIdImagesImageIdResponse403
    | GetThingsThingIdImagesImageIdResponse404
    | None
):
    """Get image(s) by thing

     Gets more detailed information about a specific image.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):
        size (str | Unset):
        type_ (str | Unset):

    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:
        GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        image_id=image_id,
        client=client,
        size=size,
        type_=type_,
    ).parsed

sync_detailed(thing_id, image_id, *, client, size=UNSET, type_=UNSET)

Get image(s) by thing

Gets more detailed information about a specific image.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int
required
size str | Unset
UNSET
type_ str | Unset
UNSET

Raises:

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

Type Description
Response[GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404]

Response[GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_images_image_id.py
def sync_detailed(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    size: str | Unset = UNSET,
    type_: str | Unset = UNSET,
) -> Response[
    GetThingsThingIdImagesImageIdResponse200
    | GetThingsThingIdImagesImageIdResponse401
    | GetThingsThingIdImagesImageIdResponse403
    | GetThingsThingIdImagesImageIdResponse404
]:
    """Get image(s) by thing

     Gets more detailed information about a specific image.

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):
        size (str | Unset):
        type_ (str | Unset):

    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[GetThingsThingIdImagesImageIdResponse200 | GetThingsThingIdImagesImageIdResponse401 | GetThingsThingIdImagesImageIdResponse403 | GetThingsThingIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        image_id=image_id,
        size=size,
        type_=type_,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_likes

asyncio(thing_id, *, client) async

Get users who liked this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item] | None

GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_likes.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdLikesResponse401
    | GetThingsThingIdLikesResponse403
    | GetThingsThingIdLikesResponse404
    | list[GetThingsThingIdLikesResponse200Item]
    | None
):
    """Get users who liked this thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]
    """

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

asyncio_detailed(thing_id, *, client) async

Get users who liked this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]]

Response[GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_likes.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdLikesResponse401
    | GetThingsThingIdLikesResponse403
    | GetThingsThingIdLikesResponse404
    | list[GetThingsThingIdLikesResponse200Item]
]:
    """Get users who liked this thing

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get users who liked this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item] | None

GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_likes.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdLikesResponse401
    | GetThingsThingIdLikesResponse403
    | GetThingsThingIdLikesResponse404
    | list[GetThingsThingIdLikesResponse200Item]
    | None
):
    """Get users who liked this thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]
    """

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

sync_detailed(thing_id, *, client)

Get users who liked this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]]

Response[GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_likes.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdLikesResponse401
    | GetThingsThingIdLikesResponse403
    | GetThingsThingIdLikesResponse404
    | list[GetThingsThingIdLikesResponse200Item]
]:
    """Get users who liked this thing

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdLikesResponse401 | GetThingsThingIdLikesResponse403 | GetThingsThingIdLikesResponse404 | list[GetThingsThingIdLikesResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_prints

asyncio(thing_id, *, client) async

Get a list of prints associated with a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item] | None

GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_prints.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdPrintsResponse401
    | GetThingsThingIdPrintsResponse403
    | GetThingsThingIdPrintsResponse404
    | list[GetThingsThingIdPrintsResponse200Item]
    | None
):
    """Get a list of prints associated with a thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]
    """

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

asyncio_detailed(thing_id, *, client) async

Get a list of prints associated with a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]]

Response[GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_prints.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdPrintsResponse401
    | GetThingsThingIdPrintsResponse403
    | GetThingsThingIdPrintsResponse404
    | list[GetThingsThingIdPrintsResponse200Item]
]:
    """Get a list of prints associated with a thing

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get a list of prints associated with a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item] | None

GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_prints.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdPrintsResponse401
    | GetThingsThingIdPrintsResponse403
    | GetThingsThingIdPrintsResponse404
    | list[GetThingsThingIdPrintsResponse200Item]
    | None
):
    """Get a list of prints associated with a thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]
    """

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

sync_detailed(thing_id, *, client)

Get a list of prints associated with a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]]

Response[GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_prints.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdPrintsResponse401
    | GetThingsThingIdPrintsResponse403
    | GetThingsThingIdPrintsResponse404
    | list[GetThingsThingIdPrintsResponse200Item]
]:
    """Get a list of prints associated with a thing

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdPrintsResponse401 | GetThingsThingIdPrintsResponse403 | GetThingsThingIdPrintsResponse404 | list[GetThingsThingIdPrintsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_root_comments

asyncio(thing_id, *, client) async

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item] | None

GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_root_comments.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdRootCommentsResponse401
    | GetThingsThingIdRootCommentsResponse403
    | GetThingsThingIdRootCommentsResponse404
    | list[GetThingsThingIdRootCommentsResponse200Item]
    | None
):
    """Get an unthreaded paginated list of root comment objects

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]
    """

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

asyncio_detailed(thing_id, *, client) async

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]]

Response[GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_root_comments.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdRootCommentsResponse401
    | GetThingsThingIdRootCommentsResponse403
    | GetThingsThingIdRootCommentsResponse404
    | list[GetThingsThingIdRootCommentsResponse200Item]
]:
    """Get an unthreaded paginated list of root comment objects

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item] | None

GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_root_comments.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdRootCommentsResponse401
    | GetThingsThingIdRootCommentsResponse403
    | GetThingsThingIdRootCommentsResponse404
    | list[GetThingsThingIdRootCommentsResponse200Item]
    | None
):
    """Get an unthreaded paginated list of root comment objects

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]
    """

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

sync_detailed(thing_id, *, client)

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]]

Response[GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_root_comments.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdRootCommentsResponse401
    | GetThingsThingIdRootCommentsResponse403
    | GetThingsThingIdRootCommentsResponse404
    | list[GetThingsThingIdRootCommentsResponse200Item]
]:
    """Get an unthreaded paginated list of root comment objects

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdRootCommentsResponse401 | GetThingsThingIdRootCommentsResponse403 | GetThingsThingIdRootCommentsResponse404 | list[GetThingsThingIdRootCommentsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_tags

asyncio(thing_id, *, client) async

Get tags on this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item] | None

GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_tags.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdTagsResponse401
    | GetThingsThingIdTagsResponse403
    | GetThingsThingIdTagsResponse404
    | list[GetThingsThingIdTagsResponse200Item]
    | None
):
    """Get tags on this thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]
    """

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

asyncio_detailed(thing_id, *, client) async

Get tags on this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]]

Response[GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_tags.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdTagsResponse401
    | GetThingsThingIdTagsResponse403
    | GetThingsThingIdTagsResponse404
    | list[GetThingsThingIdTagsResponse200Item]
]:
    """Get tags on this thing

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get tags on this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item] | None

GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]

Source code in thingiverse/api/thing/get_things_thing_id_tags.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdTagsResponse401
    | GetThingsThingIdTagsResponse403
    | GetThingsThingIdTagsResponse404
    | list[GetThingsThingIdTagsResponse200Item]
    | None
):
    """Get tags on this thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]
    """

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

sync_detailed(thing_id, *, client)

Get tags on this thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]]

Response[GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]]

Source code in thingiverse/api/thing/get_things_thing_id_tags.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdTagsResponse401
    | GetThingsThingIdTagsResponse403
    | GetThingsThingIdTagsResponse404
    | list[GetThingsThingIdTagsResponse200Item]
]:
    """Get tags on this thing

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdTagsResponse401 | GetThingsThingIdTagsResponse403 | GetThingsThingIdTagsResponse404 | list[GetThingsThingIdTagsResponse200Item]]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_things_thing_id_threaded_comments

asyncio(thing_id, *, client) async

Get all comments for this thing in a quick pre-threaded view

This is an alternative to GET /things/id/comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404 | None

GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404

Source code in thingiverse/api/thing/get_things_thing_id_threaded_comments.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdThreadedCommentsResponse200
    | GetThingsThingIdThreadedCommentsResponse401
    | GetThingsThingIdThreadedCommentsResponse403
    | GetThingsThingIdThreadedCommentsResponse404
    | None
):
    """Get all comments for this thing in a quick pre-threaded view

     This is an alternative to GET /things/id/comments

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Get all comments for this thing in a quick pre-threaded view

This is an alternative to GET /things/id/comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404]

Response[GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_threaded_comments.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdThreadedCommentsResponse200
    | GetThingsThingIdThreadedCommentsResponse401
    | GetThingsThingIdThreadedCommentsResponse403
    | GetThingsThingIdThreadedCommentsResponse404
]:
    """Get all comments for this thing in a quick pre-threaded view

     This is an alternative to GET /things/id/comments

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Get all comments for this thing in a quick pre-threaded view

This is an alternative to GET /things/id/comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404 | None

GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404

Source code in thingiverse/api/thing/get_things_thing_id_threaded_comments.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetThingsThingIdThreadedCommentsResponse200
    | GetThingsThingIdThreadedCommentsResponse401
    | GetThingsThingIdThreadedCommentsResponse403
    | GetThingsThingIdThreadedCommentsResponse404
    | None
):
    """Get all comments for this thing in a quick pre-threaded view

     This is an alternative to GET /things/id/comments

    Args:
        thing_id (int):  Example: 1004996.

    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:
        GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404
    """

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

sync_detailed(thing_id, *, client)

Get all comments for this thing in a quick pre-threaded view

This is an alternative to GET /things/id/comments

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404]

Response[GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404]

Source code in thingiverse/api/thing/get_things_thing_id_threaded_comments.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetThingsThingIdThreadedCommentsResponse200
    | GetThingsThingIdThreadedCommentsResponse401
    | GetThingsThingIdThreadedCommentsResponse403
    | GetThingsThingIdThreadedCommentsResponse404
]:
    """Get all comments for this thing in a quick pre-threaded view

     This is an alternative to GET /things/id/comments

    Args:
        thing_id (int):  Example: 1004996.

    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[GetThingsThingIdThreadedCommentsResponse200 | GetThingsThingIdThreadedCommentsResponse401 | GetThingsThingIdThreadedCommentsResponse403 | GetThingsThingIdThreadedCommentsResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

patch_things_thing_id

asyncio(thing_id, *, client, body=UNSET) async

Update an existing thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PatchThingsThingIdBody | Unset
UNSET

Raises:

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

Type Description
PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404 | None

PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404

Source code in thingiverse/api/thing/patch_things_thing_id.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdBody | Unset = UNSET,
) -> (
    PatchThingsThingIdResponse200
    | PatchThingsThingIdResponse400
    | PatchThingsThingIdResponse401
    | PatchThingsThingIdResponse403
    | PatchThingsThingIdResponse404
    | None
):
    """Update an existing thing

    Args:
        thing_id (int):  Example: 1004996.
        body (PatchThingsThingIdBody | Unset):

    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:
        PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404
    """

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

asyncio_detailed(thing_id, *, client, body=UNSET) async

Update an existing thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PatchThingsThingIdBody | Unset
UNSET

Raises:

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

Type Description
Response[PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404]

Response[PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404]

Source code in thingiverse/api/thing/patch_things_thing_id.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdBody | Unset = UNSET,
) -> Response[
    PatchThingsThingIdResponse200
    | PatchThingsThingIdResponse400
    | PatchThingsThingIdResponse401
    | PatchThingsThingIdResponse403
    | PatchThingsThingIdResponse404
]:
    """Update an existing thing

    Args:
        thing_id (int):  Example: 1004996.
        body (PatchThingsThingIdBody | Unset):

    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[PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, body=UNSET)

Update an existing thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PatchThingsThingIdBody | Unset
UNSET

Raises:

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

Type Description
PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404 | None

PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404

Source code in thingiverse/api/thing/patch_things_thing_id.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdBody | Unset = UNSET,
) -> (
    PatchThingsThingIdResponse200
    | PatchThingsThingIdResponse400
    | PatchThingsThingIdResponse401
    | PatchThingsThingIdResponse403
    | PatchThingsThingIdResponse404
    | None
):
    """Update an existing thing

    Args:
        thing_id (int):  Example: 1004996.
        body (PatchThingsThingIdBody | Unset):

    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:
        PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        body=body,
    ).parsed

sync_detailed(thing_id, *, client, body=UNSET)

Update an existing thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PatchThingsThingIdBody | Unset
UNSET

Raises:

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

Type Description
Response[PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404]

Response[PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404]

Source code in thingiverse/api/thing/patch_things_thing_id.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdBody | Unset = UNSET,
) -> Response[
    PatchThingsThingIdResponse200
    | PatchThingsThingIdResponse400
    | PatchThingsThingIdResponse401
    | PatchThingsThingIdResponse403
    | PatchThingsThingIdResponse404
]:
    """Update an existing thing

    Args:
        thing_id (int):  Example: 1004996.
        body (PatchThingsThingIdBody | Unset):

    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[PatchThingsThingIdResponse200 | PatchThingsThingIdResponse400 | PatchThingsThingIdResponse401 | PatchThingsThingIdResponse403 | PatchThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

patch_things_thing_id_images_image_id

asyncio(thing_id, image_id, *, client, body=UNSET) async

Update an existing image

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required
body PatchThingsThingIdImagesImageIdBody | Unset
UNSET

Raises:

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

Type Description
PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404 | None

PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404

Source code in thingiverse/api/thing/patch_things_thing_id_images_image_id.py
async def asyncio(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdImagesImageIdBody | Unset = UNSET,
) -> (
    PatchThingsThingIdImagesImageIdResponse200
    | PatchThingsThingIdImagesImageIdResponse401
    | PatchThingsThingIdImagesImageIdResponse403
    | PatchThingsThingIdImagesImageIdResponse404
    | None
):
    """Update an existing image

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.
        body (PatchThingsThingIdImagesImageIdBody | Unset):

    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:
        PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404
    """

    return (
        await asyncio_detailed(
            thing_id=thing_id,
            image_id=image_id,
            client=client,
            body=body,
        )
    ).parsed

asyncio_detailed(thing_id, image_id, *, client, body=UNSET) async

Update an existing image

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required
body PatchThingsThingIdImagesImageIdBody | Unset
UNSET

Raises:

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

Type Description
Response[PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404]

Response[PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404]

Source code in thingiverse/api/thing/patch_things_thing_id_images_image_id.py
async def asyncio_detailed(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdImagesImageIdBody | Unset = UNSET,
) -> Response[
    PatchThingsThingIdImagesImageIdResponse200
    | PatchThingsThingIdImagesImageIdResponse401
    | PatchThingsThingIdImagesImageIdResponse403
    | PatchThingsThingIdImagesImageIdResponse404
]:
    """Update an existing image

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.
        body (PatchThingsThingIdImagesImageIdBody | Unset):

    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[PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        image_id=image_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, image_id, *, client, body=UNSET)

Update an existing image

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required
body PatchThingsThingIdImagesImageIdBody | Unset
UNSET

Raises:

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

Type Description
PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404 | None

PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404

Source code in thingiverse/api/thing/patch_things_thing_id_images_image_id.py
def sync(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdImagesImageIdBody | Unset = UNSET,
) -> (
    PatchThingsThingIdImagesImageIdResponse200
    | PatchThingsThingIdImagesImageIdResponse401
    | PatchThingsThingIdImagesImageIdResponse403
    | PatchThingsThingIdImagesImageIdResponse404
    | None
):
    """Update an existing image

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.
        body (PatchThingsThingIdImagesImageIdBody | Unset):

    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:
        PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        image_id=image_id,
        client=client,
        body=body,
    ).parsed

sync_detailed(thing_id, image_id, *, client, body=UNSET)

Update an existing image

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
image_id int

Example: 1.

required
body PatchThingsThingIdImagesImageIdBody | Unset
UNSET

Raises:

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

Type Description
Response[PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404]

Response[PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404]

Source code in thingiverse/api/thing/patch_things_thing_id_images_image_id.py
def sync_detailed(
    thing_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchThingsThingIdImagesImageIdBody | Unset = UNSET,
) -> Response[
    PatchThingsThingIdImagesImageIdResponse200
    | PatchThingsThingIdImagesImageIdResponse401
    | PatchThingsThingIdImagesImageIdResponse403
    | PatchThingsThingIdImagesImageIdResponse404
]:
    """Update an existing image

    Args:
        thing_id (int):  Example: 1004996.
        image_id (int):  Example: 1.
        body (PatchThingsThingIdImagesImageIdBody | Unset):

    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[PatchThingsThingIdImagesImageIdResponse200 | PatchThingsThingIdImagesImageIdResponse401 | PatchThingsThingIdImagesImageIdResponse403 | PatchThingsThingIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        image_id=image_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_things

asyncio(*, client, body=UNSET) async

Create a new thing

Parameters:

Name Type Description Default
body PostThingsBody | Unset
UNSET

Raises:

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

Type Description
PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema | None

PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema

Source code in thingiverse/api/thing/post_things.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    body: PostThingsBody | Unset = UNSET,
) -> (
    PostThingsResponse400
    | PostThingsResponse401
    | PostThingsResponse403
    | PostThingsResponse404
    | ThingSchema
    | None
):
    """Create a new thing

    Args:
        body (PostThingsBody | Unset):

    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:
        PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema
    """

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

asyncio_detailed(*, client, body=UNSET) async

Create a new thing

Parameters:

Name Type Description Default
body PostThingsBody | Unset
UNSET

Raises:

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

Type Description
Response[PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema]

Response[PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema]

Source code in thingiverse/api/thing/post_things.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    body: PostThingsBody | Unset = UNSET,
) -> Response[
    PostThingsResponse400
    | PostThingsResponse401
    | PostThingsResponse403
    | PostThingsResponse404
    | ThingSchema
]:
    """Create a new thing

    Args:
        body (PostThingsBody | Unset):

    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[PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema]
    """

    kwargs = _get_kwargs(
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(*, client, body=UNSET)

Create a new thing

Parameters:

Name Type Description Default
body PostThingsBody | Unset
UNSET

Raises:

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

Type Description
PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema | None

PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema

Source code in thingiverse/api/thing/post_things.py
def sync(
    *,
    client: AuthenticatedClient,
    body: PostThingsBody | Unset = UNSET,
) -> (
    PostThingsResponse400
    | PostThingsResponse401
    | PostThingsResponse403
    | PostThingsResponse404
    | ThingSchema
    | None
):
    """Create a new thing

    Args:
        body (PostThingsBody | Unset):

    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:
        PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema
    """

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

sync_detailed(*, client, body=UNSET)

Create a new thing

Parameters:

Name Type Description Default
body PostThingsBody | Unset
UNSET

Raises:

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

Type Description
Response[PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema]

Response[PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema]

Source code in thingiverse/api/thing/post_things.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    body: PostThingsBody | Unset = UNSET,
) -> Response[
    PostThingsResponse400
    | PostThingsResponse401
    | PostThingsResponse403
    | PostThingsResponse404
    | ThingSchema
]:
    """Create a new thing

    Args:
        body (PostThingsBody | Unset):

    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[PostThingsResponse400 | PostThingsResponse401 | PostThingsResponse403 | PostThingsResponse404 | ThingSchema]
    """

    kwargs = _get_kwargs(
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_things_thing_id_comments

asyncio(thing_id, *, client, body=UNSET) async

Post a comment

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCommentsBody | Unset
UNSET

Raises:

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

Type Description
PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404 | None

PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404

Source code in thingiverse/api/thing/post_things_thing_id_comments.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCommentsBody | Unset = UNSET,
) -> (
    PostThingsThingIdCommentsResponse200
    | PostThingsThingIdCommentsResponse400
    | PostThingsThingIdCommentsResponse401
    | PostThingsThingIdCommentsResponse403
    | PostThingsThingIdCommentsResponse404
    | None
):
    """Post a comment

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCommentsBody | Unset):

    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:
        PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404
    """

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

asyncio_detailed(thing_id, *, client, body=UNSET) async

Post a comment

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCommentsBody | Unset
UNSET

Raises:

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

Type Description
Response[PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404]

Response[PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_comments.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCommentsBody | Unset = UNSET,
) -> Response[
    PostThingsThingIdCommentsResponse200
    | PostThingsThingIdCommentsResponse400
    | PostThingsThingIdCommentsResponse401
    | PostThingsThingIdCommentsResponse403
    | PostThingsThingIdCommentsResponse404
]:
    """Post a comment

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCommentsBody | Unset):

    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[PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, body=UNSET)

Post a comment

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCommentsBody | Unset
UNSET

Raises:

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

Type Description
PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404 | None

PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404

Source code in thingiverse/api/thing/post_things_thing_id_comments.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCommentsBody | Unset = UNSET,
) -> (
    PostThingsThingIdCommentsResponse200
    | PostThingsThingIdCommentsResponse400
    | PostThingsThingIdCommentsResponse401
    | PostThingsThingIdCommentsResponse403
    | PostThingsThingIdCommentsResponse404
    | None
):
    """Post a comment

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCommentsBody | Unset):

    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:
        PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        body=body,
    ).parsed

sync_detailed(thing_id, *, client, body=UNSET)

Post a comment

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCommentsBody | Unset
UNSET

Raises:

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

Type Description
Response[PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404]

Response[PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_comments.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCommentsBody | Unset = UNSET,
) -> Response[
    PostThingsThingIdCommentsResponse200
    | PostThingsThingIdCommentsResponse400
    | PostThingsThingIdCommentsResponse401
    | PostThingsThingIdCommentsResponse403
    | PostThingsThingIdCommentsResponse404
]:
    """Post a comment

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCommentsBody | Unset):

    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[PostThingsThingIdCommentsResponse200 | PostThingsThingIdCommentsResponse400 | PostThingsThingIdCommentsResponse401 | PostThingsThingIdCommentsResponse403 | PostThingsThingIdCommentsResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_things_thing_id_copies

asyncio(thing_id, *, client, body=UNSET) async

Upload image for new copy

The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCopiesBody | Unset
UNSET

Raises:

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

Type Description
PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404 | None

PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404

Source code in thingiverse/api/thing/post_things_thing_id_copies.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCopiesBody | Unset = UNSET,
) -> (
    PostThingsThingIdCopiesResponse200
    | PostThingsThingIdCopiesResponse403
    | PostThingsThingIdCopiesResponse404
    | None
):
    """Upload image for new copy

     The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCopiesBody | Unset):

    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:
        PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404
    """

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

asyncio_detailed(thing_id, *, client, body=UNSET) async

Upload image for new copy

The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCopiesBody | Unset
UNSET

Raises:

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

Type Description
Response[PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404]

Response[PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_copies.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCopiesBody | Unset = UNSET,
) -> Response[
    PostThingsThingIdCopiesResponse200
    | PostThingsThingIdCopiesResponse403
    | PostThingsThingIdCopiesResponse404
]:
    """Upload image for new copy

     The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCopiesBody | Unset):

    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[PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client, body=UNSET)

Upload image for new copy

The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCopiesBody | Unset
UNSET

Raises:

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

Type Description
PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404 | None

PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404

Source code in thingiverse/api/thing/post_things_thing_id_copies.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCopiesBody | Unset = UNSET,
) -> (
    PostThingsThingIdCopiesResponse200
    | PostThingsThingIdCopiesResponse403
    | PostThingsThingIdCopiesResponse404
    | None
):
    """Upload image for new copy

     The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCopiesBody | Unset):

    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:
        PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404
    """

    return sync_detailed(
        thing_id=thing_id,
        client=client,
        body=body,
    ).parsed

sync_detailed(thing_id, *, client, body=UNSET)

Upload image for new copy

The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required
body PostThingsThingIdCopiesBody | Unset
UNSET

Raises:

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

Type Description
Response[PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404]

Response[PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_copies.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
    body: PostThingsThingIdCopiesBody | Unset = UNSET,
) -> Response[
    PostThingsThingIdCopiesResponse200
    | PostThingsThingIdCopiesResponse403
    | PostThingsThingIdCopiesResponse404
]:
    """Upload image for new copy

     The data needed to upload this copy's image file via an HTTP POST with multipart/form-data encoding.

    Args:
        thing_id (int):  Example: 1004996.
        body (PostThingsThingIdCopiesBody | Unset):

    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[PostThingsThingIdCopiesResponse200 | PostThingsThingIdCopiesResponse403 | PostThingsThingIdCopiesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_things_thing_id_likes

asyncio(thing_id, *, client) async

Like a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404 | None

Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404

Source code in thingiverse/api/thing/post_things_thing_id_likes.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    Any
    | PostThingsThingIdLikesResponse200
    | PostThingsThingIdLikesResponse401
    | PostThingsThingIdLikesResponse403
    | PostThingsThingIdLikesResponse404
    | None
):
    """Like a thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Like a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404]

Response[Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_likes.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    Any
    | PostThingsThingIdLikesResponse200
    | PostThingsThingIdLikesResponse401
    | PostThingsThingIdLikesResponse403
    | PostThingsThingIdLikesResponse404
]:
    """Like a thing

    Args:
        thing_id (int):  Example: 1004996.

    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[Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Like a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404 | None

Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404

Source code in thingiverse/api/thing/post_things_thing_id_likes.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    Any
    | PostThingsThingIdLikesResponse200
    | PostThingsThingIdLikesResponse401
    | PostThingsThingIdLikesResponse403
    | PostThingsThingIdLikesResponse404
    | None
):
    """Like a thing

    Args:
        thing_id (int):  Example: 1004996.

    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:
        Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404
    """

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

sync_detailed(thing_id, *, client)

Like a thing

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404]

Response[Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_likes.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    Any
    | PostThingsThingIdLikesResponse200
    | PostThingsThingIdLikesResponse401
    | PostThingsThingIdLikesResponse403
    | PostThingsThingIdLikesResponse404
]:
    """Like a thing

    Args:
        thing_id (int):  Example: 1004996.

    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[Any | PostThingsThingIdLikesResponse200 | PostThingsThingIdLikesResponse401 | PostThingsThingIdLikesResponse403 | PostThingsThingIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

post_things_thing_id_publish

asyncio(thing_id, *, client) async

Publish a thing

If the Thing cannot be published (for example, because the Thing's name or description is blank), returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form: {\"errors\":[\"<%= reason %>\", ...]}

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404 | None

PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404

Source code in thingiverse/api/thing/post_things_thing_id_publish.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostThingsThingIdPublishResponse200
    | PostThingsThingIdPublishResponse403
    | PostThingsThingIdPublishResponse404
    | None
):
    r"""Publish a thing

     If the Thing cannot be published (for example, because the Thing's name or description is blank),
    returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form:
    {\"errors\":[\"<%= reason %>\", ...]}

    Args:
        thing_id (int):  Example: 1004996.

    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:
        PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Publish a thing

If the Thing cannot be published (for example, because the Thing's name or description is blank), returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form: {\"errors\":[\"<%= reason %>\", ...]}

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404]

Response[PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_publish.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostThingsThingIdPublishResponse200
    | PostThingsThingIdPublishResponse403
    | PostThingsThingIdPublishResponse404
]:
    r"""Publish a thing

     If the Thing cannot be published (for example, because the Thing's name or description is blank),
    returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form:
    {\"errors\":[\"<%= reason %>\", ...]}

    Args:
        thing_id (int):  Example: 1004996.

    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[PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Publish a thing

If the Thing cannot be published (for example, because the Thing's name or description is blank), returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form: {\"errors\":[\"<%= reason %>\", ...]}

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404 | None

PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404

Source code in thingiverse/api/thing/post_things_thing_id_publish.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostThingsThingIdPublishResponse200
    | PostThingsThingIdPublishResponse403
    | PostThingsThingIdPublishResponse404
    | None
):
    r"""Publish a thing

     If the Thing cannot be published (for example, because the Thing's name or description is blank),
    returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form:
    {\"errors\":[\"<%= reason %>\", ...]}

    Args:
        thing_id (int):  Example: 1004996.

    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:
        PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404
    """

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

sync_detailed(thing_id, *, client)

Publish a thing

If the Thing cannot be published (for example, because the Thing's name or description is blank), returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form: {\"errors\":[\"<%= reason %>\", ...]}

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404]

Response[PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_publish.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostThingsThingIdPublishResponse200
    | PostThingsThingIdPublishResponse403
    | PostThingsThingIdPublishResponse404
]:
    r"""Publish a thing

     If the Thing cannot be published (for example, because the Thing's name or description is blank),
    returns an HTTP status of 400 Bad Request and a body containing a JSON object of the form:
    {\"errors\":[\"<%= reason %>\", ...]}

    Args:
        thing_id (int):  Example: 1004996.

    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[PostThingsThingIdPublishResponse200 | PostThingsThingIdPublishResponse403 | PostThingsThingIdPublishResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

post_things_thing_id_toggle_watch

asyncio(thing_id, *, client) async

Watch/unwatch a Thing

If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa. Only works in user context.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404 | None

PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404

Source code in thingiverse/api/thing/post_things_thing_id_toggle_watch.py
async def asyncio(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostThingsThingIdToggleWatchResponse200
    | PostThingsThingIdToggleWatchResponse400
    | PostThingsThingIdToggleWatchResponse401
    | PostThingsThingIdToggleWatchResponse403
    | PostThingsThingIdToggleWatchResponse404
    | None
):
    """Watch/unwatch a Thing

     If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa.
    Only works in user context.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404
    """

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

asyncio_detailed(thing_id, *, client) async

Watch/unwatch a Thing

If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa. Only works in user context.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404]

Response[PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_toggle_watch.py
async def asyncio_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostThingsThingIdToggleWatchResponse200
    | PostThingsThingIdToggleWatchResponse400
    | PostThingsThingIdToggleWatchResponse401
    | PostThingsThingIdToggleWatchResponse403
    | PostThingsThingIdToggleWatchResponse404
]:
    """Watch/unwatch a Thing

     If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa.
    Only works in user context.

    Args:
        thing_id (int):  Example: 1004996.

    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[PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(thing_id, *, client)

Watch/unwatch a Thing

If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa. Only works in user context.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404 | None

PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404

Source code in thingiverse/api/thing/post_things_thing_id_toggle_watch.py
def sync(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostThingsThingIdToggleWatchResponse200
    | PostThingsThingIdToggleWatchResponse400
    | PostThingsThingIdToggleWatchResponse401
    | PostThingsThingIdToggleWatchResponse403
    | PostThingsThingIdToggleWatchResponse404
    | None
):
    """Watch/unwatch a Thing

     If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa.
    Only works in user context.

    Args:
        thing_id (int):  Example: 1004996.

    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:
        PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404
    """

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

sync_detailed(thing_id, *, client)

Watch/unwatch a Thing

If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa. Only works in user context.

Parameters:

Name Type Description Default
thing_id int

Example: 1004996.

required

Raises:

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

Type Description
Response[PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404]

Response[PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404]

Source code in thingiverse/api/thing/post_things_thing_id_toggle_watch.py
def sync_detailed(
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostThingsThingIdToggleWatchResponse200
    | PostThingsThingIdToggleWatchResponse400
    | PostThingsThingIdToggleWatchResponse401
    | PostThingsThingIdToggleWatchResponse403
    | PostThingsThingIdToggleWatchResponse404
]:
    """Watch/unwatch a Thing

     If currently watching the specified Thing, the current user will unwatch the Thing, and vice versa.
    Only works in user context.

    Args:
        thing_id (int):  Example: 1004996.

    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[PostThingsThingIdToggleWatchResponse200 | PostThingsThingIdToggleWatchResponse400 | PostThingsThingIdToggleWatchResponse401 | PostThingsThingIdToggleWatchResponse403 | PostThingsThingIdToggleWatchResponse404]
    """

    kwargs = _get_kwargs(
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)