Skip to content

Make

thingiverse.api.make

Contains endpoint functions for accessing the API

delete_copies_copy_id

asyncio(copy_id, *, client) async

Softdelete copy by id

Parameters:

Name Type Description Default
copy_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
Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404 | None

Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404

Source code in thingiverse/api/make/delete_copies_copy_id.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    Any
    | DeleteCopiesCopyIdResponse401
    | DeleteCopiesCopyIdResponse403
    | DeleteCopiesCopyIdResponse404
    | None
):
    """Softdelete copy by id

    Args:
        copy_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:
        Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

Softdelete copy by id

Parameters:

Name Type Description Default
copy_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[Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404]

Response[Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404]

Source code in thingiverse/api/make/delete_copies_copy_id.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    Any
    | DeleteCopiesCopyIdResponse401
    | DeleteCopiesCopyIdResponse403
    | DeleteCopiesCopyIdResponse404
]:
    """Softdelete copy by id

    Args:
        copy_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[Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Softdelete copy by id

Parameters:

Name Type Description Default
copy_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
Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404 | None

Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404

Source code in thingiverse/api/make/delete_copies_copy_id.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    Any
    | DeleteCopiesCopyIdResponse401
    | DeleteCopiesCopyIdResponse403
    | DeleteCopiesCopyIdResponse404
    | None
):
    """Softdelete copy by id

    Args:
        copy_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:
        Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404
    """

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

sync_detailed(copy_id, *, client)

Softdelete copy by id

Parameters:

Name Type Description Default
copy_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[Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404]

Response[Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404]

Source code in thingiverse/api/make/delete_copies_copy_id.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    Any
    | DeleteCopiesCopyIdResponse401
    | DeleteCopiesCopyIdResponse403
    | DeleteCopiesCopyIdResponse404
]:
    """Softdelete copy by id

    Args:
        copy_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[Any | DeleteCopiesCopyIdResponse401 | DeleteCopiesCopyIdResponse403 | DeleteCopiesCopyIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

delete_copies_copy_id_images_image_id

asyncio(copy_id, image_id, *, client) async

Delete an image from a copy

Must use the DELETE method. This cannot be undone.

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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
DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404 | None

DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404

Source code in thingiverse/api/make/delete_copies_copy_id_images_image_id.py
async def asyncio(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteCopiesCopyIdImagesImageIdResponse200
    | DeleteCopiesCopyIdImagesImageIdResponse401
    | DeleteCopiesCopyIdImagesImageIdResponse403
    | DeleteCopiesCopyIdImagesImageIdResponse404
    | None
):
    """Delete an image from a copy

     Must use the DELETE method. This cannot be undone.

    Args:
        copy_id (int):  Example: 1.
        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:
        DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404
    """

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

asyncio_detailed(copy_id, image_id, *, client) async

Delete an image from a copy

Must use the DELETE method. This cannot be undone.

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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[DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404]

Response[DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404]

Source code in thingiverse/api/make/delete_copies_copy_id_images_image_id.py
async def asyncio_detailed(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteCopiesCopyIdImagesImageIdResponse200
    | DeleteCopiesCopyIdImagesImageIdResponse401
    | DeleteCopiesCopyIdImagesImageIdResponse403
    | DeleteCopiesCopyIdImagesImageIdResponse404
]:
    """Delete an image from a copy

     Must use the DELETE method. This cannot be undone.

    Args:
        copy_id (int):  Example: 1.
        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[DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        image_id=image_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, image_id, *, client)

Delete an image from a copy

Must use the DELETE method. This cannot be undone.

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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
DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404 | None

DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404

Source code in thingiverse/api/make/delete_copies_copy_id_images_image_id.py
def sync(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteCopiesCopyIdImagesImageIdResponse200
    | DeleteCopiesCopyIdImagesImageIdResponse401
    | DeleteCopiesCopyIdImagesImageIdResponse403
    | DeleteCopiesCopyIdImagesImageIdResponse404
    | None
):
    """Delete an image from a copy

     Must use the DELETE method. This cannot be undone.

    Args:
        copy_id (int):  Example: 1.
        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:
        DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404
    """

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

sync_detailed(copy_id, image_id, *, client)

Delete an image from a copy

Must use the DELETE method. This cannot be undone.

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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[DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404]

Response[DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404]

