---
title: "Create a new comment and attach it to the print."
method: POST
path: "/api/Prints/{printId}/comment"
tags: ["Prints"]
---

# Create a new comment and attach it to the print.

`POST /api/Prints/{printId}/comment`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Prints/{printId}/comment`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

## Path parameters

- `printId` integer, required

## Request body

- PrintLogApiModelsDTOsCommentsAddCommentDto
  - `body` string, nullable

## Response `200`

An OK response with the new comment details if the comment was added successfully.

- PrintLogApiModelsDTOsCommentsCommentDetailDto
  - `id` integer
  - `body` string, nullable
  - `createdDate` string, date-time
  - `createdById` integer
  - `createdBy` PrintLogApiModelsDTOsUserUserSummaryDto
    - `id` integer
    - `profilePicture` string, nullable: URL pointing to the user's profile picture.
    - `coverPicture` string, nullable: URL pointing to the user's cover picture.
    - `displayName` string, nullable
  - `updatedDate` string, date-time
  - `updatedById` integer
  - `updatedBy` PrintLogApiModelsDTOsUserUserSummaryDto
    - `id` integer
    - `profilePicture` string, nullable: URL pointing to the user's profile picture.
    - `coverPicture` string, nullable: URL pointing to the user's cover picture.
    - `displayName` string, nullable

## Other responses

- `400`: Returned if the request contains bad details, or if the print specified does not allow comments.
- `401`: Unauthorized
- `403`: Returned if the user cannot access the print specified.
- `404`: Not Found

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
