Skip to content

Comment

thingiverse.api.comment

Contains endpoint functions for accessing the API

delete_comments_comment_id

asyncio(comment_id, *, client) async

Softdelete a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404 | None

DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404

Source code in thingiverse/api/comment/delete_comments_comment_id.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteCommentsCommentIdResponse200
    | DeleteCommentsCommentIdResponse401
    | DeleteCommentsCommentIdResponse403
    | DeleteCommentsCommentIdResponse404
    | None
):
    """Softdelete a comment

    Args:
        comment_id (int):  Example: 285620.

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

    Returns:
        DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404
    """

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

asyncio_detailed(comment_id, *, client) async

Softdelete a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404]

Response[DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404]

Source code in thingiverse/api/comment/delete_comments_comment_id.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteCommentsCommentIdResponse200
    | DeleteCommentsCommentIdResponse401
    | DeleteCommentsCommentIdResponse403
    | DeleteCommentsCommentIdResponse404
]:
    """Softdelete a comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

sync(comment_id, *, client)

Softdelete a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404 | None

DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404

Source code in thingiverse/api/comment/delete_comments_comment_id.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteCommentsCommentIdResponse200
    | DeleteCommentsCommentIdResponse401
    | DeleteCommentsCommentIdResponse403
    | DeleteCommentsCommentIdResponse404
    | None
):
    """Softdelete a comment

    Args:
        comment_id (int):  Example: 285620.

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

    Returns:
        DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404
    """

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

sync_detailed(comment_id, *, client)

Softdelete a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404]

Response[DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404]

Source code in thingiverse/api/comment/delete_comments_comment_id.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteCommentsCommentIdResponse200
    | DeleteCommentsCommentIdResponse401
    | DeleteCommentsCommentIdResponse403
    | DeleteCommentsCommentIdResponse404
]:
    """Softdelete a comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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[DeleteCommentsCommentIdResponse200 | DeleteCommentsCommentIdResponse401 | DeleteCommentsCommentIdResponse403 | DeleteCommentsCommentIdResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

get_comments

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

Get the latest comments

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema] | None

GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]

Source code in thingiverse/api/comment/get_comments.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCommentsResponse401
    | GetCommentsResponse403
    | GetCommentsResponse404
    | list[CommentSchema]
    | None
):
    """Get the latest comments

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

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

    Returns:
        GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]
    """

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

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

Get the latest comments

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]]

Response[GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]]

Source code in thingiverse/api/comment/get_comments.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]
]:
    """Get the latest comments

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

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

    Returns:
        Response[GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get the latest comments

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema] | None

GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]

Source code in thingiverse/api/comment/get_comments.py
def sync(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCommentsResponse401
    | GetCommentsResponse403
    | GetCommentsResponse404
    | list[CommentSchema]
    | None
):
    """Get the latest comments

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

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

    Returns:
        GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]
    """

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

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

Get the latest comments

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

Raises:

Type Description
UnexpectedStatus

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

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]]

Response[GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]]

Source code in thingiverse/api/comment/get_comments.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]
]:
    """Get the latest comments

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

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

    Returns:
        Response[GetCommentsResponse401 | GetCommentsResponse403 | GetCommentsResponse404 | list[CommentSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_comments_comment_id

asyncio(comment_id, *, client) async

Get a comment by id

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404 | None

CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404

Source code in thingiverse/api/comment/get_comments_comment_id.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CommentSchema
    | GetCommentsCommentIdResponse401
    | GetCommentsCommentIdResponse403
    | GetCommentsCommentIdResponse404
    | None
):
    """Get a comment by id

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404
    """

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

asyncio_detailed(comment_id, *, client) async

Get a comment by id

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404]

Response[CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404]

