Skip to content

Group

thingiverse.api.group

Contains endpoint functions for accessing the API

delete_groups_group_id

asyncio(group_id, *, client) async

Delete a group

This cannot be undone.

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404 | None

DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404

Source code in thingiverse/api/group/delete_groups_group_id.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdResponse200
    | DeleteGroupsGroupIdResponse401
    | DeleteGroupsGroupIdResponse403
    | DeleteGroupsGroupIdResponse404
    | None
):
    """Delete a group

     This cannot be undone.

    Args:
        group_id (int):  Example: 25.

    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:
        DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404
    """

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

asyncio_detailed(group_id, *, client) async

Delete a group

This cannot be undone.

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404]

Response[DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404]

Source code in thingiverse/api/group/delete_groups_group_id.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdResponse200
    | DeleteGroupsGroupIdResponse401
    | DeleteGroupsGroupIdResponse403
    | DeleteGroupsGroupIdResponse404
]:
    """Delete a group

     This cannot be undone.

    Args:
        group_id (int):  Example: 25.

    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[DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, *, client)

Delete a group

This cannot be undone.

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404 | None

DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404

Source code in thingiverse/api/group/delete_groups_group_id.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdResponse200
    | DeleteGroupsGroupIdResponse401
    | DeleteGroupsGroupIdResponse403
    | DeleteGroupsGroupIdResponse404
    | None
):
    """Delete a group

     This cannot be undone.

    Args:
        group_id (int):  Example: 25.

    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:
        DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404
    """

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

sync_detailed(group_id, *, client)

Delete a group

This cannot be undone.

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404]

Response[DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404]

Source code in thingiverse/api/group/delete_groups_group_id.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdResponse200
    | DeleteGroupsGroupIdResponse401
    | DeleteGroupsGroupIdResponse403
    | DeleteGroupsGroupIdResponse404
]:
    """Delete a group

     This cannot be undone.

    Args:
        group_id (int):  Example: 25.

    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[DeleteGroupsGroupIdResponse200 | DeleteGroupsGroupIdResponse401 | DeleteGroupsGroupIdResponse403 | DeleteGroupsGroupIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

delete_groups_group_id_forum_forum_id

asyncio(group_id, forum_id, *, client) async

Delete group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

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
DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int | None

DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int

Source code in thingiverse/api/group/delete_groups_group_id_forum_forum_id.py
async def asyncio(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdForumForumIdResponse401
    | DeleteGroupsGroupIdForumForumIdResponse403
    | DeleteGroupsGroupIdForumForumIdResponse404
    | int
    | None
):
    """Delete group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.

    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:
        DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int
    """

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

asyncio_detailed(group_id, forum_id, *, client) async

Delete group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

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[DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int]

Response[DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int]

Source code in thingiverse/api/group/delete_groups_group_id_forum_forum_id.py
async def asyncio_detailed(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdForumForumIdResponse401
    | DeleteGroupsGroupIdForumForumIdResponse403
    | DeleteGroupsGroupIdForumForumIdResponse404
    | int
]:
    """Delete group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.

    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[DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_id=forum_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, forum_id, *, client)

Delete group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

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
DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int | None

DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int

Source code in thingiverse/api/group/delete_groups_group_id_forum_forum_id.py
def sync(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdForumForumIdResponse401
    | DeleteGroupsGroupIdForumForumIdResponse403
    | DeleteGroupsGroupIdForumForumIdResponse404
    | int
    | None
):
    """Delete group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.

    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:
        DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int
    """

    return sync_detailed(
        group_id=group_id,
        forum_id=forum_id,
        client=client,
    ).parsed

sync_detailed(group_id, forum_id, *, client)

Delete group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

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[DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int]

Response[DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int]

Source code in thingiverse/api/group/delete_groups_group_id_forum_forum_id.py
def sync_detailed(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdForumForumIdResponse401
    | DeleteGroupsGroupIdForumForumIdResponse403
    | DeleteGroupsGroupIdForumForumIdResponse404
    | int
]:
    """Delete group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.

    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[DeleteGroupsGroupIdForumForumIdResponse401 | DeleteGroupsGroupIdForumForumIdResponse403 | DeleteGroupsGroupIdForumForumIdResponse404 | int]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_id=forum_id,
    )

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

    return _build_response(client=client, response=response)

delete_groups_group_id_members

asyncio(group_id, *, client) async

Leave group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404 | None

DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404

Source code in thingiverse/api/group/delete_groups_group_id_members.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdMembersResponse200
    | DeleteGroupsGroupIdMembersResponse401
    | DeleteGroupsGroupIdMembersResponse403
    | DeleteGroupsGroupIdMembersResponse404
    | None
):
    """Leave group

    Args:
        group_id (int):  Example: 25.

    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:
        DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404
    """

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

asyncio_detailed(group_id, *, client) async

Leave group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404]

Response[DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404]

