# Add a label to an issue

Idempotent (re-adding is a no-op). Both the issue and the label must be inside the caller's org (else 404). Returns 200 (not 201) with the full updated issue.

Canonical: https://easerix.com/docs/developers/api/tasks/issues/addIssueLabel

{/* 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/issues/{id}/labels","method":"post"}]} />
    </>
  );
}