Source code in thingiverse/api/make/delete_copies_copy_id_images_image_id.py
def sync_detailed(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteCopiesCopyIdImagesImageIdResponse200
    | DeleteCopiesCopyIdImagesImageIdResponse401
    | DeleteCopiesCopyIdImagesImageIdResponse403
    | DeleteCopiesCopyIdImagesImageIdResponse404
]:
    """Delete an image from a copy

     Must use the DELETE method. This cannot be undone.

    Args:
        copy_id (int):  Example: 1.
        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[DeleteCopiesCopyIdImagesImageIdResponse200 | DeleteCopiesCopyIdImagesImageIdResponse401 | DeleteCopiesCopyIdImagesImageIdResponse403 | DeleteCopiesCopyIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        image_id=image_id,
    )

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

    return _build_response(client=client, response=response)

delete_copies_copy_id_likes

asyncio(copy_id, *, client) async

Delete a like

Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to \"unlike\" their own copy.

Parameters:

Name Type Description Default
copy_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
DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404 | None

DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404

Source code in thingiverse/api/make/delete_copies_copy_id_likes.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteCopiesCopyIdLikesResponse200
    | DeleteCopiesCopyIdLikesResponse400
    | DeleteCopiesCopyIdLikesResponse401
    | DeleteCopiesCopyIdLikesResponse403
    | DeleteCopiesCopyIdLikesResponse404
    | None
):
    r"""Delete a like

     Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be
    400 Bad Request if the user is trying to \"unlike\" their own copy.

    Args:
        copy_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:
        DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

Delete a like

Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to \"unlike\" their own copy.

Parameters:

Name Type Description Default
copy_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[DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404]

Response[DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404]

Source code in thingiverse/api/make/delete_copies_copy_id_likes.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteCopiesCopyIdLikesResponse200
    | DeleteCopiesCopyIdLikesResponse400
    | DeleteCopiesCopyIdLikesResponse401
    | DeleteCopiesCopyIdLikesResponse403
    | DeleteCopiesCopyIdLikesResponse404
]:
    r"""Delete a like

     Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be
    400 Bad Request if the user is trying to \"unlike\" their own copy.

    Args:
        copy_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[DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Delete a like

Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to \"unlike\" their own copy.

Parameters:

Name Type Description Default
copy_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
DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404 | None

DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404

Source code in thingiverse/api/make/delete_copies_copy_id_likes.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteCopiesCopyIdLikesResponse200
    | DeleteCopiesCopyIdLikesResponse400
    | DeleteCopiesCopyIdLikesResponse401
    | DeleteCopiesCopyIdLikesResponse403
    | DeleteCopiesCopyIdLikesResponse404
    | None
):
    r"""Delete a like

     Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be
    400 Bad Request if the user is trying to \"unlike\" their own copy.

    Args:
        copy_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:
        DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404
    """

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

sync_detailed(copy_id, *, client)

Delete a like

Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to \"unlike\" their own copy.

Parameters:

Name Type Description Default
copy_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[DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404]

Response[DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404]

Source code in thingiverse/api/make/delete_copies_copy_id_likes.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteCopiesCopyIdLikesResponse200
    | DeleteCopiesCopyIdLikesResponse400
    | DeleteCopiesCopyIdLikesResponse401
    | DeleteCopiesCopyIdLikesResponse403
    | DeleteCopiesCopyIdLikesResponse404
]:
    r"""Delete a like

     Must use the DELETE method Result will be 404 Not Found if the copy doesn't exist. Result will be
    400 Bad Request if the user is trying to \"unlike\" their own copy.

    Args:
        copy_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[DeleteCopiesCopyIdLikesResponse200 | DeleteCopiesCopyIdLikesResponse400 | DeleteCopiesCopyIdLikesResponse401 | DeleteCopiesCopyIdLikesResponse403 | DeleteCopiesCopyIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

get_copies

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

Get the list of latest makes (copies).

Parameters:

Name Type Description Default
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
GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema] | None

GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]

Source code in thingiverse/api/make/get_copies.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema] | None:
    """Get the list of latest makes (copies).

    Args:
        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:
        GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]
    """

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

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

Get the list of latest makes (copies).

Parameters:

Name Type Description Default
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[GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]]

Response[GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]]