Source code in thingiverse/api/group/delete_groups_group_id_members.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdMembersResponse200
    | DeleteGroupsGroupIdMembersResponse401
    | DeleteGroupsGroupIdMembersResponse403
    | DeleteGroupsGroupIdMembersResponse404
]:
    """Leave group

    Args:
        group_id (int):  Example: 25.

    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[DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, *, client)

Leave group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404 | None

DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404

Source code in thingiverse/api/group/delete_groups_group_id_members.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdMembersResponse200
    | DeleteGroupsGroupIdMembersResponse401
    | DeleteGroupsGroupIdMembersResponse403
    | DeleteGroupsGroupIdMembersResponse404
    | None
):
    """Leave group

    Args:
        group_id (int):  Example: 25.

    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:
        DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404
    """

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

sync_detailed(group_id, *, client)

Leave group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404]

Response[DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404]

Source code in thingiverse/api/group/delete_groups_group_id_members.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdMembersResponse200
    | DeleteGroupsGroupIdMembersResponse401
    | DeleteGroupsGroupIdMembersResponse403
    | DeleteGroupsGroupIdMembersResponse404
]:
    """Leave group

    Args:
        group_id (int):  Example: 25.

    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[DeleteGroupsGroupIdMembersResponse200 | DeleteGroupsGroupIdMembersResponse401 | DeleteGroupsGroupIdMembersResponse403 | DeleteGroupsGroupIdMembersResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

delete_groups_group_id_things_thing_id

asyncio(group_id, thing_id, *, client) async

Delete thing from group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404 | None

DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404

Source code in thingiverse/api/group/delete_groups_group_id_things_thing_id.py
async def asyncio(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdThingsThingIdResponse200
    | DeleteGroupsGroupIdThingsThingIdResponse401
    | DeleteGroupsGroupIdThingsThingIdResponse403
    | DeleteGroupsGroupIdThingsThingIdResponse404
    | None
):
    """Delete thing from group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404
    """

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

asyncio_detailed(group_id, thing_id, *, client) async

Delete thing from group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404]

Response[DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404]

Source code in thingiverse/api/group/delete_groups_group_id_things_thing_id.py
async def asyncio_detailed(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdThingsThingIdResponse200
    | DeleteGroupsGroupIdThingsThingIdResponse401
    | DeleteGroupsGroupIdThingsThingIdResponse403
    | DeleteGroupsGroupIdThingsThingIdResponse404
]:
    """Delete thing from group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, thing_id, *, client)

Delete thing from group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404 | None

DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404

Source code in thingiverse/api/group/delete_groups_group_id_things_thing_id.py
def sync(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGroupsGroupIdThingsThingIdResponse200
    | DeleteGroupsGroupIdThingsThingIdResponse401
    | DeleteGroupsGroupIdThingsThingIdResponse403
    | DeleteGroupsGroupIdThingsThingIdResponse404
    | None
):
    """Delete thing from group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404
    """

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

sync_detailed(group_id, thing_id, *, client)

Delete thing from group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404]

Response[DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404]

Source code in thingiverse/api/group/delete_groups_group_id_things_thing_id.py
def sync_detailed(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGroupsGroupIdThingsThingIdResponse200
    | DeleteGroupsGroupIdThingsThingIdResponse401
    | DeleteGroupsGroupIdThingsThingIdResponse403
    | DeleteGroupsGroupIdThingsThingIdResponse404
]:
    """Delete thing from group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[DeleteGroupsGroupIdThingsThingIdResponse200 | DeleteGroupsGroupIdThingsThingIdResponse401 | DeleteGroupsGroupIdThingsThingIdResponse403 | DeleteGroupsGroupIdThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

get_groups

asyncio(*, client) async

List of groups

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
GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema] | None

GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]

Source code in thingiverse/api/group/get_groups.py
async def asyncio(
    *,
    client: AuthenticatedClient,
) -> GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema] | None:
    """List of groups

    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:
        GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]
    """

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

asyncio_detailed(*, client) async

List of groups

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[GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]]

Response[GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]]

Source code in thingiverse/api/group/get_groups.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]
]:
    """List of groups

    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[GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]]
    """

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)

sync(*, client)

List of groups

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
GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema] | None

GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]

Source code in thingiverse/api/group/get_groups.py
def sync(
    *,
    client: AuthenticatedClient,
) -> GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema] | None:
    """List of groups

    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:
        GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]
    """

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed(*, client)

List of groups

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[GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]]

Response[GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]]

Source code in thingiverse/api/group/get_groups.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]
]:
    """List of groups

    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[GetGroupsResponse401 | GetGroupsResponse403 | GetGroupsResponse404 | list[GroupSchema]]
    """

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)

get_groups_group_id

asyncio(group_id, *, client) async

Get group by id

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema | None

GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema

Source code in thingiverse/api/group/get_groups_group_id.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGroupsGroupIdResponse401
    | GetGroupsGroupIdResponse403
    | GetGroupsGroupIdResponse404
    | GroupSchema
    | None
):
    """Get group by id

    Args:
        group_id (int):  Example: 25.

    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:
        GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema
    """

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

asyncio_detailed(group_id, *, client) async

Get group by id

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema]

Response[GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema]

Source code in thingiverse/api/group/get_groups_group_id.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsGroupIdResponse401
    | GetGroupsGroupIdResponse403
    | GetGroupsGroupIdResponse404
    | GroupSchema
]:
    """Get group by id

    Args:
        group_id (int):  Example: 25.

    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[GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, *, client)

Get group by id

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema | None

GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema

Source code in thingiverse/api/group/get_groups_group_id.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGroupsGroupIdResponse401
    | GetGroupsGroupIdResponse403
    | GetGroupsGroupIdResponse404
    | GroupSchema
    | None
):
    """Get group by id

    Args:
        group_id (int):  Example: 25.

    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:
        GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema
    """

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

sync_detailed(group_id, *, client)

Get group by id

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema]

Response[GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema]

Source code in thingiverse/api/group/get_groups_group_id.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsGroupIdResponse401
    | GetGroupsGroupIdResponse403
    | GetGroupsGroupIdResponse404
    | GroupSchema
]:
    """Get group by id

    Args:
        group_id (int):  Example: 25.

    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[GetGroupsGroupIdResponse401 | GetGroupsGroupIdResponse403 | GetGroupsGroupIdResponse404 | GroupSchema]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