Source code in thingiverse/api/comment/get_comments_comment_id.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CommentSchema
    | GetCommentsCommentIdResponse401
    | GetCommentsCommentIdResponse403
    | GetCommentsCommentIdResponse404
]:
    """Get a comment by id

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

sync(comment_id, *, client)

Get a comment by id

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404 | None

CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404

Source code in thingiverse/api/comment/get_comments_comment_id.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CommentSchema
    | GetCommentsCommentIdResponse401
    | GetCommentsCommentIdResponse403
    | GetCommentsCommentIdResponse404
    | None
):
    """Get a comment by id

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404
    """

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

sync_detailed(comment_id, *, client)

Get a comment by id

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404]

Response[CommentSchema | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404]

Source code in thingiverse/api/comment/get_comments_comment_id.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CommentSchema
    | GetCommentsCommentIdResponse401
    | GetCommentsCommentIdResponse403
    | GetCommentsCommentIdResponse404
]:
    """Get a comment by id

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | GetCommentsCommentIdResponse401 | GetCommentsCommentIdResponse403 | GetCommentsCommentIdResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

get_comments_comment_id_replies

asyncio(comment_id, *, client) async

Get replies of a certain comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema] | None

GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]

Source code in thingiverse/api/comment/get_comments_comment_id_replies.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCommentsCommentIdRepliesResponse401
    | GetCommentsCommentIdRepliesResponse403
    | GetCommentsCommentIdRepliesResponse404
    | list[CommentSchema]
    | None
):
    """Get replies of a certain comment

    Args:
        comment_id (int):  Example: 285620.

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

    Returns:
        GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]
    """

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

asyncio_detailed(comment_id, *, client) async

Get replies of a certain comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]]

Response[GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]]

Source code in thingiverse/api/comment/get_comments_comment_id_replies.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCommentsCommentIdRepliesResponse401
    | GetCommentsCommentIdRepliesResponse403
    | GetCommentsCommentIdRepliesResponse404
    | list[CommentSchema]
]:
    """Get replies of a certain comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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[GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

sync(comment_id, *, client)

Get replies of a certain comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema] | None

GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]

Source code in thingiverse/api/comment/get_comments_comment_id_replies.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    GetCommentsCommentIdRepliesResponse401
    | GetCommentsCommentIdRepliesResponse403
    | GetCommentsCommentIdRepliesResponse404
    | list[CommentSchema]
    | None
):
    """Get replies of a certain comment

    Args:
        comment_id (int):  Example: 285620.

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

    Returns:
        GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]
    """

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

sync_detailed(comment_id, *, client)

Get replies of a certain comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]]

Response[GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]]

Source code in thingiverse/api/comment/get_comments_comment_id_replies.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCommentsCommentIdRepliesResponse401
    | GetCommentsCommentIdRepliesResponse403
    | GetCommentsCommentIdRepliesResponse404
    | list[CommentSchema]
]:
    """Get replies of a certain comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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[GetCommentsCommentIdRepliesResponse401 | GetCommentsCommentIdRepliesResponse403 | GetCommentsCommentIdRepliesResponse404 | list[CommentSchema]]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

patch_comments_comment_id

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

Update a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404 | None

CommentSchema | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404

Source code in thingiverse/api/comment/patch_comments_comment_id.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: CommentSchema | Unset = UNSET,
) -> (
    CommentSchema
    | PatchCommentsCommentIdResponse401
    | PatchCommentsCommentIdResponse403
    | PatchCommentsCommentIdResponse404
    | None
):
    """Update a comment

    Args:
        comment_id (int):  Example: 285620.
        body (CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404
    """

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

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

Update a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404]

Response[CommentSchema | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404]