Source code in thingiverse/api/make/get_copies.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]
]:
    """Get the list of latest makes (copies).

    Args:
        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[GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get the list of latest makes (copies).

Parameters:

Name Type Description Default
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
GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema] | None

GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]

Source code in thingiverse/api/make/get_copies.py
def sync(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema] | None:
    """Get the list of latest makes (copies).

    Args:
        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:
        GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]
    """

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

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

Get the list of latest makes (copies).

Parameters:

Name Type Description Default
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[GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]]

Response[GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]]

Source code in thingiverse/api/make/get_copies.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]
]:
    """Get the list of latest makes (copies).

    Args:
        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[GetCopiesResponse401 | GetCopiesResponse403 | GetCopiesResponse404 | list[CopySchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_copies_copy_id

asyncio(copy_id, *, client) async

Get make (copy) by id

Parameters:

Name Type Description Default
copy_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
CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404 | None

CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404

Source code in thingiverse/api/make/get_copies_copy_id.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CopySchema
    | GetCopiesCopyIdResponse401
    | GetCopiesCopyIdResponse403
    | GetCopiesCopyIdResponse404
    | None
):
    """Get make (copy) by id

    Args:
        copy_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:
        CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

Get make (copy) by id

Parameters:

Name Type Description Default
copy_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[CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404]

Response[CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404]

Source code in thingiverse/api/make/get_copies_copy_id.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CopySchema
    | GetCopiesCopyIdResponse401
    | GetCopiesCopyIdResponse403
    | GetCopiesCopyIdResponse404
]:
    """Get make (copy) by id

    Args:
        copy_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[CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Get make (copy) by id

Parameters:

Name Type Description Default
copy_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
CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404 | None

CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404

Source code in thingiverse/api/make/get_copies_copy_id.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CopySchema
    | GetCopiesCopyIdResponse401
    | GetCopiesCopyIdResponse403
    | GetCopiesCopyIdResponse404
    | None
):
    """Get make (copy) by id

    Args:
        copy_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:
        CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404
    """

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

sync_detailed(copy_id, *, client)

Get make (copy) by id

Parameters:

Name Type Description Default
copy_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[CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404]

Response[CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404]

Source code in thingiverse/api/make/get_copies_copy_id.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CopySchema
    | GetCopiesCopyIdResponse401
    | GetCopiesCopyIdResponse403
    | GetCopiesCopyIdResponse404
]:
    """Get make (copy) by id

    Args:
        copy_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[CopySchema | GetCopiesCopyIdResponse401 | GetCopiesCopyIdResponse403 | GetCopiesCopyIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

get_copies_copy_id_comments

asyncio(copy_id, *, client) async

Get an unthreaded paginated list of comment objects.

See also GET /copies/id/threaded-comments

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema] | None

GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]

Source code in thingiverse/api/make/get_copies_copy_id_comments.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdCommentsResponse401
    | GetCopiesCopyIdCommentsResponse403
    | GetCopiesCopyIdCommentsResponse404
    | list[MakeCommentSchema]
    | None
):
    """Get an unthreaded paginated list of comment objects.

     See also GET /copies/id/threaded-comments

    Args:
        copy_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:
        GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]
    """

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

asyncio_detailed(copy_id, *, client) async

Get an unthreaded paginated list of comment objects.

See also GET /copies/id/threaded-comments

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]]

Response[GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]]

Source code in thingiverse/api/make/get_copies_copy_id_comments.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdCommentsResponse401
    | GetCopiesCopyIdCommentsResponse403
    | GetCopiesCopyIdCommentsResponse404
    | list[MakeCommentSchema]
]:
    """Get an unthreaded paginated list of comment objects.

     See also GET /copies/id/threaded-comments

    Args:
        copy_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[GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Get an unthreaded paginated list of comment objects.

See also GET /copies/id/threaded-comments

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema] | None

GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]

Source code in thingiverse/api/make/get_copies_copy_id_comments.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdCommentsResponse401
    | GetCopiesCopyIdCommentsResponse403
    | GetCopiesCopyIdCommentsResponse404
    | list[MakeCommentSchema]
    | None
):
    """Get an unthreaded paginated list of comment objects.

     See also GET /copies/id/threaded-comments

    Args:
        copy_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:
        GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]
    """

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

sync_detailed(copy_id, *, client)

Get an unthreaded paginated list of comment objects.

See also GET /copies/id/threaded-comments

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]]

Response[GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]]

Source code in thingiverse/api/make/get_copies_copy_id_comments.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdCommentsResponse401
    | GetCopiesCopyIdCommentsResponse403
    | GetCopiesCopyIdCommentsResponse404
    | list[MakeCommentSchema]
]:
    """Get an unthreaded paginated list of comment objects.

     See also GET /copies/id/threaded-comments

    Args:
        copy_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[GetCopiesCopyIdCommentsResponse401 | GetCopiesCopyIdCommentsResponse403 | GetCopiesCopyIdCommentsResponse404 | list[MakeCommentSchema]]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

get_copies_copy_id_images

asyncio(copy_id, *, client) async

Get images for a copy

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None] | None

GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]

Source code in thingiverse/api/make/get_copies_copy_id_images.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdImagesResponse401
    | GetCopiesCopyIdImagesResponse403
    | GetCopiesCopyIdImagesResponse404
    | list[ImageSummarySchemaType0 | None]
    | None
):
    """Get images for a copy

    Args:
        copy_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:
        GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]
    """

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

asyncio_detailed(copy_id, *, client) async

Get images for a copy

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]]

Response[GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]]

Source code in thingiverse/api/make/get_copies_copy_id_images.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdImagesResponse401
    | GetCopiesCopyIdImagesResponse403
    | GetCopiesCopyIdImagesResponse404
    | list[ImageSummarySchemaType0 | None]
]:
    """Get images for a copy

    Args:
        copy_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[GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Get images for a copy

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None] | None

GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]

Source code in thingiverse/api/make/get_copies_copy_id_images.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdImagesResponse401
    | GetCopiesCopyIdImagesResponse403
    | GetCopiesCopyIdImagesResponse404
    | list[ImageSummarySchemaType0 | None]
    | None
):
    """Get images for a copy

    Args:
        copy_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:
        GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]
    """

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

sync_detailed(copy_id, *, client)

Get images for a copy

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]]

Response[GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]]