get_groups_group_id_forum_by_slug_forum_slug

asyncio(group_id, forum_slug, *, client) async

Get group forum by slug

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

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
GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404 | None

GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404

Source code in thingiverse/api/group/get_groups_group_id_forum_by_slug_forum_slug.py
async def asyncio(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetGroupsGroupIdForumBySlugForumSlugResponse200
    | GetGroupsGroupIdForumBySlugForumSlugResponse401
    | GetGroupsGroupIdForumBySlugForumSlugResponse403
    | GetGroupsGroupIdForumBySlugForumSlugResponse404
    | None
):
    """Get group forum by slug

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.

    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:
        GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404
    """

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

asyncio_detailed(group_id, forum_slug, *, client) async

Get group forum by slug

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

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[GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404]

Response[GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404]

Source code in thingiverse/api/group/get_groups_group_id_forum_by_slug_forum_slug.py
async def asyncio_detailed(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsGroupIdForumBySlugForumSlugResponse200
    | GetGroupsGroupIdForumBySlugForumSlugResponse401
    | GetGroupsGroupIdForumBySlugForumSlugResponse403
    | GetGroupsGroupIdForumBySlugForumSlugResponse404
]:
    """Get group forum by slug

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.

    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[GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_slug=forum_slug,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, forum_slug, *, client)

Get group forum by slug

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

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
GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404 | None

GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404

Source code in thingiverse/api/group/get_groups_group_id_forum_by_slug_forum_slug.py
def sync(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetGroupsGroupIdForumBySlugForumSlugResponse200
    | GetGroupsGroupIdForumBySlugForumSlugResponse401
    | GetGroupsGroupIdForumBySlugForumSlugResponse403
    | GetGroupsGroupIdForumBySlugForumSlugResponse404
    | None
):
    """Get group forum by slug

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.

    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:
        GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404
    """

    return sync_detailed(
        group_id=group_id,
        forum_slug=forum_slug,
        client=client,
    ).parsed

sync_detailed(group_id, forum_slug, *, client)

Get group forum by slug

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

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[GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404]

Response[GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404]

Source code in thingiverse/api/group/get_groups_group_id_forum_by_slug_forum_slug.py
def sync_detailed(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsGroupIdForumBySlugForumSlugResponse200
    | GetGroupsGroupIdForumBySlugForumSlugResponse401
    | GetGroupsGroupIdForumBySlugForumSlugResponse403
    | GetGroupsGroupIdForumBySlugForumSlugResponse404
]:
    """Get group forum by slug

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.

    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[GetGroupsGroupIdForumBySlugForumSlugResponse200 | GetGroupsGroupIdForumBySlugForumSlugResponse401 | GetGroupsGroupIdForumBySlugForumSlugResponse403 | GetGroupsGroupIdForumBySlugForumSlugResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_slug=forum_slug,
    )

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

    return _build_response(client=client, response=response)

get_groups_group_id_forum_topics_forum_id

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

Get all topics for the group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema] | None

GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]

Source code in thingiverse/api/group/get_groups_group_id_forum_topics_forum_id.py
async def asyncio(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdForumTopicsForumIdResponse401
    | GetGroupsGroupIdForumTopicsForumIdResponse403
    | GetGroupsGroupIdForumTopicsForumIdResponse404
    | list[TopicSchema]
    | None
):
    """Get all topics for the group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        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:
        GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]
    """

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

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

Get all topics for the group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]]

Response[GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]]

Source code in thingiverse/api/group/get_groups_group_id_forum_topics_forum_id.py
async def asyncio_detailed(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdForumTopicsForumIdResponse401
    | GetGroupsGroupIdForumTopicsForumIdResponse403
    | GetGroupsGroupIdForumTopicsForumIdResponse404
    | list[TopicSchema]
]:
    """Get all topics for the group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        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[GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get all topics for the group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema] | None

GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]

Source code in thingiverse/api/group/get_groups_group_id_forum_topics_forum_id.py
def sync(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdForumTopicsForumIdResponse401
    | GetGroupsGroupIdForumTopicsForumIdResponse403
    | GetGroupsGroupIdForumTopicsForumIdResponse404
    | list[TopicSchema]
    | None
):
    """Get all topics for the group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        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:
        GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]
    """

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

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

Get all topics for the group forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]]

Response[GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]]

Source code in thingiverse/api/group/get_groups_group_id_forum_topics_forum_id.py
def sync_detailed(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdForumTopicsForumIdResponse401
    | GetGroupsGroupIdForumTopicsForumIdResponse403
    | GetGroupsGroupIdForumTopicsForumIdResponse404
    | list[TopicSchema]
]:
    """Get all topics for the group forum

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        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[GetGroupsGroupIdForumTopicsForumIdResponse401 | GetGroupsGroupIdForumTopicsForumIdResponse403 | GetGroupsGroupIdForumTopicsForumIdResponse404 | list[TopicSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_groups_group_id_group_forums

asyncio(group_id, *, client) async

List of group forums

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema] | None

GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]

Source code in thingiverse/api/group/get_groups_group_id_group_forums.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGroupsGroupIdGroupForumsResponse401
    | GetGroupsGroupIdGroupForumsResponse403
    | GetGroupsGroupIdGroupForumsResponse404
    | list[ForumSchema]
    | None
):
    """List of group forums

    Args:
        group_id (int):  Example: 25.

    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:
        GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]
    """

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

asyncio_detailed(group_id, *, client) async

List of group forums

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]]

Response[GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]]

