Skip to content

Thing Ops

thingiverse.api.thing_ops

Contains endpoint functions for accessing the API

post_thingops_ids_copy

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

Copy a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsCopyBody | 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
PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404 | None

PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404

Source code in thingiverse/api/thing_ops/post_thingops_ids_copy.py
async def asyncio(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsCopyBody | Unset = UNSET,
) -> (
    PostThingopsIdsCopyResponse200
    | PostThingopsIdsCopyResponse401
    | PostThingopsIdsCopyResponse403
    | PostThingopsIdsCopyResponse404
    | None
):
    """Copy a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsCopyBody | 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:
        PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404
    """

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

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

Copy a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsCopyBody | 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[PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404]

Response[PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404]

Source code in thingiverse/api/thing_ops/post_thingops_ids_copy.py
async def asyncio_detailed(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsCopyBody | Unset = UNSET,
) -> Response[
    PostThingopsIdsCopyResponse200
    | PostThingopsIdsCopyResponse401
    | PostThingopsIdsCopyResponse403
    | PostThingopsIdsCopyResponse404
]:
    """Copy a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsCopyBody | 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[PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404]
    """

    kwargs = _get_kwargs(
        ids=ids,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Copy a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsCopyBody | 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
PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404 | None

PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404

Source code in thingiverse/api/thing_ops/post_thingops_ids_copy.py
def sync(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsCopyBody | Unset = UNSET,
) -> (
    PostThingopsIdsCopyResponse200
    | PostThingopsIdsCopyResponse401
    | PostThingopsIdsCopyResponse403
    | PostThingopsIdsCopyResponse404
    | None
):
    """Copy a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsCopyBody | 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:
        PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404
    """

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

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

Copy a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsCopyBody | 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[PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404]

Response[PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404]

Source code in thingiverse/api/thing_ops/post_thingops_ids_copy.py
def sync_detailed(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsCopyBody | Unset = UNSET,
) -> Response[
    PostThingopsIdsCopyResponse200
    | PostThingopsIdsCopyResponse401
    | PostThingopsIdsCopyResponse403
    | PostThingopsIdsCopyResponse404
]:
    """Copy a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsCopyBody | 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[PostThingopsIdsCopyResponse200 | PostThingopsIdsCopyResponse401 | PostThingopsIdsCopyResponse403 | PostThingopsIdsCopyResponse404]
    """

    kwargs = _get_kwargs(
        ids=ids,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_thingops_ids_move

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

Move a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsMoveBody | 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
PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404 | None

PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404

Source code in thingiverse/api/thing_ops/post_thingops_ids_move.py
async def asyncio(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsMoveBody | Unset = UNSET,
) -> (
    PostThingopsIdsMoveResponse200
    | PostThingopsIdsMoveResponse401
    | PostThingopsIdsMoveResponse403
    | PostThingopsIdsMoveResponse404
    | None
):
    """Move a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsMoveBody | 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:
        PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404
    """

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

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

Move a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsMoveBody | 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[PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404]

Response[PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404]

Source code in thingiverse/api/thing_ops/post_thingops_ids_move.py
async def asyncio_detailed(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsMoveBody | Unset = UNSET,
) -> Response[
    PostThingopsIdsMoveResponse200
    | PostThingopsIdsMoveResponse401
    | PostThingopsIdsMoveResponse403
    | PostThingopsIdsMoveResponse404
]:
    """Move a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsMoveBody | 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[PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404]
    """

    kwargs = _get_kwargs(
        ids=ids,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Move a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsMoveBody | 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
PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404 | None

PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404

Source code in thingiverse/api/thing_ops/post_thingops_ids_move.py
def sync(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsMoveBody | Unset = UNSET,
) -> (
    PostThingopsIdsMoveResponse200
    | PostThingopsIdsMoveResponse401
    | PostThingopsIdsMoveResponse403
    | PostThingopsIdsMoveResponse404
    | None
):
    """Move a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsMoveBody | 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:
        PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404
    """

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

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

Move a thing(s) to a new collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsMoveBody | 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[PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404]

Response[PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404]

Source code in thingiverse/api/thing_ops/post_thingops_ids_move.py
def sync_detailed(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsMoveBody | Unset = UNSET,
) -> Response[
    PostThingopsIdsMoveResponse200
    | PostThingopsIdsMoveResponse401
    | PostThingopsIdsMoveResponse403
    | PostThingopsIdsMoveResponse404
]:
    """Move a thing(s) to a new collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsMoveBody | 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[PostThingopsIdsMoveResponse200 | PostThingopsIdsMoveResponse401 | PostThingopsIdsMoveResponse403 | PostThingopsIdsMoveResponse404]
    """

    kwargs = _get_kwargs(
        ids=ids,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_thingops_ids_remove

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

Remove a thing(s) from a collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsRemoveBody | 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
PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404 | None

PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404

Source code in thingiverse/api/thing_ops/post_thingops_ids_remove.py
async def asyncio(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsRemoveBody | Unset = UNSET,
) -> (
    PostThingopsIdsRemoveResponse200
    | PostThingopsIdsRemoveResponse401
    | PostThingopsIdsRemoveResponse403
    | PostThingopsIdsRemoveResponse404
    | None
):
    """Remove a thing(s) from a collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsRemoveBody | 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:
        PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404
    """

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

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

Remove a thing(s) from a collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsRemoveBody | 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[PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404]

Response[PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404]

Source code in thingiverse/api/thing_ops/post_thingops_ids_remove.py
async def asyncio_detailed(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsRemoveBody | Unset = UNSET,
) -> Response[
    PostThingopsIdsRemoveResponse200
    | PostThingopsIdsRemoveResponse401
    | PostThingopsIdsRemoveResponse403
    | PostThingopsIdsRemoveResponse404
]:
    """Remove a thing(s) from a collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsRemoveBody | 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[PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404]
    """

    kwargs = _get_kwargs(
        ids=ids,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Remove a thing(s) from a collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsRemoveBody | 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
PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404 | None

PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404

Source code in thingiverse/api/thing_ops/post_thingops_ids_remove.py
def sync(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsRemoveBody | Unset = UNSET,
) -> (
    PostThingopsIdsRemoveResponse200
    | PostThingopsIdsRemoveResponse401
    | PostThingopsIdsRemoveResponse403
    | PostThingopsIdsRemoveResponse404
    | None
):
    """Remove a thing(s) from a collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsRemoveBody | 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:
        PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404
    """

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

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

Remove a thing(s) from a collection

Parameters:

Name Type Description Default
ids str

Example: 2.

required
body PostThingopsIdsRemoveBody | 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[PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404]

Response[PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404]

Source code in thingiverse/api/thing_ops/post_thingops_ids_remove.py
def sync_detailed(
    ids: str,
    *,
    client: AuthenticatedClient,
    body: PostThingopsIdsRemoveBody | Unset = UNSET,
) -> Response[
    PostThingopsIdsRemoveResponse200
    | PostThingopsIdsRemoveResponse401
    | PostThingopsIdsRemoveResponse403
    | PostThingopsIdsRemoveResponse404
]:
    """Remove a thing(s) from a collection

    Args:
        ids (str):  Example: 2.
        body (PostThingopsIdsRemoveBody | 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[PostThingopsIdsRemoveResponse200 | PostThingopsIdsRemoveResponse401 | PostThingopsIdsRemoveResponse403 | PostThingopsIdsRemoveResponse404]
    """

    kwargs = _get_kwargs(
        ids=ids,
        body=body,
    )

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

    return _build_response(client=client, response=response)