Skip to content

Group Topic

thingiverse.api.group_topic

Contains endpoint functions for accessing the API

delete_grouptopics_grouptopic_id

asyncio(grouptopic_id, *, client) async

Delete Group Topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int | None

DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGrouptopicsGrouptopicIdResponse401
    | DeleteGrouptopicsGrouptopicIdResponse403
    | DeleteGrouptopicsGrouptopicIdResponse404
    | int
    | None
):
    """Delete Group Topic by id

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int
    """

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

asyncio_detailed(grouptopic_id, *, client) async

Delete Group Topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int]

Response[DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int]

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGrouptopicsGrouptopicIdResponse401
    | DeleteGrouptopicsGrouptopicIdResponse403
    | DeleteGrouptopicsGrouptopicIdResponse404
    | int
]:
    """Delete Group Topic by id

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

Delete Group Topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int | None

DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGrouptopicsGrouptopicIdResponse401
    | DeleteGrouptopicsGrouptopicIdResponse403
    | DeleteGrouptopicsGrouptopicIdResponse404
    | int
    | None
):
    """Delete Group Topic by id

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int
    """

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

sync_detailed(grouptopic_id, *, client)

Delete Group Topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int]

Response[DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int]

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGrouptopicsGrouptopicIdResponse401
    | DeleteGrouptopicsGrouptopicIdResponse403
    | DeleteGrouptopicsGrouptopicIdResponse404
    | int
]:
    """Delete Group Topic by id

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteGrouptopicsGrouptopicIdResponse401 | DeleteGrouptopicsGrouptopicIdResponse403 | DeleteGrouptopicsGrouptopicIdResponse404 | int]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

delete_grouptopics_grouptopic_id_pin

asyncio(grouptopic_id, *, client) async

Unpin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema | None

DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_pin.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGrouptopicsGrouptopicIdPinResponse401
    | DeleteGrouptopicsGrouptopicIdPinResponse403
    | DeleteGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
    | None
):
    """Unpin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema
    """

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

asyncio_detailed(grouptopic_id, *, client) async

Unpin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Response[DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_pin.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGrouptopicsGrouptopicIdPinResponse401
    | DeleteGrouptopicsGrouptopicIdPinResponse403
    | DeleteGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
]:
    """Unpin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

Unpin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema | None

DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_pin.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGrouptopicsGrouptopicIdPinResponse401
    | DeleteGrouptopicsGrouptopicIdPinResponse403
    | DeleteGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
    | None
):
    """Unpin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema
    """

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

sync_detailed(grouptopic_id, *, client)

Unpin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Response[DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_pin.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGrouptopicsGrouptopicIdPinResponse401
    | DeleteGrouptopicsGrouptopicIdPinResponse403
    | DeleteGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
]:
    """Unpin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteGrouptopicsGrouptopicIdPinResponse401 | DeleteGrouptopicsGrouptopicIdPinResponse403 | DeleteGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

delete_grouptopics_grouptopic_id_watch

asyncio(grouptopic_id, *, client) async

Unwatch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema | None

DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_watch.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGrouptopicsGrouptopicIdWatchResponse401
    | DeleteGrouptopicsGrouptopicIdWatchResponse403
    | DeleteGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
    | None
):
    """Unwatch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema
    """

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

asyncio_detailed(grouptopic_id, *, client) async

Unwatch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Response[DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_watch.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGrouptopicsGrouptopicIdWatchResponse401
    | DeleteGrouptopicsGrouptopicIdWatchResponse403
    | DeleteGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
]:
    """Unwatch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

Unwatch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema | None

DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_watch.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteGrouptopicsGrouptopicIdWatchResponse401
    | DeleteGrouptopicsGrouptopicIdWatchResponse403
    | DeleteGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
    | None
):
    """Unwatch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema
    """

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

sync_detailed(grouptopic_id, *, client)

Unwatch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Response[DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/delete_grouptopics_grouptopic_id_watch.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteGrouptopicsGrouptopicIdWatchResponse401
    | DeleteGrouptopicsGrouptopicIdWatchResponse403
    | DeleteGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
]:
    """Unwatch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteGrouptopicsGrouptopicIdWatchResponse401 | DeleteGrouptopicsGrouptopicIdWatchResponse403 | DeleteGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

get_grouptopics_grouptopic_id

asyncio(grouptopic_id, *, client) async

Get a group topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema | None

GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGrouptopicsGrouptopicIdResponse401
    | GetGrouptopicsGrouptopicIdResponse403
    | GetGrouptopicsGrouptopicIdResponse404
    | GrouptopicSchema
    | None
):
    """Get a group topic by id

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema
    """

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

asyncio_detailed(grouptopic_id, *, client) async

Get a group topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema]

Response[GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGrouptopicsGrouptopicIdResponse401
    | GetGrouptopicsGrouptopicIdResponse403
    | GetGrouptopicsGrouptopicIdResponse404
    | GrouptopicSchema
]:
    """Get a group topic by id

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

Get a group topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema | None

GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGrouptopicsGrouptopicIdResponse401
    | GetGrouptopicsGrouptopicIdResponse403
    | GetGrouptopicsGrouptopicIdResponse404
    | GrouptopicSchema
    | None
):
    """Get a group topic by id

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema
    """

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

sync_detailed(grouptopic_id, *, client)

Get a group topic by id

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema]

Response[GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGrouptopicsGrouptopicIdResponse401
    | GetGrouptopicsGrouptopicIdResponse403
    | GetGrouptopicsGrouptopicIdResponse404
    | GrouptopicSchema
]:
    """Get a group topic by id

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[GetGrouptopicsGrouptopicIdResponse401 | GetGrouptopicsGrouptopicIdResponse403 | GetGrouptopicsGrouptopicIdResponse404 | GrouptopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

get_grouptopics_grouptopic_id_comments

asyncio(grouptopic_id, *, client) async

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

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema] | None

GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_comments.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGrouptopicsGrouptopicIdCommentsResponse401
    | GetGrouptopicsGrouptopicIdCommentsResponse403
    | GetGrouptopicsGrouptopicIdCommentsResponse404
    | list[CommentSchema]
    | None
):
    """Get all comments for this topic in a quick pre-threaded view

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]
    """

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

asyncio_detailed(grouptopic_id, *, client) async

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

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]]

Response[GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_comments.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGrouptopicsGrouptopicIdCommentsResponse401
    | GetGrouptopicsGrouptopicIdCommentsResponse403
    | GetGrouptopicsGrouptopicIdCommentsResponse404
    | list[CommentSchema]
]:
    """Get all comments for this topic in a quick pre-threaded view

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

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

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema] | None

GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_comments.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetGrouptopicsGrouptopicIdCommentsResponse401
    | GetGrouptopicsGrouptopicIdCommentsResponse403
    | GetGrouptopicsGrouptopicIdCommentsResponse404
    | list[CommentSchema]
    | None
):
    """Get all comments for this topic in a quick pre-threaded view

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]
    """

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

sync_detailed(grouptopic_id, *, client)

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

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]]

Response[GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_comments.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetGrouptopicsGrouptopicIdCommentsResponse401
    | GetGrouptopicsGrouptopicIdCommentsResponse403
    | GetGrouptopicsGrouptopicIdCommentsResponse404
    | list[CommentSchema]
]:
    """Get all comments for this topic in a quick pre-threaded view

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[GetGrouptopicsGrouptopicIdCommentsResponse401 | GetGrouptopicsGrouptopicIdCommentsResponse403 | GetGrouptopicsGrouptopicIdCommentsResponse404 | list[CommentSchema]]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

get_grouptopics_grouptopic_id_forumtopics_comments

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

Get list topics and comments of a certain forum

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
search str | Unset

Example: 3d.

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
GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404 | None

GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_forumtopics_comments.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    search: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404
    | None
):
    """Get list topics and comments of a certain forum

    Args:
        grouptopic_id (int):  Example: 2.
        search (str | Unset):  Example: 3d.
        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:
        GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404
    """

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

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

Get list topics and comments of a certain forum

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
search str | Unset

Example: 3d.

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[GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404]

Response[GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_forumtopics_comments.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    search: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404
]:
    """Get list topics and comments of a certain forum

    Args:
        grouptopic_id (int):  Example: 2.
        search (str | Unset):  Example: 3d.
        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[GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404]
    """

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

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

    return _build_response(client=client, response=response)

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

Get list topics and comments of a certain forum

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
search str | Unset

Example: 3d.

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
GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404 | None

GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_forumtopics_comments.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    search: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404
    | None
):
    """Get list topics and comments of a certain forum

    Args:
        grouptopic_id (int):  Example: 2.
        search (str | Unset):  Example: 3d.
        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:
        GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404
    """

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

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