Source code in thingiverse/api/comment/patch_comments_comment_id.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: CommentSchema | Unset = UNSET,
) -> Response[
    CommentSchema
    | PatchCommentsCommentIdResponse401
    | PatchCommentsCommentIdResponse403
    | PatchCommentsCommentIdResponse404
]:
    """Update a comment

    Args:
        comment_id (int):  Example: 285620.
        body (CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Update a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404 | None

CommentSchema | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404

Source code in thingiverse/api/comment/patch_comments_comment_id.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: CommentSchema | Unset = UNSET,
) -> (
    CommentSchema
    | PatchCommentsCommentIdResponse401
    | PatchCommentsCommentIdResponse403
    | PatchCommentsCommentIdResponse404
    | None
):
    """Update a comment

    Args:
        comment_id (int):  Example: 285620.
        body (CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404
    """

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

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

Update a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404]

Response[CommentSchema | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404]

Source code in thingiverse/api/comment/patch_comments_comment_id.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: CommentSchema | Unset = UNSET,
) -> Response[
    CommentSchema
    | PatchCommentsCommentIdResponse401
    | PatchCommentsCommentIdResponse403
    | PatchCommentsCommentIdResponse404
]:
    """Update a comment

    Args:
        comment_id (int):  Example: 285620.
        body (CommentSchema | 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 | PatchCommentsCommentIdResponse401 | PatchCommentsCommentIdResponse403 | PatchCommentsCommentIdResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_comments

asyncio(*, client, body=UNSET) async

Reply to a comment

Parameters:

Name Type Description Default
body PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404 | None

CommentSchema | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404

Source code in thingiverse/api/comment/post_comments.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    body: PostCommentsBody | Unset = UNSET,
) -> (
    CommentSchema
    | PostCommentsResponse400
    | PostCommentsResponse401
    | PostCommentsResponse403
    | PostCommentsResponse404
    | None
):
    """Reply to a comment

    Args:
        body (PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404
    """

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

asyncio_detailed(*, client, body=UNSET) async

Reply to a comment

Parameters:

Name Type Description Default
body PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404]

Response[CommentSchema | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404]

Source code in thingiverse/api/comment/post_comments.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    body: PostCommentsBody | Unset = UNSET,
) -> Response[
    CommentSchema
    | PostCommentsResponse400
    | PostCommentsResponse401
    | PostCommentsResponse403
    | PostCommentsResponse404
]:
    """Reply to a comment

    Args:
        body (PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404]
    """

    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)

Reply to a comment

Parameters:

Name Type Description Default
body PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404 | None

CommentSchema | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404

Source code in thingiverse/api/comment/post_comments.py
def sync(
    *,
    client: AuthenticatedClient,
    body: PostCommentsBody | Unset = UNSET,
) -> (
    CommentSchema
    | PostCommentsResponse400
    | PostCommentsResponse401
    | PostCommentsResponse403
    | PostCommentsResponse404
    | None
):
    """Reply to a comment

    Args:
        body (PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404
    """

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

sync_detailed(*, client, body=UNSET)

Reply to a comment

Parameters:

Name Type Description Default
body PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404]

Response[CommentSchema | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404]

Source code in thingiverse/api/comment/post_comments.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    body: PostCommentsBody | Unset = UNSET,
) -> Response[
    CommentSchema
    | PostCommentsResponse400
    | PostCommentsResponse401
    | PostCommentsResponse403
    | PostCommentsResponse404
]:
    """Reply to a comment

    Args:
        body (PostCommentsBody | 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 | PostCommentsResponse400 | PostCommentsResponse401 | PostCommentsResponse403 | PostCommentsResponse404]
    """

    kwargs = _get_kwargs(
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_comments_0_markdown

asyncio(*, client, body=UNSET) async

Convert text to markdown

Parameters:

Name Type Description Default
body PostComments0MarkdownBody | 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
PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str | None

PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str

Source code in thingiverse/api/comment/post_comments_0_markdown.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    body: PostComments0MarkdownBody | Unset = UNSET,
) -> (
    PostComments0MarkdownResponse401
    | PostComments0MarkdownResponse403
    | PostComments0MarkdownResponse404
    | str
    | None
):
    """Convert text to markdown

    Args:
        body (PostComments0MarkdownBody | 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:
        PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str
    """

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

asyncio_detailed(*, client, body=UNSET) async

Convert text to markdown

Parameters:

Name Type Description Default
body PostComments0MarkdownBody | 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[PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str]

Response[PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str]

Source code in thingiverse/api/comment/post_comments_0_markdown.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    body: PostComments0MarkdownBody | Unset = UNSET,
) -> Response[
    PostComments0MarkdownResponse401
    | PostComments0MarkdownResponse403
    | PostComments0MarkdownResponse404
    | str
]:
    """Convert text to markdown

    Args:
        body (PostComments0MarkdownBody | 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[PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str]
    """

    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)