Source code in thingiverse/api/group/get_groups_group_id_group_forums.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsGroupIdGroupForumsResponse401
    | GetGroupsGroupIdGroupForumsResponse403
    | GetGroupsGroupIdGroupForumsResponse404
    | list[ForumSchema]
]:
    """List of group forums

    Args:
        group_id (int):  Example: 25.

    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[GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, *, client)

List of group forums

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema] | None

GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]

Source code in thingiverse/api/group/get_groups_group_id_group_forums.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGroupsGroupIdGroupForumsResponse401
    | GetGroupsGroupIdGroupForumsResponse403
    | GetGroupsGroupIdGroupForumsResponse404
    | list[ForumSchema]
    | None
):
    """List of group forums

    Args:
        group_id (int):  Example: 25.

    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:
        GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]
    """

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

sync_detailed(group_id, *, client)

List of group forums

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]]

Response[GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]]

Source code in thingiverse/api/group/get_groups_group_id_group_forums.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGroupsGroupIdGroupForumsResponse401
    | GetGroupsGroupIdGroupForumsResponse403
    | GetGroupsGroupIdGroupForumsResponse404
    | list[ForumSchema]
]:
    """List of group forums

    Args:
        group_id (int):  Example: 25.

    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[GetGroupsGroupIdGroupForumsResponse401 | GetGroupsGroupIdGroupForumsResponse403 | GetGroupsGroupIdGroupForumsResponse404 | list[ForumSchema]]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

get_groups_group_id_group_topics

asyncio(group_id, *, client, filter_=UNSET, sort=UNSET, page=UNSET, per_page=UNSET) async

List of group topics

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
filter_ str | Unset

Example: pinned.

UNSET
sort str | Unset

Example: popular.

UNSET
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
GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema] | None

GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]

Source code in thingiverse/api/group/get_groups_group_id_group_topics.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
    filter_: str | Unset = UNSET,
    sort: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdGroupTopicsResponse401
    | GetGroupsGroupIdGroupTopicsResponse403
    | GetGroupsGroupIdGroupTopicsResponse404
    | list[TopicSchema]
    | None
):
    """List of group topics

    Args:
        group_id (int):  Example: 25.
        filter_ (str | Unset):  Example: pinned.
        sort (str | Unset):  Example: popular.
        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:
        GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]
    """

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

asyncio_detailed(group_id, *, client, filter_=UNSET, sort=UNSET, page=UNSET, per_page=UNSET) async

List of group topics

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
filter_ str | Unset

Example: pinned.

UNSET
sort str | Unset

Example: popular.

UNSET
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[GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]]

Response[GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]]

Source code in thingiverse/api/group/get_groups_group_id_group_topics.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    filter_: str | Unset = UNSET,
    sort: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdGroupTopicsResponse401
    | GetGroupsGroupIdGroupTopicsResponse403
    | GetGroupsGroupIdGroupTopicsResponse404
    | list[TopicSchema]
]:
    """List of group topics

    Args:
        group_id (int):  Example: 25.
        filter_ (str | Unset):  Example: pinned.
        sort (str | Unset):  Example: popular.
        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[GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        filter_=filter_,
        sort=sort,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, *, client, filter_=UNSET, sort=UNSET, page=UNSET, per_page=UNSET)

List of group topics

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
filter_ str | Unset

Example: pinned.

UNSET
sort str | Unset

Example: popular.

UNSET
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
GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema] | None

GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]

Source code in thingiverse/api/group/get_groups_group_id_group_topics.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
    filter_: str | Unset = UNSET,
    sort: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdGroupTopicsResponse401
    | GetGroupsGroupIdGroupTopicsResponse403
    | GetGroupsGroupIdGroupTopicsResponse404
    | list[TopicSchema]
    | None
):
    """List of group topics

    Args:
        group_id (int):  Example: 25.
        filter_ (str | Unset):  Example: pinned.
        sort (str | Unset):  Example: popular.
        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:
        GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]
    """

    return sync_detailed(
        group_id=group_id,
        client=client,
        filter_=filter_,
        sort=sort,
        page=page,
        per_page=per_page,
    ).parsed

sync_detailed(group_id, *, client, filter_=UNSET, sort=UNSET, page=UNSET, per_page=UNSET)

List of group topics

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
filter_ str | Unset

Example: pinned.

UNSET
sort str | Unset

Example: popular.

UNSET
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[GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]]

Response[GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]]

Source code in thingiverse/api/group/get_groups_group_id_group_topics.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    filter_: str | Unset = UNSET,
    sort: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdGroupTopicsResponse401
    | GetGroupsGroupIdGroupTopicsResponse403
    | GetGroupsGroupIdGroupTopicsResponse404
    | list[TopicSchema]
]:
    """List of group topics

    Args:
        group_id (int):  Example: 25.
        filter_ (str | Unset):  Example: pinned.
        sort (str | Unset):  Example: popular.
        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[GetGroupsGroupIdGroupTopicsResponse401 | GetGroupsGroupIdGroupTopicsResponse403 | GetGroupsGroupIdGroupTopicsResponse404 | list[TopicSchema]]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        filter_=filter_,
        sort=sort,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

get_groups_group_id_members

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

List of group members

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema] | None

GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]

Source code in thingiverse/api/group/get_groups_group_id_members.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdMembersResponse401
    | GetGroupsGroupIdMembersResponse403
    | GetGroupsGroupIdMembersResponse404
    | list[MemberSchema]
    | None
):
    """List of group members

    Args:
        group_id (int):  Example: 25.
        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:
        GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]
    """

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

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

List of group members

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]]

Response[GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]]