Get list topics and comments of a certain forum

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
search str | Unset

Example: 3d.

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[GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404]

Response[GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_forumtopics_comments.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    search: str | Unset = UNSET,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403
    | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404
]:
    """Get list topics and comments of a certain forum

    Args:
        grouptopic_id (int):  Example: 2.
        search (str | Unset):  Example: 3d.
        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[GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse200 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse401 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse403 | GetGrouptopicsGrouptopicIdForumtopicsCommentsResponse404]
    """

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

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

    return _build_response(client=client, response=response)

get_grouptopics_grouptopic_id_root_comments

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

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item] | None

GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_root_comments.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGrouptopicsGrouptopicIdRootCommentsResponse401
    | GetGrouptopicsGrouptopicIdRootCommentsResponse403
    | GetGrouptopicsGrouptopicIdRootCommentsResponse404
    | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]
    | None
):
    """Get an unthreaded paginated list of root comment objects

    Args:
        grouptopic_id (int):  Example: 2.
        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:
        GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]
    """

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

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

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]]

Response[GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_root_comments.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGrouptopicsGrouptopicIdRootCommentsResponse401
    | GetGrouptopicsGrouptopicIdRootCommentsResponse403
    | GetGrouptopicsGrouptopicIdRootCommentsResponse404
    | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]
]:
    """Get an unthreaded paginated list of root comment objects

    Args:
        grouptopic_id (int):  Example: 2.
        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[GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item] | None

GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_root_comments.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetGrouptopicsGrouptopicIdRootCommentsResponse401
    | GetGrouptopicsGrouptopicIdRootCommentsResponse403
    | GetGrouptopicsGrouptopicIdRootCommentsResponse404
    | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]
    | None
):
    """Get an unthreaded paginated list of root comment objects

    Args:
        grouptopic_id (int):  Example: 2.
        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:
        GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]
    """

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

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

Get an unthreaded paginated list of root comment objects

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]]

Response[GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]]

Source code in thingiverse/api/group_topic/get_grouptopics_grouptopic_id_root_comments.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetGrouptopicsGrouptopicIdRootCommentsResponse401
    | GetGrouptopicsGrouptopicIdRootCommentsResponse403
    | GetGrouptopicsGrouptopicIdRootCommentsResponse404
    | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]
]:
    """Get an unthreaded paginated list of root comment objects

    Args:
        grouptopic_id (int):  Example: 2.
        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[GetGrouptopicsGrouptopicIdRootCommentsResponse401 | GetGrouptopicsGrouptopicIdRootCommentsResponse403 | GetGrouptopicsGrouptopicIdRootCommentsResponse404 | list[GetGrouptopicsGrouptopicIdRootCommentsResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

patch_grouptopics_grouptopic_id

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

Update a group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PatchGrouptopicsGrouptopicIdBody | 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
GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404 | None

GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404

Source code in thingiverse/api/group_topic/patch_grouptopics_grouptopic_id.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGrouptopicsGrouptopicIdBody | Unset = UNSET,
) -> (
    GrouptopicSchema
    | PatchGrouptopicsGrouptopicIdResponse401
    | PatchGrouptopicsGrouptopicIdResponse403
    | PatchGrouptopicsGrouptopicIdResponse404
    | None
):
    """Update a group topic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PatchGrouptopicsGrouptopicIdBody | 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:
        GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404
    """

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

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

Update a group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PatchGrouptopicsGrouptopicIdBody | 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[GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404]

Response[GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404]

Source code in thingiverse/api/group_topic/patch_grouptopics_grouptopic_id.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGrouptopicsGrouptopicIdBody | Unset = UNSET,
) -> Response[
    GrouptopicSchema
    | PatchGrouptopicsGrouptopicIdResponse401
    | PatchGrouptopicsGrouptopicIdResponse403
    | PatchGrouptopicsGrouptopicIdResponse404
]:
    """Update a group topic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PatchGrouptopicsGrouptopicIdBody | 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[GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Update a group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PatchGrouptopicsGrouptopicIdBody | 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
GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404 | None

GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404

Source code in thingiverse/api/group_topic/patch_grouptopics_grouptopic_id.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGrouptopicsGrouptopicIdBody | Unset = UNSET,
) -> (
    GrouptopicSchema
    | PatchGrouptopicsGrouptopicIdResponse401
    | PatchGrouptopicsGrouptopicIdResponse403
    | PatchGrouptopicsGrouptopicIdResponse404
    | None
):
    """Update a group topic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PatchGrouptopicsGrouptopicIdBody | 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:
        GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404
    """

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

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

Update a group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PatchGrouptopicsGrouptopicIdBody | 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[GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404]

Response[GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404]

Source code in thingiverse/api/group_topic/patch_grouptopics_grouptopic_id.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PatchGrouptopicsGrouptopicIdBody | Unset = UNSET,
) -> Response[
    GrouptopicSchema
    | PatchGrouptopicsGrouptopicIdResponse401
    | PatchGrouptopicsGrouptopicIdResponse403
    | PatchGrouptopicsGrouptopicIdResponse404
]:
    """Update a group topic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PatchGrouptopicsGrouptopicIdBody | 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[GrouptopicSchema | PatchGrouptopicsGrouptopicIdResponse401 | PatchGrouptopicsGrouptopicIdResponse403 | PatchGrouptopicsGrouptopicIdResponse404]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_grouptopics_grouptopic_id_comments

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