Source code in thingiverse/api/make/get_copies_copy_id_images.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdImagesResponse401
    | GetCopiesCopyIdImagesResponse403
    | GetCopiesCopyIdImagesResponse404
    | list[ImageSummarySchemaType0 | None]
]:
    """Get images for a copy

    Args:
        copy_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[GetCopiesCopyIdImagesResponse401 | GetCopiesCopyIdImagesResponse403 | GetCopiesCopyIdImagesResponse404 | list[ImageSummarySchemaType0 | None]]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

get_copies_copy_id_root_comments

asyncio(copy_id, *, client) async

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema] | None

GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]

Source code in thingiverse/api/make/get_copies_copy_id_root_comments.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdRootCommentsResponse401
    | GetCopiesCopyIdRootCommentsResponse403
    | GetCopiesCopyIdRootCommentsResponse404
    | list[MakeCommentSchema]
    | None
):
    """Get an unthreaded paginated list of root comment objects

    Args:
        copy_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:
        GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]
    """

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

asyncio_detailed(copy_id, *, client) async

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]]

Response[GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]]

Source code in thingiverse/api/make/get_copies_copy_id_root_comments.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdRootCommentsResponse401
    | GetCopiesCopyIdRootCommentsResponse403
    | GetCopiesCopyIdRootCommentsResponse404
    | list[MakeCommentSchema]
]:
    """Get an unthreaded paginated list of root comment objects

    Args:
        copy_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[GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema] | None

GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]

Source code in thingiverse/api/make/get_copies_copy_id_root_comments.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdRootCommentsResponse401
    | GetCopiesCopyIdRootCommentsResponse403
    | GetCopiesCopyIdRootCommentsResponse404
    | list[MakeCommentSchema]
    | None
):
    """Get an unthreaded paginated list of root comment objects

    Args:
        copy_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:
        GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]
    """

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

sync_detailed(copy_id, *, client)

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]]

Response[GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]]

Source code in thingiverse/api/make/get_copies_copy_id_root_comments.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdRootCommentsResponse401
    | GetCopiesCopyIdRootCommentsResponse403
    | GetCopiesCopyIdRootCommentsResponse404
    | list[MakeCommentSchema]
]:
    """Get an unthreaded paginated list of root comment objects

    Args:
        copy_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[GetCopiesCopyIdRootCommentsResponse401 | GetCopiesCopyIdRootCommentsResponse403 | GetCopiesCopyIdRootCommentsResponse404 | list[MakeCommentSchema]]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

get_copies_copy_id_threaded_comments

asyncio(copy_id, *, client) async

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

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

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404 | None

GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404

Source code in thingiverse/api/make/get_copies_copy_id_threaded_comments.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdThreadedCommentsResponse200
    | GetCopiesCopyIdThreadedCommentsResponse401
    | GetCopiesCopyIdThreadedCommentsResponse403
    | GetCopiesCopyIdThreadedCommentsResponse404
    | None
):
    """Get all comments for this copy in a quick pre-threaded view.

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

    Args:
        copy_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:
        GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

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

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

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404]

Response[GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404]

Source code in thingiverse/api/make/get_copies_copy_id_threaded_comments.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdThreadedCommentsResponse200
    | GetCopiesCopyIdThreadedCommentsResponse401
    | GetCopiesCopyIdThreadedCommentsResponse403
    | GetCopiesCopyIdThreadedCommentsResponse404
]:
    """Get all comments for this copy in a quick pre-threaded view.

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

    Args:
        copy_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[GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

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

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

Parameters:

Name Type Description Default
copy_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
GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404 | None

GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404

Source code in thingiverse/api/make/get_copies_copy_id_threaded_comments.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCopiesCopyIdThreadedCommentsResponse200
    | GetCopiesCopyIdThreadedCommentsResponse401
    | GetCopiesCopyIdThreadedCommentsResponse403
    | GetCopiesCopyIdThreadedCommentsResponse404
    | None
):
    """Get all comments for this copy in a quick pre-threaded view.

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

    Args:
        copy_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:
        GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404
    """

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

sync_detailed(copy_id, *, client)

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

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

Parameters:

Name Type Description Default
copy_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[GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404]

Response[GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404]

Source code in thingiverse/api/make/get_copies_copy_id_threaded_comments.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCopiesCopyIdThreadedCommentsResponse200
    | GetCopiesCopyIdThreadedCommentsResponse401
    | GetCopiesCopyIdThreadedCommentsResponse403
    | GetCopiesCopyIdThreadedCommentsResponse404
]:
    """Get all comments for this copy in a quick pre-threaded view.

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

    Args:
        copy_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[GetCopiesCopyIdThreadedCommentsResponse200 | GetCopiesCopyIdThreadedCommentsResponse401 | GetCopiesCopyIdThreadedCommentsResponse403 | GetCopiesCopyIdThreadedCommentsResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

get_copiesreturncomplete

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

Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image info is returned

Parameters:

Name Type Description Default
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
GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item] | None

GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]

Source code in thingiverse/api/make/get_copiesreturncomplete.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCopiesreturncompleteResponse401
    | GetCopiesreturncompleteResponse403
    | GetCopiesreturncompleteResponse404
    | list[GetCopiesreturncompleteResponse200Item]
    | None
):
    """Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image
    info is returned

    Args:
        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:
        GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]
    """

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

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

Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image info is returned

Parameters:

Name Type Description Default
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[GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]]

Response[GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]]

Source code in thingiverse/api/make/get_copiesreturncomplete.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCopiesreturncompleteResponse401
    | GetCopiesreturncompleteResponse403
    | GetCopiesreturncompleteResponse404
    | list[GetCopiesreturncompleteResponse200Item]
]:
    """Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image
    info is returned

    Args:
        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[GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image info is returned

Parameters:

Name Type Description Default
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
GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item] | None

GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]

Source code in thingiverse/api/make/get_copiesreturncomplete.py
def sync(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCopiesreturncompleteResponse401
    | GetCopiesreturncompleteResponse403
    | GetCopiesreturncompleteResponse404
    | list[GetCopiesreturncompleteResponse200Item]
    | None
):
    """Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image
    info is returned

    Args:
        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:
        GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]
    """

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

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

Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image info is returned

Parameters:

Name Type Description Default
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[GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]]

Response[GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]]

Source code in thingiverse/api/make/get_copiesreturncomplete.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCopiesreturncompleteResponse401
    | GetCopiesreturncompleteResponse403
    | GetCopiesreturncompleteResponse404
    | list[GetCopiesreturncompleteResponse200Item]
]:
    """Get the list of latest makes (copies). The return complete ensures that the full thinginfo and image
    info is returned

    Args:
        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[GetCopiesreturncompleteResponse401 | GetCopiesreturncompleteResponse403 | GetCopiesreturncompleteResponse404 | list[GetCopiesreturncompleteResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

patch_copies_copy_id

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

Update an existing copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PatchCopiesCopyIdBody | 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
CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404 | None

CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404

Source code in thingiverse/api/make/patch_copies_copy_id.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchCopiesCopyIdBody | Unset = UNSET,
) -> (
    CopySchema
    | PatchCopiesCopyIdResponse400
    | PatchCopiesCopyIdResponse401
    | PatchCopiesCopyIdResponse403
    | PatchCopiesCopyIdResponse404
    | None
):
    """Update an existing copy

    Args:
        copy_id (int):  Example: 1.
        body (PatchCopiesCopyIdBody | 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:
        CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404
    """

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

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

Update an existing copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PatchCopiesCopyIdBody | 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[CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404]

Response[CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404]

Source code in thingiverse/api/make/patch_copies_copy_id.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchCopiesCopyIdBody | Unset = UNSET,
) -> Response[
    CopySchema
    | PatchCopiesCopyIdResponse400
    | PatchCopiesCopyIdResponse401
    | PatchCopiesCopyIdResponse403
    | PatchCopiesCopyIdResponse404
]:
    """Update an existing copy

    Args:
        copy_id (int):  Example: 1.
        body (PatchCopiesCopyIdBody | 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[CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Update an existing copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PatchCopiesCopyIdBody | 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
CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404 | None

CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404

Source code in thingiverse/api/make/patch_copies_copy_id.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchCopiesCopyIdBody | Unset = UNSET,
) -> (
    CopySchema
    | PatchCopiesCopyIdResponse400
    | PatchCopiesCopyIdResponse401
    | PatchCopiesCopyIdResponse403
    | PatchCopiesCopyIdResponse404
    | None
):
    """Update an existing copy

    Args:
        copy_id (int):  Example: 1.
        body (PatchCopiesCopyIdBody | 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:
        CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404
    """

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

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

Update an existing copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PatchCopiesCopyIdBody | 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[CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404]

Response[CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404]

Source code in thingiverse/api/make/patch_copies_copy_id.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchCopiesCopyIdBody | Unset = UNSET,
) -> Response[
    CopySchema
    | PatchCopiesCopyIdResponse400
    | PatchCopiesCopyIdResponse401
    | PatchCopiesCopyIdResponse403
    | PatchCopiesCopyIdResponse404
]:
    """Update an existing copy

    Args:
        copy_id (int):  Example: 1.
        body (PatchCopiesCopyIdBody | 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[CopySchema | PatchCopiesCopyIdResponse400 | PatchCopiesCopyIdResponse401 | PatchCopiesCopyIdResponse403 | PatchCopiesCopyIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

patch_copies_copy_id_images_image_id

asyncio(copy_id, image_id, *, client) async

Update an existing image

Must use the PATCH method

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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
PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404 | None

PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404

Source code in thingiverse/api/make/patch_copies_copy_id_images_image_id.py
async def asyncio(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PatchCopiesCopyIdImagesImageIdResponse200
    | PatchCopiesCopyIdImagesImageIdResponse401
    | PatchCopiesCopyIdImagesImageIdResponse403
    | PatchCopiesCopyIdImagesImageIdResponse404
    | None
):
    """Update an existing image

     Must use the PATCH method

    Args:
        copy_id (int):  Example: 1.
        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:
        PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404
    """

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

asyncio_detailed(copy_id, image_id, *, client) async

Update an existing image

Must use the PATCH method

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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[PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404]

Response[PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404]

Source code in thingiverse/api/make/patch_copies_copy_id_images_image_id.py
async def asyncio_detailed(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PatchCopiesCopyIdImagesImageIdResponse200
    | PatchCopiesCopyIdImagesImageIdResponse401
    | PatchCopiesCopyIdImagesImageIdResponse403
    | PatchCopiesCopyIdImagesImageIdResponse404
]:
    """Update an existing image

     Must use the PATCH method

    Args:
        copy_id (int):  Example: 1.
        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[PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        image_id=image_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, image_id, *, client)

Update an existing image

Must use the PATCH method

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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
PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404 | None

PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404

Source code in thingiverse/api/make/patch_copies_copy_id_images_image_id.py
def sync(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PatchCopiesCopyIdImagesImageIdResponse200
    | PatchCopiesCopyIdImagesImageIdResponse401
    | PatchCopiesCopyIdImagesImageIdResponse403
    | PatchCopiesCopyIdImagesImageIdResponse404
    | None
):
    """Update an existing image

     Must use the PATCH method

    Args:
        copy_id (int):  Example: 1.
        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:
        PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404
    """

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

sync_detailed(copy_id, image_id, *, client)

Update an existing image

Must use the PATCH method

Parameters:

Name Type Description Default
copy_id int

Example: 1.

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[PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404]

Response[PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404]

Source code in thingiverse/api/make/patch_copies_copy_id_images_image_id.py
def sync_detailed(
    copy_id: int,
    image_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PatchCopiesCopyIdImagesImageIdResponse200
    | PatchCopiesCopyIdImagesImageIdResponse401
    | PatchCopiesCopyIdImagesImageIdResponse403
    | PatchCopiesCopyIdImagesImageIdResponse404
]:
    """Update an existing image

     Must use the PATCH method

    Args:
        copy_id (int):  Example: 1.
        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[PatchCopiesCopyIdImagesImageIdResponse200 | PatchCopiesCopyIdImagesImageIdResponse401 | PatchCopiesCopyIdImagesImageIdResponse403 | PatchCopiesCopyIdImagesImageIdResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        image_id=image_id,
    )

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

    return _build_response(client=client, response=response)

post_copies_copy_id_comments

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

Post a comment

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdCommentsBody | 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
MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404 | None

MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404

Source code in thingiverse/api/make/post_copies_copy_id_comments.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdCommentsBody | Unset = UNSET,
) -> (
    MakeCommentSchema
    | PostCopiesCopyIdCommentsResponse400
    | PostCopiesCopyIdCommentsResponse401
    | PostCopiesCopyIdCommentsResponse403
    | PostCopiesCopyIdCommentsResponse404
    | None
):
    """Post a comment

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdCommentsBody | 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:
        MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404
    """

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

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

Post a comment

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdCommentsBody | 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[MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404]

Response[MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_comments.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdCommentsBody | Unset = UNSET,
) -> Response[
    MakeCommentSchema
    | PostCopiesCopyIdCommentsResponse400
    | PostCopiesCopyIdCommentsResponse401
    | PostCopiesCopyIdCommentsResponse403
    | PostCopiesCopyIdCommentsResponse404
]:
    """Post a comment

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdCommentsBody | 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[MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Post a comment

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdCommentsBody | 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
MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404 | None

MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404

Source code in thingiverse/api/make/post_copies_copy_id_comments.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdCommentsBody | Unset = UNSET,
) -> (
    MakeCommentSchema
    | PostCopiesCopyIdCommentsResponse400
    | PostCopiesCopyIdCommentsResponse401
    | PostCopiesCopyIdCommentsResponse403
    | PostCopiesCopyIdCommentsResponse404
    | None
):
    """Post a comment

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdCommentsBody | 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:
        MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404
    """

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

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

Post a comment

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdCommentsBody | 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[MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404]

Response[MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_comments.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdCommentsBody | Unset = UNSET,
) -> Response[
    MakeCommentSchema
    | PostCopiesCopyIdCommentsResponse400
    | PostCopiesCopyIdCommentsResponse401
    | PostCopiesCopyIdCommentsResponse403
    | PostCopiesCopyIdCommentsResponse404
]:
    """Post a comment

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdCommentsBody | 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[MakeCommentSchema | PostCopiesCopyIdCommentsResponse400 | PostCopiesCopyIdCommentsResponse401 | PostCopiesCopyIdCommentsResponse403 | PostCopiesCopyIdCommentsResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_copies_copy_id_images

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

Upload image to a copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdImagesBody | 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
ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404 | None

ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404

Source code in thingiverse/api/make/post_copies_copy_id_images.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdImagesBody | Unset = UNSET,
) -> (
    ImageSummarySchemaType0
    | None
    | PostCopiesCopyIdImagesResponse401
    | PostCopiesCopyIdImagesResponse403
    | PostCopiesCopyIdImagesResponse404
    | None
):
    """Upload image to a copy

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdImagesBody | 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:
        ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404
    """

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

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

Upload image to a copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdImagesBody | 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[ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404]

Response[ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_images.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdImagesBody | Unset = UNSET,
) -> Response[
    ImageSummarySchemaType0
    | None
    | PostCopiesCopyIdImagesResponse401
    | PostCopiesCopyIdImagesResponse403
    | PostCopiesCopyIdImagesResponse404
]:
    """Upload image to a copy

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdImagesBody | 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[ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Upload image to a copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdImagesBody | 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
ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404 | None

ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404

Source code in thingiverse/api/make/post_copies_copy_id_images.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdImagesBody | Unset = UNSET,
) -> (
    ImageSummarySchemaType0
    | None
    | PostCopiesCopyIdImagesResponse401
    | PostCopiesCopyIdImagesResponse403
    | PostCopiesCopyIdImagesResponse404
    | None
):
    """Upload image to a copy

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdImagesBody | 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:
        ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404
    """

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

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

Upload image to a copy

Parameters:

Name Type Description Default
copy_id int

Example: 1.

required
body PostCopiesCopyIdImagesBody | 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[ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404]

Response[ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_images.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCopiesCopyIdImagesBody | Unset = UNSET,
) -> Response[
    ImageSummarySchemaType0
    | None
    | PostCopiesCopyIdImagesResponse401
    | PostCopiesCopyIdImagesResponse403
    | PostCopiesCopyIdImagesResponse404
]:
    """Upload image to a copy

    Args:
        copy_id (int):  Example: 1.
        body (PostCopiesCopyIdImagesBody | 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[ImageSummarySchemaType0 | None | PostCopiesCopyIdImagesResponse401 | PostCopiesCopyIdImagesResponse403 | PostCopiesCopyIdImagesResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_copies_copy_id_likes

asyncio(copy_id, *, client) async

Like a copy

Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to like their own copy.

Parameters:

Name Type Description Default
copy_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
PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404 | None

PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404

Source code in thingiverse/api/make/post_copies_copy_id_likes.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostCopiesCopyIdLikesResponse200
    | PostCopiesCopyIdLikesResponse400
    | PostCopiesCopyIdLikesResponse401
    | PostCopiesCopyIdLikesResponse403
    | PostCopiesCopyIdLikesResponse404
    | None
):
    """Like a copy

     Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400
    Bad Request if the user is trying to like their own copy.

    Args:
        copy_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:
        PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

Like a copy

Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to like their own copy.

Parameters:

Name Type Description Default
copy_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[PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404]

Response[PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_likes.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostCopiesCopyIdLikesResponse200
    | PostCopiesCopyIdLikesResponse400
    | PostCopiesCopyIdLikesResponse401
    | PostCopiesCopyIdLikesResponse403
    | PostCopiesCopyIdLikesResponse404
]:
    """Like a copy

     Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400
    Bad Request if the user is trying to like their own copy.

    Args:
        copy_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[PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Like a copy

Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to like their own copy.

Parameters:

Name Type Description Default
copy_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
PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404 | None

PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404

Source code in thingiverse/api/make/post_copies_copy_id_likes.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostCopiesCopyIdLikesResponse200
    | PostCopiesCopyIdLikesResponse400
    | PostCopiesCopyIdLikesResponse401
    | PostCopiesCopyIdLikesResponse403
    | PostCopiesCopyIdLikesResponse404
    | None
):
    """Like a copy

     Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400
    Bad Request if the user is trying to like their own copy.

    Args:
        copy_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:
        PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404
    """

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

sync_detailed(copy_id, *, client)

Like a copy

Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400 Bad Request if the user is trying to like their own copy.

Parameters:

Name Type Description Default
copy_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[PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404]

Response[PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_likes.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostCopiesCopyIdLikesResponse200
    | PostCopiesCopyIdLikesResponse400
    | PostCopiesCopyIdLikesResponse401
    | PostCopiesCopyIdLikesResponse403
    | PostCopiesCopyIdLikesResponse404
]:
    """Like a copy

     Must use the POST method Result will be 404 Not Found if the copy doesn't exist. Result will be 400
    Bad Request if the user is trying to like their own copy.

    Args:
        copy_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[PostCopiesCopyIdLikesResponse200 | PostCopiesCopyIdLikesResponse400 | PostCopiesCopyIdLikesResponse401 | PostCopiesCopyIdLikesResponse403 | PostCopiesCopyIdLikesResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

post_copies_copy_id_restore

asyncio(copy_id, *, client) async

Restore a previously soft-deleted make

If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

Parameters:

Name Type Description Default
copy_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
CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404 | None

CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404

Source code in thingiverse/api/make/post_copies_copy_id_restore.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CopySchema
    | PostCopiesCopyIdRestoreResponse401
    | PostCopiesCopyIdRestoreResponse403
    | PostCopiesCopyIdRestoreResponse404
    | None
):
    """Restore a previously soft-deleted make

     If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

    Args:
        copy_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:
        CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

Restore a previously soft-deleted make

If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

Parameters:

Name Type Description Default
copy_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[CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404]

Response[CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_restore.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CopySchema
    | PostCopiesCopyIdRestoreResponse401
    | PostCopiesCopyIdRestoreResponse403
    | PostCopiesCopyIdRestoreResponse404
]:
    """Restore a previously soft-deleted make

     If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

    Args:
        copy_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[CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Restore a previously soft-deleted make

If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

Parameters:

Name Type Description Default
copy_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
CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404 | None

CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404

Source code in thingiverse/api/make/post_copies_copy_id_restore.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CopySchema
    | PostCopiesCopyIdRestoreResponse401
    | PostCopiesCopyIdRestoreResponse403
    | PostCopiesCopyIdRestoreResponse404
    | None
):
    """Restore a previously soft-deleted make

     If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

    Args:
        copy_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:
        CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404
    """

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

sync_detailed(copy_id, *, client)

Restore a previously soft-deleted make

If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

Parameters:

Name Type Description Default
copy_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[CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404]

Response[CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_restore.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CopySchema
    | PostCopiesCopyIdRestoreResponse401
    | PostCopiesCopyIdRestoreResponse403
    | PostCopiesCopyIdRestoreResponse404
]:
    """Restore a previously soft-deleted make

     If a make was previously softdeleted (so deleted but not yet permanently), this will restore it.

    Args:
        copy_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[CopySchema | PostCopiesCopyIdRestoreResponse401 | PostCopiesCopyIdRestoreResponse403 | PostCopiesCopyIdRestoreResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

post_copies_copy_id_toggle_watch

asyncio(copy_id, *, client) async

Watch/unwatch a Make

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

Parameters:

Name Type Description Default
copy_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
PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404 | None

PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404

Source code in thingiverse/api/make/post_copies_copy_id_toggle_watch.py
async def asyncio(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostCopiesCopyIdToggleWatchResponse200
    | PostCopiesCopyIdToggleWatchResponse400
    | PostCopiesCopyIdToggleWatchResponse401
    | PostCopiesCopyIdToggleWatchResponse403
    | PostCopiesCopyIdToggleWatchResponse404
    | None
):
    """Watch/unwatch a Make

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

    Args:
        copy_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:
        PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404
    """

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

asyncio_detailed(copy_id, *, client) async

Watch/unwatch a Make

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

Parameters:

Name Type Description Default
copy_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[PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404]

Response[PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_toggle_watch.py
async def asyncio_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostCopiesCopyIdToggleWatchResponse200
    | PostCopiesCopyIdToggleWatchResponse400
    | PostCopiesCopyIdToggleWatchResponse401
    | PostCopiesCopyIdToggleWatchResponse403
    | PostCopiesCopyIdToggleWatchResponse404
]:
    """Watch/unwatch a Make

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

    Args:
        copy_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[PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)

sync(copy_id, *, client)

Watch/unwatch a Make

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

Parameters:

Name Type Description Default
copy_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
PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404 | None

PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404

Source code in thingiverse/api/make/post_copies_copy_id_toggle_watch.py
def sync(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostCopiesCopyIdToggleWatchResponse200
    | PostCopiesCopyIdToggleWatchResponse400
    | PostCopiesCopyIdToggleWatchResponse401
    | PostCopiesCopyIdToggleWatchResponse403
    | PostCopiesCopyIdToggleWatchResponse404
    | None
):
    """Watch/unwatch a Make

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

    Args:
        copy_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:
        PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404
    """

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

sync_detailed(copy_id, *, client)

Watch/unwatch a Make

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

Parameters:

Name Type Description Default
copy_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[PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404]

Response[PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404]

Source code in thingiverse/api/make/post_copies_copy_id_toggle_watch.py
def sync_detailed(
    copy_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostCopiesCopyIdToggleWatchResponse200
    | PostCopiesCopyIdToggleWatchResponse400
    | PostCopiesCopyIdToggleWatchResponse401
    | PostCopiesCopyIdToggleWatchResponse403
    | PostCopiesCopyIdToggleWatchResponse404
]:
    """Watch/unwatch a Make

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

    Args:
        copy_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[PostCopiesCopyIdToggleWatchResponse200 | PostCopiesCopyIdToggleWatchResponse400 | PostCopiesCopyIdToggleWatchResponse401 | PostCopiesCopyIdToggleWatchResponse403 | PostCopiesCopyIdToggleWatchResponse404]
    """

    kwargs = _get_kwargs(
        copy_id=copy_id,
    )

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

    return _build_response(client=client, response=response)