Source code in thingiverse/api/group/get_groups_group_id_members.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdMembersResponse401
    | GetGroupsGroupIdMembersResponse403
    | GetGroupsGroupIdMembersResponse404
    | list[MemberSchema]
]:
    """List of group members

    Args:
        group_id (int):  Example: 25.
        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[GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

List of group members

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema] | None

GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]

Source code in thingiverse/api/group/get_groups_group_id_members.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdMembersResponse401
    | GetGroupsGroupIdMembersResponse403
    | GetGroupsGroupIdMembersResponse404
    | list[MemberSchema]
    | None
):
    """List of group members

    Args:
        group_id (int):  Example: 25.
        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:
        GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]
    """

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

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

List of group members

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]]

Response[GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]]

Source code in thingiverse/api/group/get_groups_group_id_members.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdMembersResponse401
    | GetGroupsGroupIdMembersResponse403
    | GetGroupsGroupIdMembersResponse404
    | list[MemberSchema]
]:
    """List of group members

    Args:
        group_id (int):  Example: 25.
        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[GetGroupsGroupIdMembersResponse401 | GetGroupsGroupIdMembersResponse403 | GetGroupsGroupIdMembersResponse404 | list[MemberSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_groups_group_id_things

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

List of group things

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema] | None

GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/group/get_groups_group_id_things.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdThingsResponse401
    | GetGroupsGroupIdThingsResponse403
    | GetGroupsGroupIdThingsResponse404
    | list[ThingSchema]
    | None
):
    """List of group things

    Args:
        group_id (int):  Example: 25.
        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:
        GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]
    """

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

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

List of group things

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]]

Response[GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/group/get_groups_group_id_things.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdThingsResponse401
    | GetGroupsGroupIdThingsResponse403
    | GetGroupsGroupIdThingsResponse404
    | list[ThingSchema]
]:
    """List of group things

    Args:
        group_id (int):  Example: 25.
        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[GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

List of group things

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema] | None

GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/group/get_groups_group_id_things.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGroupsGroupIdThingsResponse401
    | GetGroupsGroupIdThingsResponse403
    | GetGroupsGroupIdThingsResponse404
    | list[ThingSchema]
    | None
):
    """List of group things

    Args:
        group_id (int):  Example: 25.
        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:
        GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]
    """

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

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

List of group things

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]]

Response[GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/group/get_groups_group_id_things.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGroupsGroupIdThingsResponse401
    | GetGroupsGroupIdThingsResponse403
    | GetGroupsGroupIdThingsResponse404
    | list[ThingSchema]
]:
    """List of group things

    Args:
        group_id (int):  Example: 25.
        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[GetGroupsGroupIdThingsResponse401 | GetGroupsGroupIdThingsResponse403 | GetGroupsGroupIdThingsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

patch_groups_group_id

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

Update an existing group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PatchGroupsGroupIdBody | 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
GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404 | None

GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404

Source code in thingiverse/api/group/patch_groups_group_id.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGroupsGroupIdBody | Unset = UNSET,
) -> (
    GroupSchema
    | PatchGroupsGroupIdResponse401
    | PatchGroupsGroupIdResponse403
    | PatchGroupsGroupIdResponse404
    | None
):
    """Update an existing group

    Args:
        group_id (int):  Example: 25.
        body (PatchGroupsGroupIdBody | 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:
        GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404
    """

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

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

Update an existing group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PatchGroupsGroupIdBody | 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[GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404]

Response[GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404]