Post a comment

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdCommentsBody | 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
CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404 | None

CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_comments.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdCommentsBody | Unset = UNSET,
) -> (
    CommentSchema
    | PostGrouptopicsGrouptopicIdCommentsResponse401
    | PostGrouptopicsGrouptopicIdCommentsResponse403
    | PostGrouptopicsGrouptopicIdCommentsResponse404
    | None
):
    """Post a comment

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdCommentsBody | 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:
        CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404
    """

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

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

Post a comment

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdCommentsBody | 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[CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404]

Response[CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_comments.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdCommentsBody | Unset = UNSET,
) -> Response[
    CommentSchema
    | PostGrouptopicsGrouptopicIdCommentsResponse401
    | PostGrouptopicsGrouptopicIdCommentsResponse403
    | PostGrouptopicsGrouptopicIdCommentsResponse404
]:
    """Post a comment

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdCommentsBody | 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[CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Post a comment

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdCommentsBody | 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
CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404 | None

CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_comments.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdCommentsBody | Unset = UNSET,
) -> (
    CommentSchema
    | PostGrouptopicsGrouptopicIdCommentsResponse401
    | PostGrouptopicsGrouptopicIdCommentsResponse403
    | PostGrouptopicsGrouptopicIdCommentsResponse404
    | None
):
    """Post a comment

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdCommentsBody | 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:
        CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404
    """

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

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

Post a comment

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdCommentsBody | 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[CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404]

Response[CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_comments.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdCommentsBody | Unset = UNSET,
) -> Response[
    CommentSchema
    | PostGrouptopicsGrouptopicIdCommentsResponse401
    | PostGrouptopicsGrouptopicIdCommentsResponse403
    | PostGrouptopicsGrouptopicIdCommentsResponse404
]:
    """Post a comment

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdCommentsBody | 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[CommentSchema | PostGrouptopicsGrouptopicIdCommentsResponse401 | PostGrouptopicsGrouptopicIdCommentsResponse403 | PostGrouptopicsGrouptopicIdCommentsResponse404]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_grouptopics_grouptopic_id_pin

asyncio(grouptopic_id, *, client) async

Pin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema | None

PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_pin.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGrouptopicsGrouptopicIdPinResponse401
    | PostGrouptopicsGrouptopicIdPinResponse403
    | PostGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
    | None
):
    """Pin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema
    """

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

asyncio_detailed(grouptopic_id, *, client) async

Pin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Response[PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_pin.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGrouptopicsGrouptopicIdPinResponse401
    | PostGrouptopicsGrouptopicIdPinResponse403
    | PostGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
]:
    """Pin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

Pin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema | None

PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_pin.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGrouptopicsGrouptopicIdPinResponse401
    | PostGrouptopicsGrouptopicIdPinResponse403
    | PostGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
    | None
):
    """Pin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema
    """

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

sync_detailed(grouptopic_id, *, client)

Pin the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Response[PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_pin.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGrouptopicsGrouptopicIdPinResponse401
    | PostGrouptopicsGrouptopicIdPinResponse403
    | PostGrouptopicsGrouptopicIdPinResponse404
    | TopicSchema
]:
    """Pin the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[PostGrouptopicsGrouptopicIdPinResponse401 | PostGrouptopicsGrouptopicIdPinResponse403 | PostGrouptopicsGrouptopicIdPinResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

post_grouptopics_grouptopic_id_update

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

Update GroupTopic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdUpdateBody | 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
PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404 | None

PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_update.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdUpdateBody | Unset = UNSET,
) -> (
    PostGrouptopicsGrouptopicIdUpdateResponse200
    | PostGrouptopicsGrouptopicIdUpdateResponse401
    | PostGrouptopicsGrouptopicIdUpdateResponse403
    | PostGrouptopicsGrouptopicIdUpdateResponse404
    | None
):
    """Update GroupTopic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdUpdateBody | 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:
        PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404
    """

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

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

