# Edit a comment (author-only)

Only the comment's author may edit it — anyone else in the org gets 403 ("only the author can edit a comment"). Editing sets the comment's modified timestamp (null until first edit — the "(edited)" marker).

Canonical: https://easerix.com/docs/developers/api/tasks/comments/updateComment

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="tasks" operations={[{"path":"/v1/comments/{id}","method":"patch"}]} />
    </>
  );
}