Source code in thingiverse/api/group/patch_groups_group_id.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGroupsGroupIdBody | Unset = UNSET,
) -> Response[
    GroupSchema
    | PatchGroupsGroupIdResponse401
    | PatchGroupsGroupIdResponse403
    | PatchGroupsGroupIdResponse404
]:
    """Update an existing group

    Args:
        group_id (int):  Example: 25.
        body (PatchGroupsGroupIdBody | 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[GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Update an existing group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PatchGroupsGroupIdBody | 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
GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404 | None

GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404

Source code in thingiverse/api/group/patch_groups_group_id.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGroupsGroupIdBody | Unset = UNSET,
) -> (
    GroupSchema
    | PatchGroupsGroupIdResponse401
    | PatchGroupsGroupIdResponse403
    | PatchGroupsGroupIdResponse404
    | None
):
    """Update an existing group

    Args:
        group_id (int):  Example: 25.
        body (PatchGroupsGroupIdBody | 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:
        GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404
    """

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

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

Update an existing group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PatchGroupsGroupIdBody | 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[GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404]

Response[GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404]

Source code in thingiverse/api/group/patch_groups_group_id.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGroupsGroupIdBody | Unset = UNSET,
) -> Response[
    GroupSchema
    | PatchGroupsGroupIdResponse401
    | PatchGroupsGroupIdResponse403
    | PatchGroupsGroupIdResponse404
]:
    """Update an existing group

    Args:
        group_id (int):  Example: 25.
        body (PatchGroupsGroupIdBody | 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[GroupSchema | PatchGroupsGroupIdResponse401 | PatchGroupsGroupIdResponse403 | PatchGroupsGroupIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_groups

asyncio(*, client, body=UNSET) async

Create a new group

Parameters:

Name Type Description Default
body PostGroupsBody | 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
GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404 | None

GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404

Source code in thingiverse/api/group/post_groups.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    body: PostGroupsBody | Unset = UNSET,
) -> GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404 | None:
    """Create a new group

    Args:
        body (PostGroupsBody | 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:
        GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404
    """

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

asyncio_detailed(*, client, body=UNSET) async

Create a new group

Parameters:

Name Type Description Default
body PostGroupsBody | 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[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]

Response[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]

Source code in thingiverse/api/group/post_groups.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    body: PostGroupsBody | Unset = UNSET,
) -> Response[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]:
    """Create a new group

    Args:
        body (PostGroupsBody | 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[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]
    """

    kwargs = _get_kwargs(
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(*, client, body=UNSET)

Create a new group

Parameters:

Name Type Description Default
body PostGroupsBody | 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
GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404 | None

GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404

Source code in thingiverse/api/group/post_groups.py
def sync(
    *,
    client: AuthenticatedClient,
    body: PostGroupsBody | Unset = UNSET,
) -> GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404 | None:
    """Create a new group

    Args:
        body (PostGroupsBody | 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:
        GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404
    """

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

sync_detailed(*, client, body=UNSET)

Create a new group

Parameters:

Name Type Description Default
body PostGroupsBody | 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[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]

Response[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]

Source code in thingiverse/api/group/post_groups.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    body: PostGroupsBody | Unset = UNSET,
) -> Response[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]:
    """Create a new group

    Args:
        body (PostGroupsBody | 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[GroupSchema | PostGroupsResponse401 | PostGroupsResponse403 | PostGroupsResponse404]
    """

    kwargs = _get_kwargs(
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_groups_group_id_group_forums

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

Create a new forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdGroupForumsBody | 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
ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404 | None

ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404

Source code in thingiverse/api/group/post_groups_group_id_group_forums.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupForumsBody | Unset = UNSET,
) -> (
    ForumSchema
    | PostGroupsGroupIdGroupForumsResponse401
    | PostGroupsGroupIdGroupForumsResponse403
    | PostGroupsGroupIdGroupForumsResponse404
    | None
):
    """Create a new forum

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdGroupForumsBody | 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:
        ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404
    """

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

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

Create a new forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdGroupForumsBody | 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[ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404]

Response[ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404]

Source code in thingiverse/api/group/post_groups_group_id_group_forums.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupForumsBody | Unset = UNSET,
) -> Response[
    ForumSchema
    | PostGroupsGroupIdGroupForumsResponse401
    | PostGroupsGroupIdGroupForumsResponse403
    | PostGroupsGroupIdGroupForumsResponse404
]:
    """Create a new forum

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdGroupForumsBody | 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[ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Create a new forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdGroupForumsBody | 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
ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404 | None

ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404

Source code in thingiverse/api/group/post_groups_group_id_group_forums.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupForumsBody | Unset = UNSET,
) -> (
    ForumSchema
    | PostGroupsGroupIdGroupForumsResponse401
    | PostGroupsGroupIdGroupForumsResponse403
    | PostGroupsGroupIdGroupForumsResponse404
    | None
):
    """Create a new forum

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdGroupForumsBody | 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:
        ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404
    """

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

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

Create a new forum

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdGroupForumsBody | 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[ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404]

Response[ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404]

Source code in thingiverse/api/group/post_groups_group_id_group_forums.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupForumsBody | Unset = UNSET,
) -> Response[
    ForumSchema
    | PostGroupsGroupIdGroupForumsResponse401
    | PostGroupsGroupIdGroupForumsResponse403
    | PostGroupsGroupIdGroupForumsResponse404
]:
    """Create a new forum

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdGroupForumsBody | 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[ForumSchema | PostGroupsGroupIdGroupForumsResponse401 | PostGroupsGroupIdGroupForumsResponse403 | PostGroupsGroupIdGroupForumsResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_groups_group_id_group_topics_forum_slug

asyncio(group_id, forum_slug, *, client, body=UNSET) async

Create a new Group Topic

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

required
body PostGroupsGroupIdGroupTopicsForumSlugBody | 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
PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema | None

PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema

Source code in thingiverse/api/group/post_groups_group_id_group_topics_forum_slug.py
async def asyncio(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupTopicsForumSlugBody | Unset = UNSET,
) -> (
    PostGroupsGroupIdGroupTopicsForumSlugResponse401
    | PostGroupsGroupIdGroupTopicsForumSlugResponse403
    | PostGroupsGroupIdGroupTopicsForumSlugResponse404
    | TopicSchema
    | None
):
    """Create a new Group Topic

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.
        body (PostGroupsGroupIdGroupTopicsForumSlugBody | 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:
        PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema
    """

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

asyncio_detailed(group_id, forum_slug, *, client, body=UNSET) async

Create a new Group Topic

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

required
body PostGroupsGroupIdGroupTopicsForumSlugBody | 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[PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema]

Response[PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema]

Source code in thingiverse/api/group/post_groups_group_id_group_topics_forum_slug.py
async def asyncio_detailed(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupTopicsForumSlugBody | Unset = UNSET,
) -> Response[
    PostGroupsGroupIdGroupTopicsForumSlugResponse401
    | PostGroupsGroupIdGroupTopicsForumSlugResponse403
    | PostGroupsGroupIdGroupTopicsForumSlugResponse404
    | TopicSchema
]:
    """Create a new Group Topic

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.
        body (PostGroupsGroupIdGroupTopicsForumSlugBody | 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[PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_slug=forum_slug,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, forum_slug, *, client, body=UNSET)

Create a new Group Topic

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

required
body PostGroupsGroupIdGroupTopicsForumSlugBody | 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
PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema | None

PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema

Source code in thingiverse/api/group/post_groups_group_id_group_topics_forum_slug.py
def sync(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupTopicsForumSlugBody | Unset = UNSET,
) -> (
    PostGroupsGroupIdGroupTopicsForumSlugResponse401
    | PostGroupsGroupIdGroupTopicsForumSlugResponse403
    | PostGroupsGroupIdGroupTopicsForumSlugResponse404
    | TopicSchema
    | None
):
    """Create a new Group Topic

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.
        body (PostGroupsGroupIdGroupTopicsForumSlugBody | 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:
        PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema
    """

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

sync_detailed(group_id, forum_slug, *, client, body=UNSET)

Create a new Group Topic

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_slug str

Example: general.

required
body PostGroupsGroupIdGroupTopicsForumSlugBody | 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[PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema]

Response[PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema]

Source code in thingiverse/api/group/post_groups_group_id_group_topics_forum_slug.py
def sync_detailed(
    group_id: int,
    forum_slug: str,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdGroupTopicsForumSlugBody | Unset = UNSET,
) -> Response[
    PostGroupsGroupIdGroupTopicsForumSlugResponse401
    | PostGroupsGroupIdGroupTopicsForumSlugResponse403
    | PostGroupsGroupIdGroupTopicsForumSlugResponse404
    | TopicSchema
]:
    """Create a new Group Topic

    Args:
        group_id (int):  Example: 25.
        forum_slug (str):  Example: general.
        body (PostGroupsGroupIdGroupTopicsForumSlugBody | 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[PostGroupsGroupIdGroupTopicsForumSlugResponse401 | PostGroupsGroupIdGroupTopicsForumSlugResponse403 | PostGroupsGroupIdGroupTopicsForumSlugResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_slug=forum_slug,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_groups_group_id_image

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

Upload a new image of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdImageBody | 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
PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404 | None

PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404

Source code in thingiverse/api/group/post_groups_group_id_image.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdImageBody | Unset = UNSET,
) -> (
    PostGroupsGroupIdImageResponse200
    | PostGroupsGroupIdImageResponse401
    | PostGroupsGroupIdImageResponse403
    | PostGroupsGroupIdImageResponse404
    | None
):
    """Upload a new image of group

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdImageBody | 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:
        PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404
    """

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

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

Upload a new image of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdImageBody | 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[PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404]

Response[PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404]

Source code in thingiverse/api/group/post_groups_group_id_image.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdImageBody | Unset = UNSET,
) -> Response[
    PostGroupsGroupIdImageResponse200
    | PostGroupsGroupIdImageResponse401
    | PostGroupsGroupIdImageResponse403
    | PostGroupsGroupIdImageResponse404
]:
    """Upload a new image of group

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdImageBody | 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[PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Upload a new image of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdImageBody | 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
PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404 | None

PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404

Source code in thingiverse/api/group/post_groups_group_id_image.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdImageBody | Unset = UNSET,
) -> (
    PostGroupsGroupIdImageResponse200
    | PostGroupsGroupIdImageResponse401
    | PostGroupsGroupIdImageResponse403
    | PostGroupsGroupIdImageResponse404
    | None
):
    """Upload a new image of group

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdImageBody | 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:
        PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404
    """

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

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

Upload a new image of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
body PostGroupsGroupIdImageBody | 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[PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404]

Response[PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404]

Source code in thingiverse/api/group/post_groups_group_id_image.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdImageBody | Unset = UNSET,
) -> Response[
    PostGroupsGroupIdImageResponse200
    | PostGroupsGroupIdImageResponse401
    | PostGroupsGroupIdImageResponse403
    | PostGroupsGroupIdImageResponse404
]:
    """Upload a new image of group

    Args:
        group_id (int):  Example: 25.
        body (PostGroupsGroupIdImageBody | 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[PostGroupsGroupIdImageResponse200 | PostGroupsGroupIdImageResponse401 | PostGroupsGroupIdImageResponse403 | PostGroupsGroupIdImageResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_groups_group_id_members

asyncio(group_id, *, client) async

Join to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404 | None

PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404

Source code in thingiverse/api/group/post_groups_group_id_members.py
async def asyncio(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGroupsGroupIdMembersResponse200
    | PostGroupsGroupIdMembersResponse401
    | PostGroupsGroupIdMembersResponse403
    | PostGroupsGroupIdMembersResponse404
    | None
):
    """Join to group

    Args:
        group_id (int):  Example: 25.

    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:
        PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404
    """

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

asyncio_detailed(group_id, *, client) async

Join to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404]

Response[PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404]

Source code in thingiverse/api/group/post_groups_group_id_members.py
async def asyncio_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGroupsGroupIdMembersResponse200
    | PostGroupsGroupIdMembersResponse401
    | PostGroupsGroupIdMembersResponse403
    | PostGroupsGroupIdMembersResponse404
]:
    """Join to group

    Args:
        group_id (int):  Example: 25.

    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[PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, *, client)

Join to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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
PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404 | None

PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404

Source code in thingiverse/api/group/post_groups_group_id_members.py
def sync(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGroupsGroupIdMembersResponse200
    | PostGroupsGroupIdMembersResponse401
    | PostGroupsGroupIdMembersResponse403
    | PostGroupsGroupIdMembersResponse404
    | None
):
    """Join to group

    Args:
        group_id (int):  Example: 25.

    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:
        PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404
    """

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

sync_detailed(group_id, *, client)

Join to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

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[PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404]

Response[PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404]

Source code in thingiverse/api/group/post_groups_group_id_members.py
def sync_detailed(
    group_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGroupsGroupIdMembersResponse200
    | PostGroupsGroupIdMembersResponse401
    | PostGroupsGroupIdMembersResponse403
    | PostGroupsGroupIdMembersResponse404
]:
    """Join to group

    Args:
        group_id (int):  Example: 25.

    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[PostGroupsGroupIdMembersResponse200 | PostGroupsGroupIdMembersResponse401 | PostGroupsGroupIdMembersResponse403 | PostGroupsGroupIdMembersResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
    )

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

    return _build_response(client=client, response=response)

post_groups_group_id_things_thing_id

asyncio(group_id, thing_id, *, client) async

Add thing to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404 | None

PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404

Source code in thingiverse/api/group/post_groups_group_id_things_thing_id.py
async def asyncio(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGroupsGroupIdThingsThingIdResponse200
    | PostGroupsGroupIdThingsThingIdResponse401
    | PostGroupsGroupIdThingsThingIdResponse403
    | PostGroupsGroupIdThingsThingIdResponse404
    | None
):
    """Add thing to group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404
    """

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

asyncio_detailed(group_id, thing_id, *, client) async

Add thing to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404]

Response[PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404]

Source code in thingiverse/api/group/post_groups_group_id_things_thing_id.py
async def asyncio_detailed(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGroupsGroupIdThingsThingIdResponse200
    | PostGroupsGroupIdThingsThingIdResponse401
    | PostGroupsGroupIdThingsThingIdResponse403
    | PostGroupsGroupIdThingsThingIdResponse404
]:
    """Add thing to group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, thing_id, *, client)

Add thing to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404 | None

PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404

Source code in thingiverse/api/group/post_groups_group_id_things_thing_id.py
def sync(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGroupsGroupIdThingsThingIdResponse200
    | PostGroupsGroupIdThingsThingIdResponse401
    | PostGroupsGroupIdThingsThingIdResponse403
    | PostGroupsGroupIdThingsThingIdResponse404
    | None
):
    """Add thing to group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404
    """

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

sync_detailed(group_id, thing_id, *, client)

Add thing to group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
thing_id int

Example: 1004996.

required

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404]

Response[PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404]

Source code in thingiverse/api/group/post_groups_group_id_things_thing_id.py
def sync_detailed(
    group_id: int,
    thing_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGroupsGroupIdThingsThingIdResponse200
    | PostGroupsGroupIdThingsThingIdResponse401
    | PostGroupsGroupIdThingsThingIdResponse403
    | PostGroupsGroupIdThingsThingIdResponse404
]:
    """Add thing to group

    Args:
        group_id (int):  Example: 25.
        thing_id (int):  Example: 1004996.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[PostGroupsGroupIdThingsThingIdResponse200 | PostGroupsGroupIdThingsThingIdResponse401 | PostGroupsGroupIdThingsThingIdResponse403 | PostGroupsGroupIdThingsThingIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        thing_id=thing_id,
    )

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

    return _build_response(client=client, response=response)

post_groups_group_id_update_group_forum_forum_id

asyncio(group_id, forum_id, *, client, body=UNSET) async

Update a certain forum of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
body PostGroupsGroupIdUpdateGroupForumForumIdBody | 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
GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404 | None

GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404

Source code in thingiverse/api/group/post_groups_group_id_update_group_forum_forum_id.py
async def asyncio(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdUpdateGroupForumForumIdBody | Unset = UNSET,
) -> (
    GroupforumSchema
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse401
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse403
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse404
    | None
):
    """Update a certain forum of group

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        body (PostGroupsGroupIdUpdateGroupForumForumIdBody | 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:
        GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404
    """

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

asyncio_detailed(group_id, forum_id, *, client, body=UNSET) async

Update a certain forum of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
body PostGroupsGroupIdUpdateGroupForumForumIdBody | 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[GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404]

Response[GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404]

Source code in thingiverse/api/group/post_groups_group_id_update_group_forum_forum_id.py
async def asyncio_detailed(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdUpdateGroupForumForumIdBody | Unset = UNSET,
) -> Response[
    GroupforumSchema
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse401
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse403
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse404
]:
    """Update a certain forum of group

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        body (PostGroupsGroupIdUpdateGroupForumForumIdBody | 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[GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_id=forum_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(group_id, forum_id, *, client, body=UNSET)

Update a certain forum of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
body PostGroupsGroupIdUpdateGroupForumForumIdBody | 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
GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404 | None

GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404

Source code in thingiverse/api/group/post_groups_group_id_update_group_forum_forum_id.py
def sync(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdUpdateGroupForumForumIdBody | Unset = UNSET,
) -> (
    GroupforumSchema
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse401
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse403
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse404
    | None
):
    """Update a certain forum of group

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        body (PostGroupsGroupIdUpdateGroupForumForumIdBody | 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:
        GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404
    """

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

sync_detailed(group_id, forum_id, *, client, body=UNSET)

Update a certain forum of group

Parameters:

Name Type Description Default
group_id int

Example: 25.

required
forum_id int

Example: 15561.

required
body PostGroupsGroupIdUpdateGroupForumForumIdBody | 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[GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404]

Response[GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404]

Source code in thingiverse/api/group/post_groups_group_id_update_group_forum_forum_id.py
def sync_detailed(
    group_id: int,
    forum_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGroupsGroupIdUpdateGroupForumForumIdBody | Unset = UNSET,
) -> Response[
    GroupforumSchema
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse401
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse403
    | PostGroupsGroupIdUpdateGroupForumForumIdResponse404
]:
    """Update a certain forum of group

    Args:
        group_id (int):  Example: 25.
        forum_id (int):  Example: 15561.
        body (PostGroupsGroupIdUpdateGroupForumForumIdBody | 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[GroupforumSchema | PostGroupsGroupIdUpdateGroupForumForumIdResponse401 | PostGroupsGroupIdUpdateGroupForumForumIdResponse403 | PostGroupsGroupIdUpdateGroupForumForumIdResponse404]
    """

    kwargs = _get_kwargs(
        group_id=group_id,
        forum_id=forum_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)