Update GroupTopic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdUpdateBody | 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[PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404]

Response[PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_update.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdUpdateBody | Unset = UNSET,
) -> Response[
    PostGrouptopicsGrouptopicIdUpdateResponse200
    | PostGrouptopicsGrouptopicIdUpdateResponse401
    | PostGrouptopicsGrouptopicIdUpdateResponse403
    | PostGrouptopicsGrouptopicIdUpdateResponse404
]:
    """Update GroupTopic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdUpdateBody | 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[PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Update GroupTopic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdUpdateBody | 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
PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404 | None

PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_update.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdUpdateBody | Unset = UNSET,
) -> (
    PostGrouptopicsGrouptopicIdUpdateResponse200
    | PostGrouptopicsGrouptopicIdUpdateResponse401
    | PostGrouptopicsGrouptopicIdUpdateResponse403
    | PostGrouptopicsGrouptopicIdUpdateResponse404
    | None
):
    """Update GroupTopic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdUpdateBody | 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:
        PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404
    """

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

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

Update GroupTopic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

required
body PostGrouptopicsGrouptopicIdUpdateBody | 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[PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404]

Response[PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_update.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
    body: PostGrouptopicsGrouptopicIdUpdateBody | Unset = UNSET,
) -> Response[
    PostGrouptopicsGrouptopicIdUpdateResponse200
    | PostGrouptopicsGrouptopicIdUpdateResponse401
    | PostGrouptopicsGrouptopicIdUpdateResponse403
    | PostGrouptopicsGrouptopicIdUpdateResponse404
]:
    """Update GroupTopic

    Args:
        grouptopic_id (int):  Example: 2.
        body (PostGrouptopicsGrouptopicIdUpdateBody | 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[PostGrouptopicsGrouptopicIdUpdateResponse200 | PostGrouptopicsGrouptopicIdUpdateResponse401 | PostGrouptopicsGrouptopicIdUpdateResponse403 | PostGrouptopicsGrouptopicIdUpdateResponse404]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_grouptopics_grouptopic_id_watch

asyncio(grouptopic_id, *, client) async

Watch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema | None

PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_watch.py
async def asyncio(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGrouptopicsGrouptopicIdWatchResponse401
    | PostGrouptopicsGrouptopicIdWatchResponse403
    | PostGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
    | None
):
    """Watch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema
    """

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

asyncio_detailed(grouptopic_id, *, client) async

Watch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Response[PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_watch.py
async def asyncio_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGrouptopicsGrouptopicIdWatchResponse401
    | PostGrouptopicsGrouptopicIdWatchResponse403
    | PostGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
]:
    """Watch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)

sync(grouptopic_id, *, client)

Watch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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
PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema | None

PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_watch.py
def sync(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    PostGrouptopicsGrouptopicIdWatchResponse401
    | PostGrouptopicsGrouptopicIdWatchResponse403
    | PostGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
    | None
):
    """Watch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

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

    Returns:
        PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema
    """

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

sync_detailed(grouptopic_id, *, client)

Watch the group topic

Parameters:

Name Type Description Default
grouptopic_id int

Example: 2.

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[PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Response[PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]

Source code in thingiverse/api/group_topic/post_grouptopics_grouptopic_id_watch.py
def sync_detailed(
    grouptopic_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostGrouptopicsGrouptopicIdWatchResponse401
    | PostGrouptopicsGrouptopicIdWatchResponse403
    | PostGrouptopicsGrouptopicIdWatchResponse404
    | TopicSchema
]:
    """Watch the group topic

    Args:
        grouptopic_id (int):  Example: 2.

    Raises:
        errors.UnexpectedStatus: If the server 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[PostGrouptopicsGrouptopicIdWatchResponse401 | PostGrouptopicsGrouptopicIdWatchResponse403 | PostGrouptopicsGrouptopicIdWatchResponse404 | TopicSchema]
    """

    kwargs = _get_kwargs(
        grouptopic_id=grouptopic_id,
    )

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

    return _build_response(client=client, response=response)