Convert text to markdown

Parameters:

Name Type Description Default
body PostComments0MarkdownBody | 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
PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str | None

PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str

Source code in thingiverse/api/comment/post_comments_0_markdown.py
def sync(
    *,
    client: AuthenticatedClient,
    body: PostComments0MarkdownBody | Unset = UNSET,
) -> (
    PostComments0MarkdownResponse401
    | PostComments0MarkdownResponse403
    | PostComments0MarkdownResponse404
    | str
    | None
):
    """Convert text to markdown

    Args:
        body (PostComments0MarkdownBody | 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:
        PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str
    """

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

sync_detailed(*, client, body=UNSET)

Convert text to markdown

Parameters:

Name Type Description Default
body PostComments0MarkdownBody | 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[PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str]

Response[PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str]

Source code in thingiverse/api/comment/post_comments_0_markdown.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    body: PostComments0MarkdownBody | Unset = UNSET,
) -> Response[
    PostComments0MarkdownResponse401
    | PostComments0MarkdownResponse403
    | PostComments0MarkdownResponse404
    | str
]:
    """Convert text to markdown

    Args:
        body (PostComments0MarkdownBody | 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[PostComments0MarkdownResponse401 | PostComments0MarkdownResponse403 | PostComments0MarkdownResponse404 | str]
    """

    kwargs = _get_kwargs(
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_comments_comment_id_reply

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

Reply to a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404 | None

CommentSchema | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404

Source code in thingiverse/api/comment/post_comments_comment_id_reply.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCommentsCommentIdReplyBody | Unset = UNSET,
) -> (
    CommentSchema
    | PostCommentsCommentIdReplyResponse400
    | PostCommentsCommentIdReplyResponse401
    | PostCommentsCommentIdReplyResponse403
    | PostCommentsCommentIdReplyResponse404
    | None
):
    """Reply to a comment

    Args:
        comment_id (int):  Example: 285620.
        body (PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404
    """

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

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

Reply to a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404]

Response[CommentSchema | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404]

Source code in thingiverse/api/comment/post_comments_comment_id_reply.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCommentsCommentIdReplyBody | Unset = UNSET,
) -> Response[
    CommentSchema
    | PostCommentsCommentIdReplyResponse400
    | PostCommentsCommentIdReplyResponse401
    | PostCommentsCommentIdReplyResponse403
    | PostCommentsCommentIdReplyResponse404
]:
    """Reply to a comment

    Args:
        comment_id (int):  Example: 285620.
        body (PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

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

Reply to a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404 | None

CommentSchema | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404

Source code in thingiverse/api/comment/post_comments_comment_id_reply.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCommentsCommentIdReplyBody | Unset = UNSET,
) -> (
    CommentSchema
    | PostCommentsCommentIdReplyResponse400
    | PostCommentsCommentIdReplyResponse401
    | PostCommentsCommentIdReplyResponse403
    | PostCommentsCommentIdReplyResponse404
    | None
):
    """Reply to a comment

    Args:
        comment_id (int):  Example: 285620.
        body (PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404
    """

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

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

Reply to a comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

required
body PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404]

Response[CommentSchema | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404]

Source code in thingiverse/api/comment/post_comments_comment_id_reply.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
    body: PostCommentsCommentIdReplyBody | Unset = UNSET,
) -> Response[
    CommentSchema
    | PostCommentsCommentIdReplyResponse400
    | PostCommentsCommentIdReplyResponse401
    | PostCommentsCommentIdReplyResponse403
    | PostCommentsCommentIdReplyResponse404
]:
    """Reply to a comment

    Args:
        comment_id (int):  Example: 285620.
        body (PostCommentsCommentIdReplyBody | 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 | PostCommentsCommentIdReplyResponse400 | PostCommentsCommentIdReplyResponse401 | PostCommentsCommentIdReplyResponse403 | PostCommentsCommentIdReplyResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_comments_comment_id_restore

asyncio(comment_id, *, client) async

Restore a deleted comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404 | None

CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404

Source code in thingiverse/api/comment/post_comments_comment_id_restore.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CommentSchema
    | PostCommentsCommentIdRestoreResponse401
    | PostCommentsCommentIdRestoreResponse403
    | PostCommentsCommentIdRestoreResponse404
    | None
):
    """Restore a deleted comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404
    """

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

asyncio_detailed(comment_id, *, client) async

Restore a deleted comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404]

