{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "The server has encountered a situation it does not know how to handle"
}
}
Tasks
Create a workspace plan task comment
Add a comment to a workspace plan task. The comment appears in the task’s comment thread and notifies the thread participants by email, the same as a comment added in Dock.
To attach files, upload each one first with Create a file (PUT the bytes to the returned upload URL), then pass the file IDs in fileIds (up to 5). Supported file types are listed on Create a file.
The comment is authored by the API key’s user unless userId or userEmail is provided. When both are provided, userId is used. An email that does not belong to an existing user creates a client user
Select the comment properties to return. Comments return only id and object unless other properties are requested. Request author.<property> (for example author.email) to include the author, and files.<property> (for example files.downloadUrl) to include the attached files; both nested objects always carry their id, object and url
Comment text as HTML rich text, the same format body is returned in. Supports paragraphs (<p>, <br>), <strong>/<b>, <em>/<i>, <u>, text color (style="color: …"), links and <ul>/<ol> lists. Other blocks such as tables and code are kept as plain paragraphs. Content outside a <p> (for example Asana's <body>One\nTwo</body> or plain text) is split into one paragraph per line, and blank lines are kept. Inside a <p>, newlines are ordinary whitespace. Required unless fileIds is provided
Maximum string length: 100000
Example:
"<p>Uploaded the <strong>signed</strong> contract</p><ul><li>Pages 1–3 initialed</li></ul>"
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Dock","colors":{"primary":"#4058FF","light":"#4984EB","dark":"#4058FF"},"favicon":"https://mintcdn.com/docklabsinc/pUYB1Rr4_wf6-EkO/favicon.svg?fit=max\u0026auto=format\u0026n=pUYB1Rr4_wf6-EkO\u0026q=85\u0026s=3834c2cccaa90659d26b91bd3aec0acf","logo":{"light":"https://mintcdn.com/docklabsinc/pUYB1Rr4_wf6-EkO/logo/light.svg?fit=max\u0026auto=format\u0026n=pUYB1Rr4_wf6-EkO\u0026q=85\u0026s=8d3b9704bcec3086906fe18017582e75","dark":"https://mintcdn.com/docklabsinc/pUYB1Rr4_wf6-EkO/logo/dark.svg?fit=max\u0026auto=format\u0026n=pUYB1Rr4_wf6-EkO\u0026q=85\u0026s=8b39fd5e516073e4e2b131c298a28cc0"},"api":{"openapi":"api-reference/openapi.json"},"background":{"decoration":"gradient"},"footer":{"socials":{"x":"https://x.com/dock_us","linkedin":"https://www.linkedin.com/company/dock-us"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"docklabsinc","hasAudioNarration":false,"actualSubdomain":"docklabsinc","customDomains":["developers.dock.us"],"gitSource":{"type":"github","owner":"dock-hq","repo":"dock","deployBranch":"production","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af557e163cdb4fa1d2f3653","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Documentation","count":94},{"language":"default","tag":"Workspaces","count":57},{"language":"default","tag":"Library","count":12},{"language":"default","tag":"Webhooks","count":12},{"language":"default","tag":"Clients","count":9},{"language":"default","tag":"Tasks","count":8},{"language":"default","tag":"Learning","count":7},{"language":"default","tag":"Users","count":7},{"language":"default","tag":"API Reference","count":7},{"language":"default","tag":"Assets","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment","slug":"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment","pageMetadata":{"title":"Create a workspace plan task comment","openapi":"post /workspace-plan-tasks/{id}/comments","og:title":"Create a workspace plan task comment with the Dock API - API Reference","description":"Add a comment to a workspace plan task. The comment appears in the task's comment thread and notifies the thread participants by email, the same as a comment added in Dock.\n\nTo attach files, upload each one first with [Create a file](/api-reference/endpoint/files/create-a-file) (PUT the bytes to the returned upload URL), then pass the file IDs in `fileIds` (up to 5). Supported file types are listed on Create a file.\n\nThe comment is authored by the API key's user unless `userId` or `userEmail` is provided. When both are provided, `userId` is used. An email that does not belong to an existing user creates a client user","href":"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Add a comment to a workspace plan task. The comment appears in the task’s comment thread and notifies the thread participants by email, the same as a comment added in Dock.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To attach files, upload each one first with \", _jsx(_components.a, {\n href: \"/api-reference/endpoint/files/create-a-file\",\n children: \"Create a file\"\n }), \" (PUT the bytes to the returned upload URL), then pass the file IDs in \", _jsx(_components.code, {\n children: \"fileIds\"\n }), \" (up to 5). Supported file types are listed on Create a file.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The comment is authored by the API key’s user unless \", _jsx(_components.code, {\n children: \"userId\"\n }), \" or \", _jsx(_components.code, {\n children: \"userEmail\"\n }), \" is provided. When both are provided, \", _jsx(_components.code, {\n children: \"userId\"\n }), \" is used. An email that does not belong to an existing user creates a client user\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const RateLimit=({perMinute=120})=>{const _components={a:`a`,..._provideComponents()},{Info}=_components;if(!Info)_missingMdxReference(`Info`,true);return _jsxs(Info,{children:[`This endpoint is rate limited to `,_jsxs(`strong`,{children:[perMinute,` requests per minute`]}),` per company. See `,_jsx(_components.a,{href:`/api-reference/rate-limits`,children:`Rate limits`}),` for details.`]})};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`RateLimit`,children:_jsx(RateLimit,{})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{RateLimit,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a workspace plan task comment","openapi":"post /workspace-plan-tasks/{id}/comments","og:title":"Create a workspace plan task comment with the Dock API - API Reference","description":"Add a comment to a workspace plan task. The comment appears in the task's comment thread and notifies the thread participants by email, the same as a comment added in Dock.\n\nTo attach files, upload each one first with [Create a file](/api-reference/endpoint/files/create-a-file) (PUT the bytes to the returned upload URL), then pass the file IDs in `fileIds` (up to 5). Supported file types are listed on Create a file.\n\nThe comment is authored by the API key's user unless `userId` or `userEmail` is provided. When both are provided, `userId` is used. An email that does not belong to an existing user creates a client user","href":"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[27,38,""],[126,516,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Add a comment to a workspace plan task. The comment appears in the task's comment thread and notifies the thread participants by email, the same as a comment added in Dock.\n\nTo attach files, upload each one first with [Create a file](/api-reference/endpoint/files/create-a-file) (PUT the bytes to the returned upload URL), then pass the file IDs in `fileIds` (up to 5). Supported file types are listed on Create a file.\n\nThe comment is authored by the API key's user unless `userId` or `userEmail` is provided. When both are provided, `userId` is used. An email that does not belong to an existing user creates a client user","tags":["Workspace plan tasks"],"parameters":["0f965858-f908-4551-a23c-7c4a5aa504c4","4f02a6ff-6716-43ad-b9fd-14736ebfd74f"],"requestBody":"7c56dd97-ca59-4e52-9b04-3e088e9715c4","responses":{"201":"a1365d57-1f3d-40de-8eb9-d36b1efe233e","400":"d534d9c8-89a1-44c5-bd57-68ebe73d8c84","401":"eef98dea-4b56-4295-8775-bd30be9ee462","403":"ba8aec08-a9b6-4643-8db2-257a837759a7","404":"5c3e4d06-1581-4207-9217-50b257c24c6d","429":"6a225967-5bdd-4cce-a825-abf4b19f080f","500":"30a799ca-a74c-4f06-a70f-03dc2e420840"},"method":"post","type":"path","servers":["c55415d5-f416-4bba-a736-32deabe53fe8"],"security":["9f6d0c1a-fd03-4cea-8c0f-f40ae485abf3"],"path":"/workspace-plan-tasks/{id}/comments","baseUrlOptions":["https://api.dock.us/{version}"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0f965858-f908-4551-a23c-7c4a5aa504c4":{"name":"id","in":"path","example":"RiHO4e0Ju3DS","required":true,"description":"Unique identifier","schema":{"type":"string","example":"RiHO4e0Ju3DS","isRequired":true,"description":"Unique identifier","uniqueKey":"","typeLabel":"string"}},"4f02a6ff-6716-43ad-b9fd-14736ebfd74f":{"name":"properties","in":"query","description":"Select the comment properties to return. Comments return only `id` and `object` unless other properties are requested. Request `author.\u003cproperty>` (for example `author.email`) to include the author, and `files.\u003cproperty>` (for example `files.downloadUrl`) to include the attached files; both nested objects always carry their `id`, `object` and `url`","schema":{"type":"array","items":{"type":"string","enum":["taskId","body","author.createdAt","author.updatedAt","author.firstName","author.lastName","author.avatar","author.email","author.name","files.name","files.thumbnail","files.size","files.downloadUrl","files.expiresAt","files.uploadStatus","files.mimeType","createdAt","updatedAt","id","object","author.id","author.object","author.url","files.id","files.object","files.url"],"uniqueKey":"items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Select the comment properties to return. Comments return only `id` and `object` unless other properties are requested. Request `author.\u003cproperty>` (for example `author.email`) to include the author, and `files.\u003cproperty>` (for example `files.downloadUrl`) to include the attached files; both nested objects always carry their `id`, `object` and `url`","uniqueKey":"","typeLabel":"enum\u003cstring>[]"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":100000,"description":"Comment text as HTML rich text, the same format `body` is returned in. Supports paragraphs (`\u003cp>`, `\u003cbr>`), `\u003cstrong>`/`\u003cb>`, `\u003cem>`/`\u003ci>`, `\u003cu>`, text color (`style=\"color: …\"`), links and `\u003cul>`/`\u003col>` lists. Other blocks such as tables and code are kept as plain paragraphs. Content outside a `\u003cp>` (for example Asana's `\u003cbody>One\\nTwo\u003c/body>` or plain text) is split into one paragraph per line, and blank lines are kept. Inside a `\u003cp>`, newlines are ordinary whitespace. Required unless `fileIds` is provided","example":"\u003cp>Uploaded the \u003cstrong>signed\u003c/strong> contract\u003c/p>\u003cul>\u003cli>Pages 1–3 initialed\u003c/li>\u003c/ul>","uniqueKey":"body","typeLabel":"string"},"fileIds":{"type":"array","maxItems":5,"uniqueItems":true,"description":"IDs of files uploaded with Create a file to attach to the comment","items":{"type":"string","example":"RiHO4e0Ju3DS","uniqueKey":"fileIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"fileIds","typeLabel":"string[]"},"userId":{"type":"string","description":"ID of the user to author the comment as. Takes precedence over `userEmail`","example":"RiHO4e0Ju3DS","uniqueKey":"userId","typeLabel":"string"},"userEmail":{"type":"string","format":"email","description":"Email of the user to author the comment as. Creates a client user when no user has this email","example":"jane@acme.com","uniqueKey":"userEmail","typeLabel":"string\u003cemail>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"body":"\u003cp>Uploaded the \u003cstrong>signed\u003c/strong> contract\u003c/p>\u003cul>\u003cli>Pages 1–3 initialed\u003c/li>\u003c/ul>","fileIds":["RiHO4e0Ju3DS"],"userId":"RiHO4e0Ju3DS","userEmail":"jane@acme.com"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a1365d57-1f3d-40de-8eb9-d36b1efe233e":{"description":"The created workspace plan task comment","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"workspacePlanTaskComment":{"type":"object","properties":{"id":{"type":"string","description":"Id of the object","example":"RiHO4e0Ju3DS","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.id","typeLabel":"string"},"updatedAt":{"type":"string","format":"date-time","description":"Last updated date","example":"2021-01-01T00:00:00.000Z","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.updatedAt","typeLabel":"string\u003cdate-time>"},"createdAt":{"type":"string","format":"date-time","description":"Created at date","example":"2021-01-01T00:00:00.000Z","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.createdAt","typeLabel":"string\u003cdate-time>"},"object":{"type":"string","description":"Type of the object","enum":["workspace-plan-task-comment"],"example":"workspace-plan-task-comment","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.object","typeLabel":"enum\u003cstring>"},"taskId":{"type":"string","description":"ID of the workspace plan task the comment belongs to","example":"RiHO4e0Ju3DS","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.taskId","typeLabel":"string"},"body":{"type":"string","description":"Comment text as HTML rich text (the same format as `richText` custom field values): paragraphs, bold, italic, underline, text color, links and bulleted/numbered lists. Mentions render as `@Name`. Empty for a comment that only has files","example":"\u003cp>Uploaded the \u003cspan style=\"font-weight:700\">signed\u003c/span> contract @Jane Doe\u003c/p>","uniqueKey":"data.workspacePlanTaskComment.body","typeLabel":"string"},"author":{"oneOf":[{"type":"object","description":"User who wrote the comment, as a [user](/api-reference/endpoint/users/retrieve-a-user) object. Requested with `author.\u003cproperty>`. `null` for comments synced from a connected ticketing integration","properties":{"id":{"type":"string","description":"Id of the object","example":"RiHO4e0Ju3DS","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.id","typeLabel":"string"},"updatedAt":{"type":"string","format":"date-time","description":"Last updated date","example":"2021-01-01T00:00:00.000Z","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"},"createdAt":{"type":"string","format":"date-time","description":"Created at date","example":"2021-01-01T00:00:00.000Z","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"object":{"type":"string","description":"Type of the object","enum":["user"],"example":"user","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.object","typeLabel":"enum\u003cstring>"},"url":{"type":"string","example":"https://api.dock.us/v1/users/RiHO4e0Ju3DS","description":"URL to the resource","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.url","typeLabel":"string"},"firstName":{"oneOf":[{"type":"string","description":"First name of the user","example":"John","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.firstName.oneOf.0","typeLabel":"string"},{"type":"null","description":"First name of the user","example":"John","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"type":"string","description":"Last name of the user","example":"Doe","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.lastName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Last name of the user","example":"Doe","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.lastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.lastName","typeLabel":"string | null"},"avatar":{"oneOf":[{"type":"string","format":"uri","description":"Avatar of the user","example":"https://dock.us/avatar.png","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.avatar.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Avatar of the user","example":"https://dock.us/avatar.png","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.avatar.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.avatar","typeLabel":"string\u003curi> | null"},"email":{"type":"string","description":"Email of the user","example":"john.doe@example.com","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.email","typeLabel":"string"},"name":{"type":"string","description":"Name of the user","example":"John Doe","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0.name","typeLabel":"string"}},"uniqueKey":"data.workspacePlanTaskComment.author.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.workspacePlanTaskComment.author.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.author","typeLabel":"object | null"},"files":{"type":"array","description":"Files attached to the comment, as the same file objects returned by Retrieve a file. Requested with `files.\u003cproperty>`: each file has `id`, `object` and `url` (the file's API URL) plus the requested properties, such as `downloadUrl`. File ids passed in `fileIds` come back here unchanged. Download links expire; read the comment again or retrieve the file for a fresh link","readOnly":true,"items":{"type":"object","properties":{"id":{"type":"string","description":"Id of the object","example":"RiHO4e0Ju3DS","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].id","typeLabel":"string"},"updatedAt":{"type":"string","format":"date-time","description":"Last updated date","example":"2021-01-01T00:00:00.000Z","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"createdAt":{"type":"string","format":"date-time","description":"Created at date","example":"2021-01-01T00:00:00.000Z","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"object":{"type":"string","description":"Type of the object","enum":["file"],"example":"file","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"Name of the file","example":"contract.pdf","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the file","example":"contract.pdf","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].name","typeLabel":"string | null"},"thumbnail":{"oneOf":[{"type":"string","description":"Thumbnail URL for the file when available","example":"https://storage.googleapis.com/dock-production-private/thumbnails/contract.png","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].thumbnail.oneOf.0","typeLabel":"string"},{"type":"null","description":"Thumbnail URL for the file when available","example":"https://storage.googleapis.com/dock-production-private/thumbnails/contract.png","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].thumbnail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].thumbnail","typeLabel":"string | null"},"size":{"oneOf":[{"type":"integer","description":"File size in bytes","example":24576,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].size.oneOf.0","typeLabel":"integer"},{"type":"null","description":"File size in bytes","example":24576,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].size.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].size","typeLabel":"integer | null"},"url":{"type":"string","description":"URL to the resource","example":"https://api.dock.us/v1/files/RiHO4e0Ju3DS","readOnly":true,"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].url","typeLabel":"string"},"downloadUrl":{"oneOf":[{"type":"string","description":"Download link for the file's contents. Private files get a presigned link valid until `expiresAt`; retrieve the file again for a fresh link instead of storing it. `null` until the upload has completed","example":"https://storage.googleapis.com/dock-production-private/signed-url","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].downloadUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"Download link for the file's contents. Private files get a presigned link valid until `expiresAt`; retrieve the file again for a fresh link instead of storing it. `null` until the upload has completed","example":"https://storage.googleapis.com/dock-production-private/signed-url","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].downloadUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].downloadUrl","typeLabel":"string | null"},"expiresAt":{"oneOf":[{"type":"string","format":"date-time","description":"When `downloadUrl` expires. `null` for links that do not expire","example":"2026-06-12T12:00:00.000Z","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When `downloadUrl` expires. `null` for links that do not expire","example":"2026-06-12T12:00:00.000Z","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].expiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].expiresAt","typeLabel":"string\u003cdate-time> | null"},"uploadStatus":{"oneOf":[{"type":"string","description":"Upload/processing state of the file. Files created via POST /files stay `in_progress` until their bytes are uploaded and an asset is created from them; converted office files stay `in_progress` until conversion completes.","enum":["success","in_progress","failed"],"example":"success","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].uploadStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Upload/processing state of the file. Files created via POST /files stay `in_progress` until their bytes are uploaded and an asset is created from them; converted office files stay `in_progress` until conversion completes.","enum":["success","in_progress","failed"],"example":"success","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].uploadStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].uploadStatus","typeLabel":"enum\u003cstring> | null"},"mimeType":{"oneOf":[{"type":"string","description":"MIME type of the file","example":"application/pdf","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].mimeType.oneOf.0","typeLabel":"string"},{"type":"null","description":"MIME type of the file","example":"application/pdf","uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].mimeType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX].mimeType","typeLabel":"string | null"}},"uniqueKey":"data.workspacePlanTaskComment.files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.workspacePlanTaskComment.files","typeLabel":"object[]"}},"uniqueKey":"data.workspacePlanTaskComment","typeLabel":"object"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"workspacePlanTaskComment":{"id":"RiHO4e0Ju3DS","updatedAt":"2021-01-01T00:00:00.000Z","createdAt":"2021-01-01T00:00:00.000Z","object":"workspace-plan-task-comment","taskId":"RiHO4e0Ju3DS","body":"\u003cp>Uploaded the \u003cspan style=\"font-weight:700\">signed\u003c/span> contract @Jane Doe\u003c/p>","author":{"id":"RiHO4e0Ju3DS","updatedAt":"2021-01-01T00:00:00.000Z","createdAt":"2021-01-01T00:00:00.000Z","object":"user","url":"https://api.dock.us/v1/users/RiHO4e0Ju3DS","firstName":"John","lastName":"Doe","avatar":"https://dock.us/avatar.png","email":"john.doe@example.com","name":"John Doe"},"files":[{"id":"RiHO4e0Ju3DS","updatedAt":"2021-01-01T00:00:00.000Z","createdAt":"2021-01-01T00:00:00.000Z","object":"file","name":"contract.pdf","thumbnail":"https://storage.googleapis.com/dock-production-private/thumbnails/contract.png","size":24576,"url":"https://api.dock.us/v1/files/RiHO4e0Ju3DS","downloadUrl":"https://storage.googleapis.com/dock-production-private/signed-url","expiresAt":"2026-06-12T12:00:00.000Z","uploadStatus":"success","mimeType":"application/pdf"}]}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d534d9c8-89a1-44c5-bd57-68ebe73d8c84":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST"],"description":"A short code indicating the error code returned","example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human readable explanation of what went wrong","example":"The request could not be understood or was missing required parameters","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"The request could not be understood or was missing required parameters"}}}},"exampleType":"generated"}},"exampleType":"generated"},"eef98dea-4b56-4295-8775-bd30be9ee462":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED"],"description":"A short code indicating the error code returned","example":"UNAUTHORIZED","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human readable explanation of what went wrong","example":"Access denied. You are not authorized to access this resource","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"Access denied. You are not authorized to access this resource"}}}},"exampleType":"generated"}},"exampleType":"generated"},"ba8aec08-a9b6-4643-8db2-257a837759a7":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN"],"description":"A short code indicating the error code returned","example":"FORBIDDEN","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human readable explanation of what went wrong","example":"Access to this resource is restricted","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"Access to this resource is restricted"}}}},"exampleType":"generated"}},"exampleType":"generated"},"5c3e4d06-1581-4207-9217-50b257c24c6d":{"description":"The server cannot find the requested resource","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"],"description":"A short code indicating the error code returned","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human readable explanation of what went wrong","example":"The requested resource could not be found","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"The requested resource could not be found"}}}},"exampleType":"generated"}},"exampleType":"generated"},"6a225967-5bdd-4cce-a825-abf4b19f080f":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMIT_EXCEEDED"],"description":"A short code indicating the error code returned","example":"RATE_LIMIT_EXCEEDED","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human readable explanation of what went wrong","example":"Rate limit exceeded. Please try again later","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded. Please try again later"}}}},"exampleType":"generated"}},"exampleType":"generated"},"30a799ca-a74c-4f06-a70f-03dc2e420840":{"description":"The server has encountered a situation it does not know how to handle","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL_SERVER_ERROR"],"description":"A short code indicating the error code returned","example":"INTERNAL_SERVER_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human readable explanation of what went wrong","example":"The server has encountered a situation it does not know how to handle","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INTERNAL_SERVER_ERROR","message":"The server has encountered a situation it does not know how to handle"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"9f6d0c1a-fd03-4cea-8c0f-f40ae485abf3":{"bearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"c55415d5-f416-4bba-a736-32deabe53fe8":{"url":"https://api.dock.us/{version}","description":"Production server","variables":{"version":{"default":"v1","enum":["v1"]}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"docklabsinc","siteName":"Dock","title":"Create a workspace plan task comment with the Dock API - API Reference","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-06T14:17:27.406Z","originalFileLocation":"api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add a comment to a workspace plan task. The comment appears in the task\u0026#x27;s comment thread and notifies the thread participants by email, the same as a comment added in Dock. To attach files, upload each one first with Create a file (PUT the bytes to the returned upload URL), then pass the file IDs in fileIds (up to 5). Supported file types are listed on Create a file. The comment is authored by the API key\u0026#x27;s user unless userId or userEmail is provided. When both are provided, userId is used. An email that does not belong to an existing user creates a client user\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dock\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a workspace plan task comment with the Dock API - API Reference\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a comment to a workspace plan task. The comment appears in the task\u0026#x27;s comment thread and notifies the thread participants by email, the same as a comment added in Dock. To attach files, upload each one first with Create a file (PUT the bytes to the returned upload URL), then pass the file IDs in fileIds (up to 5). Supported file types are listed on Create a file. The comment is authored by the API key\u0026#x27;s user unless userId or userEmail is provided. When both are provided, userId is used. An email that does not belong to an existing user creates a client user\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dock\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docklabsinc.mintlify.site/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Create+a+workspace+plan+task+comment\u0026amp;description=Add+a+comment+to+a+workspace+plan+task.+The+comment+appears+in+the+task%27s+comment+thread+and+notifies+the+thread+participants+by+email%2C+the+same+as+a+comment+ad\u0026amp;theme=6db68f2e3828f21717cdc0bf\u0026amp;signature=780b6168bbd5365656c92f21da0db2d23b48dba7309872ddd45fdb33b8361b88\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a workspace plan task comment with the Dock API - API Reference\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a comment to a workspace plan task. The comment appears in the task\u0026#x27;s comment thread and notifies the thread participants by email, the same as a comment added in Dock. To attach files, upload each one first with Create a file (PUT the bytes to the returned upload URL), then pass the file IDs in fileIds (up to 5). Supported file types are listed on Create a file. The comment is authored by the API key\u0026#x27;s user unless userId or userEmail is provided. When both are provided, userId is used. An email that does not belong to an existing user creates a client user\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docklabsinc.mintlify.site/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Create+a+workspace+plan+task+comment\u0026amp;description=Add+a+comment+to+a+workspace+plan+task.+The+comment+appears+in+the+task%27s+comment+thread+and+notifies+the+thread+participants+by+email%2C+the+same+as+a+comment+ad\u0026amp;theme=6db68f2e3828f21717cdc0bf\u0026amp;signature=780b6168bbd5365656c92f21da0db2d23b48dba7309872ddd45fdb33b8361b88\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/docklabsinc/3Zgmq5f-wF0-SYL9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dock\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4058FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.dock.us/#organization\",\"name\":\"Dock\",\"url\":\"https://developers.dock.us\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/docklabsinc/pUYB1Rr4_wf6-EkO/logo/light.svg?fit=max\u0026auto=format\u0026n=pUYB1Rr4_wf6-EkO\u0026q=85\u0026s=8d3b9704bcec3086906fe18017582e75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.dock.us#website\",\"name\":\"Dock\",\"url\":\"https://developers.dock.us\",\"publisher\":{\"@id\":\"https://developers.dock.us/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment#webpage\",\"url\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment\",\"name\":\"Create a workspace plan task comment\",\"description\":\"Add a comment to a workspace plan task. The comment appears in the task's comment thread and notifies the thread participants by email, the same as a comment added in Dock. To attach files, upload each one first with Create a file (PUT the bytes to the returned upload URL), then pass the file IDs in fileIds (up to 5). Supported file types are listed on Create a file. The comment is authored by the API key's user unless userId or userEmail is provided. When both are provided, userId is used. An email that does not belong to an existing user creates a client user\",\"dateModified\":\"2026-10-06T14:17:27.406Z\",\"isPartOf\":{\"@id\":\"https://developers.dock.us#website\"},\"breadcrumb\":{\"@id\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Workspaces\",\"item\":\"https://developers.dock.us/api-reference/endpoint/workspaces/retrieve-a-list-of-workspaces\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tasks\",\"item\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a workspace plan task comment\",\"item\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment#apireference\",\"headline\":\"Create a workspace plan task comment\",\"name\":\"Create a workspace plan task comment\",\"description\":\"Add a comment to a workspace plan task. The comment appears in the task's comment thread and notifies the thread participants by email, the same as a comment added in Dock. To attach files, upload each one first with Create a file (PUT the bytes to the returned upload URL), then pass the file IDs in fileIds (up to 5). Supported file types are listed on Create a file. The comment is authored by the API key's user unless userId or userEmail is provided. When both are provided, userId is used. An email that does not belong to an existing user creates a client user\",\"url\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment\",\"mainEntityOfPage\":{\"@id\":\"https://developers.dock.us/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment#webpage\"},\"dateModified\":\"2026-10-06T14:17:27.406Z\",\"publisher\":{\"@id\":\"https://developers.dock.us/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.dock.us#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dock\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dock\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment.md","siteName":"Dock","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Dock","icon":"rocket","href":"/introduction"},{"title":"Data model","icon":"database","href":"/data-model"},{"title":"Dock MCP","icon":"brain","href":"/dock-mcp/dock-mcp"}]},{"group":"API Reference","pages":[{"title":"Introduction","icon":"book","href":"/api-reference/introduction"},{"title":"API Keys","icon":"key","href":"/api-reference/tokens"},{"title":"Rate limits","icon":"clock","href":"/api-reference/rate-limits"},{"title":"Pagination","icon":"list-ol","href":"/api-reference/pagination"},{"title":"Workspace analytics","icon":"chart-line","href":"/api-reference/workspace-analytics"},{"title":"Uploading files","icon":"file","href":"/api-reference/uploading-files"},{"title":"Errors","icon":"bug","href":"/api-reference/errors"}]},{"group":"Clients","pages":[{"group":"Accounts","pages":[{"title":"Retrieve a list of accounts","openapi":"get /accounts","href":"/api-reference/endpoint/accounts/retrieve-a-list-of-accounts"},{"title":"Create an account","openapi":"post /accounts","href":"/api-reference/endpoint/accounts/create-an-account"},{"title":"Retrieve an account","openapi":"get /accounts/{id}","href":"/api-reference/endpoint/accounts/retrieve-an-account"},{"title":"Update an account","openapi":"patch /accounts/{id}","href":"/api-reference/endpoint/accounts/update-an-account"}]},{"group":"Deals","pages":[{"title":"Retrieve a list of deals","openapi":"get /deals","href":"/api-reference/endpoint/deals/retrieve-a-list-of-deals"},{"title":"Retrieve a deal","openapi":"get /deals/{id}","href":"/api-reference/endpoint/deals/retrieve-a-deal"},{"title":"Update a deal","openapi":"patch /deals/{id}","href":"/api-reference/endpoint/deals/update-a-deal"}]},{"group":"Meetings","pages":[{"title":"Create a meeting","openapi":"post /meetings","href":"/api-reference/endpoint/meetings/create-a-meeting"},{"title":"Retrieve a meeting","openapi":"get /meetings/{id}","href":"/api-reference/endpoint/meetings/retrieve-a-meeting"}]}]},{"group":"Workspaces","pages":[{"group":"Workspaces","pages":[{"title":"Retrieve a list of workspaces","openapi":"get /workspaces","href":"/api-reference/endpoint/workspaces/retrieve-a-list-of-workspaces"},{"title":"Create a workspace","openapi":"post /workspaces","href":"/api-reference/endpoint/workspaces/create-a-workspace"},{"title":"Retrieve a workspace","openapi":"get /workspaces/{id}","href":"/api-reference/endpoint/workspaces/retrieve-a-workspace"},{"title":"Update a workspace","openapi":"patch /workspaces/{id}","href":"/api-reference/endpoint/workspaces/update-a-workspace"},{"title":"Archive a workspace","openapi":"post /workspaces/{id}/archive","href":"/api-reference/endpoint/workspaces/archive-a-workspace"},{"title":"Set workspace access","openapi":"post /workspaces/{id}/access","href":"/api-reference/endpoint/workspaces/set-workspace-access"},{"title":"Connect a workspace","openapi":"post /workspaces/{id}/connected-workspaces","href":"/api-reference/endpoint/workspaces/connect-a-workspace"},{"title":"Get an authenticated embed url","openapi":"post /workspaces/{id}/authenticated-embed-url","href":"/api-reference/endpoint/workspaces/get-an-authenticated-embed-url"}]},{"group":"Workspace analytics","pages":[{"title":"Retrieve workspace analytics","openapi":"get /workspaces/analytics","href":"/api-reference/endpoint/workspace-analytics/retrieve-workspace-analytics"},{"title":"Retrieve workspace people analytics","openapi":"get /workspaces/analytics/people","href":"/api-reference/endpoint/workspace-analytics/retrieve-workspace-people-analytics"},{"title":"Retrieve workspace page analytics","openapi":"get /workspaces/analytics/pages","href":"/api-reference/endpoint/workspace-analytics/retrieve-workspace-page-analytics"},{"title":"Retrieve workspace asset analytics","openapi":"get /workspaces/analytics/assets","href":"/api-reference/endpoint/workspace-analytics/retrieve-workspace-asset-analytics"},{"title":"Retrieve workspace events","openapi":"get /workspaces/events","href":"/api-reference/endpoint/workspace-analytics/retrieve-workspace-events"}]},{"group":"Templates","pages":[{"title":"Retrieve a list of templates","openapi":"get /templates","href":"/api-reference/endpoint/templates/retrieve-a-list-of-templates"},{"title":"Retrieve a template","openapi":"get /templates/{id}","href":"/api-reference/endpoint/templates/retrieve-a-template"}]},{"group":"Pages","pages":[{"title":"Retrieve a list of workspace pages","openapi":"get /workspace-pages","href":"/api-reference/endpoint/workspace-pages/retrieve-a-list-of-workspace-pages"},{"title":"Retrieve a workspace page","openapi":"get /workspace-pages/{id}","href":"/api-reference/endpoint/workspace-pages/retrieve-a-workspace-page"},{"title":"Update a workspace page","openapi":"patch /workspace-pages/{id}","href":"/api-reference/endpoint/workspace-pages/update-a-workspace-page"}]},{"group":"Sections","pages":[{"title":"Retrieve a list of workspace sections","openapi":"get /workspace-sections","href":"/api-reference/endpoint/workspace-sections/retrieve-a-list-of-workspace-sections"},{"title":"Retrieve a workspace section","openapi":"get /workspace-sections/{id}","href":"/api-reference/endpoint/workspace-sections/retrieve-a-workspace-section"},{"title":"Update a workspace section","openapi":"patch /workspace-sections/{id}","href":"/api-reference/endpoint/workspace-sections/update-a-workspace-section"}]},{"group":"Plans","pages":[{"title":"Retrieve a list of workspace plans","openapi":"get /workspace-plans","href":"/api-reference/endpoint/workspace-plans/retrieve-a-list-of-workspace-plans"},{"title":"Retrieve a workspace plan","openapi":"get /workspace-plans/{id}","href":"/api-reference/endpoint/workspace-plans/retrieve-a-workspace-plan"}]},{"group":"Tasks","pages":[{"title":"Create a workspace plan task","openapi":"post /workspace-plan-tasks","href":"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task"},{"title":"Retrieve a list of workspace plan tasks","openapi":"get /workspace-plan-tasks","href":"/api-reference/endpoint/workspace-plan-tasks/retrieve-a-list-of-workspace-plan-tasks"},{"title":"Retrieve a workspace plan task","openapi":"get /workspace-plan-tasks/{id}","href":"/api-reference/endpoint/workspace-plan-tasks/retrieve-a-workspace-plan-task"},{"title":"Update a workspace plan task","openapi":"patch /workspace-plan-tasks/{id}","href":"/api-reference/endpoint/workspace-plan-tasks/update-a-workspace-plan-task"},{"title":"Delete a workspace plan task","openapi":"delete /workspace-plan-tasks/{id}","href":"/api-reference/endpoint/workspace-plan-tasks/delete-a-workspace-plan-task"},{"title":"Retrieve a list of workspace plan task statuses","openapi":"get /workspace-plan-tasks/{id}/statuses","description":"Retrieve the statuses a workspace plan task can be moved to: its plan's statuses in order, then `Completed`. New plans have `To-do` and `In-progress`; plans created from a template use the template's statuses, which can be renamed, added or removed in the plan. Send a status's `name` as `status` when updating the task","href":"/api-reference/endpoint/workspace-plan-tasks/retrieve-a-list-of-workspace-plan-task-statuses"},{"title":"Create a workspace plan task comment","openapi":"post /workspace-plan-tasks/{id}/comments","href":"/api-reference/endpoint/workspace-plan-tasks/create-a-workspace-plan-task-comment"},{"title":"Retrieve a list of workspace plan task comments","openapi":"get /workspace-plan-tasks/{id}/comments","description":"Retrieve the comments on a workspace plan task, oldest first. Use `filters[createdAfter]` to fetch only new comments when syncing. Each comment returns only `id` and `object` unless more are requested with `properties`, for example `properties=body\u0026properties=author.email\u0026properties=files.downloadUrl\u0026properties=createdAt`","href":"/api-reference/endpoint/workspace-plan-tasks/retrieve-a-list-of-workspace-plan-task-comments"}]},{"group":"Iframe embeds","pages":[{"title":"Retrieve a list of workspace iframe embeds","openapi":"get /workspace-iframe-embeds","href":"/api-reference/endpoint/workspace-iframe-embeds/retrieve-a-list-of-workspace-iframe-embeds"},{"title":"Retrieve a workspace iframe embed","openapi":"get /workspace-iframe-embeds/{id}","href":"/api-reference/endpoint/workspace-iframe-embeds/retrieve-a-workspace-iframe-embed"},{"title":"Update a workspace iframe embed","openapi":"patch /workspace-iframe-embeds/{id}","href":"/api-reference/endpoint/workspace-iframe-embeds/update-a-workspace-iframe-embed"}]},{"group":"Files","pages":[{"title":"Create a file","openapi":"post /files","href":"/api-reference/endpoint/files/create-a-file"},{"title":"Retrieve a file","openapi":"get /files/{id}","href":"/api-reference/endpoint/files/retrieve-a-file"}]},{"group":"Forms","pages":[{"title":"Retrieve a list of forms","openapi":"get /forms","href":"/api-reference/endpoint/forms/retrieve-a-list-of-forms"},{"title":"Retrieve a form","openapi":"get /forms/{id}","href":"/api-reference/endpoint/forms/retrieve-a-form"},{"title":"Retrieve form responses","openapi":"get /forms/{id}/responses","href":"/api-reference/endpoint/forms/retrieve-form-responses"}]},{"group":"Users","pages":[{"title":"Retrieve a list of workspace users","openapi":"get /workspace-users","href":"/api-reference/endpoint/workspace-users/retrieve-a-list-of-workspace-users"},{"title":"Create a workspace user","openapi":"POST /workspace-users","href":"/api-reference/endpoint/workspace-users/create-a-workspace-user"},{"title":"Retrieve a workspace user","openapi":"get /workspace-users/{id}","href":"/api-reference/endpoint/workspace-users/retrieve-a-workspace-user"},{"title":"Update a workspace user","openapi":"PATCH /workspace-users/{id}","href":"/api-reference/endpoint/workspace-users/update-a-workspace-user"},{"title":"Delete a workspace user","openapi":"delete /workspace-users/{id}","href":"/api-reference/endpoint/workspace-users/delete-a-workspace-user"}]},{"group":"Domains","pages":[{"title":"Retrieve a list of workspace domains","openapi":"get /workspace-domains","href":"/api-reference/endpoint/workspace-domains/retrieve-a-list-of-workspace-domains"},{"title":"Create a workspace domain","openapi":"POST /workspace-domains","href":"/api-reference/endpoint/workspace-domains/create-a-workspace-domain"},{"title":"Retrieve a workspace domain","openapi":"get /workspace-domains/{id}","href":"/api-reference/endpoint/workspace-domains/retrieve-a-workspace-domain"},{"title":"Update a workspace domain","openapi":"PATCH /workspace-domains/{id}","href":"/api-reference/endpoint/workspace-domains/update-a-workspace-domain"},{"title":"Delete a workspace domain","openapi":"delete /workspace-domains/{id}","href":"/api-reference/endpoint/workspace-domains/delete-a-workspace-domain"}]}]},{"group":"Library","pages":[{"group":"Assets","pages":[{"title":"Retrieve a list of assets","openapi":"get /assets","href":"/api-reference/endpoint/assets/retrieve-a-list-of-assets"},{"title":"Retrieve an asset","openapi":"get /assets/{id}","href":"/api-reference/endpoint/assets/retrieve-an-asset"},{"title":"Create an asset","openapi":"post /assets","href":"/api-reference/endpoint/assets/create-an-asset"},{"title":"Update an asset","openapi":"patch /assets/{id}","href":"/api-reference/endpoint/assets/update-an-asset"},{"title":"Delete an asset","openapi":"delete /assets/{id}","href":"/api-reference/endpoint/assets/delete-an-asset"}]},{"group":"Asset share links","pages":[{"title":"Retrieve asset share links","openapi":"get /asset-share-link","href":"/api-reference/endpoint/asset-share-link/retrieve-asset-share-links"},{"title":"Retrieve an asset share link","openapi":"get /asset-share-link/{id}","href":"/api-reference/endpoint/asset-share-link/retrieve-an-asset-share-link"}]},{"group":"Tags","pages":[{"title":"Retrieve a list of tags","openapi":"get /tags","href":"/api-reference/endpoint/tags/retrieve-a-list-of-tags"},{"title":"Create a tag","openapi":"post /tags","href":"/api-reference/endpoint/tags/create-a-tag"},{"title":"Retrieve a tag","openapi":"get /tags/{id}","href":"/api-reference/endpoint/tags/retrieve-a-tag"},{"title":"Update a tag","openapi":"patch /tags/{id}","href":"/api-reference/endpoint/tags/update-a-tag"},{"title":"Delete a tag","openapi":"delete /tags/{id}","href":"/api-reference/endpoint/tags/delete-a-tag"}]}]},{"group":"Learning","pages":[{"group":"Courses","pages":[{"title":"Retrieve a list of courses","openapi":"get /courses","href":"/api-reference/endpoint/courses/retrieve-a-list-of-courses"},{"title":"Retrieve a course","openapi":"get /courses/{id}","href":"/api-reference/endpoint/courses/retrieve-a-course"}]},{"group":"Pathways","pages":[{"title":"Retrieve a list of pathways","openapi":"get /pathways","href":"/api-reference/endpoint/pathways/retrieve-a-list-of-pathways"},{"title":"Retrieve a pathway","openapi":"get /pathways/{id}","href":"/api-reference/endpoint/pathways/retrieve-a-pathway"}]},{"group":"Assignments","pages":[{"title":"Assign learning","openapi":"post /learning-assignments","href":"/api-reference/endpoint/learning-assignments/create-learning-assignments"}]},{"group":"Playbooks","pages":[{"title":"Retrieve a list of playbooks","openapi":"get /playbooks","href":"/api-reference/endpoint/playbooks/retrieve-a-list-of-playbooks"},{"title":"Retrieve a playbook","openapi":"get /playbooks/{id}","href":"/api-reference/endpoint/playbooks/retrieve-a-playbook"}]}]},{"group":"General","pages":[{"group":"Custom fields","pages":[{"title":"Retrieve a list of custom fields","openapi":"get /custom-fields","href":"/api-reference/endpoint/custom-fields/retrieve-a-list-of-custom-fields"},{"title":"Retrieve a custom field","openapi":"get /custom-fields/{id}","href":"/api-reference/endpoint/custom-fields/retrieve-a-custom-field"}]},{"group":"Users","pages":[{"title":"Retrieve a list of users","openapi":"get /users","href":"/api-reference/endpoint/users/retrieve-a-list-of-users"},{"title":"Retrieve a user","openapi":"get /users/{id}","href":"/api-reference/endpoint/users/retrieve-a-user"}]},{"group":"Status check","pages":[{"title":"Ping the API","openapi":"get /ping","href":"/api-reference/endpoint/status-check/ping"}]}]},{"group":"Guides","pages":[{"title":"Embedding workspace","icon":"page","href":"/embedding-workspace"},{"title":"Programmatic iFrame Updates","icon":"frame","href":"/iframe-updates"}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/introduction"}]}]},"basePath":"","title":"Create a workspace plan task comment with the Dock API - API Reference","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}