Response[CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404]

Source code in thingiverse/api/comment/post_comments_comment_id_restore.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CommentSchema
    | PostCommentsCommentIdRestoreResponse401
    | PostCommentsCommentIdRestoreResponse403
    | PostCommentsCommentIdRestoreResponse404
]:
    """Restore a deleted comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

sync(comment_id, *, client)

Restore a deleted comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404 | None

CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404

Source code in thingiverse/api/comment/post_comments_comment_id_restore.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CommentSchema
    | PostCommentsCommentIdRestoreResponse401
    | PostCommentsCommentIdRestoreResponse403
    | PostCommentsCommentIdRestoreResponse404
    | None
):
    """Restore a deleted comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404
    """

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

sync_detailed(comment_id, *, client)

Restore a deleted comment

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404]

Response[CommentSchema | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404]

Source code in thingiverse/api/comment/post_comments_comment_id_restore.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CommentSchema
    | PostCommentsCommentIdRestoreResponse401
    | PostCommentsCommentIdRestoreResponse403
    | PostCommentsCommentIdRestoreResponse404
]:
    """Restore a deleted comment

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdRestoreResponse401 | PostCommentsCommentIdRestoreResponse403 | PostCommentsCommentIdRestoreResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

post_comments_comment_id_spam

asyncio(comment_id, *, client) async

Mark comment as a spam

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404 | None

CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404

Source code in thingiverse/api/comment/post_comments_comment_id_spam.py
async def asyncio(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CommentSchema
    | PostCommentsCommentIdSpamResponse401
    | PostCommentsCommentIdSpamResponse403
    | PostCommentsCommentIdSpamResponse404
    | None
):
    """Mark comment as a spam

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404
    """

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

asyncio_detailed(comment_id, *, client) async

Mark comment as a spam

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404]

Response[CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404]

Source code in thingiverse/api/comment/post_comments_comment_id_spam.py
async def asyncio_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CommentSchema
    | PostCommentsCommentIdSpamResponse401
    | PostCommentsCommentIdSpamResponse403
    | PostCommentsCommentIdSpamResponse404
]:
    """Mark comment as a spam

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)

sync(comment_id, *, client)

Mark comment as a spam

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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
CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404 | None

CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404

Source code in thingiverse/api/comment/post_comments_comment_id_spam.py
def sync(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> (
    CommentSchema
    | PostCommentsCommentIdSpamResponse401
    | PostCommentsCommentIdSpamResponse403
    | PostCommentsCommentIdSpamResponse404
    | None
):
    """Mark comment as a spam

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404
    """

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

sync_detailed(comment_id, *, client)

Mark comment as a spam

Parameters:

Name Type Description Default
comment_id int

Example: 285620.

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[CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404]

Response[CommentSchema | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404]

Source code in thingiverse/api/comment/post_comments_comment_id_spam.py
def sync_detailed(
    comment_id: int,
    *,
    client: AuthenticatedClient,
) -> Response[
    CommentSchema
    | PostCommentsCommentIdSpamResponse401
    | PostCommentsCommentIdSpamResponse403
    | PostCommentsCommentIdSpamResponse404
]:
    """Mark comment as a spam

    Args:
        comment_id (int):  Example: 285620.

    Raises:
        errors.UnexpectedStatus: If the server 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 | PostCommentsCommentIdSpamResponse401 | PostCommentsCommentIdSpamResponse403 | PostCommentsCommentIdSpamResponse404]
    """

    kwargs = _get_kwargs(
        comment_id=comment_id,
    )

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

    return _build_response(client=client, response=response)