# Update a campaign, or archive/unarchive it

Partial update — only provided fields change. Renaming re-checks the per-workspace uniqueness constraint (409 on conflict). Editing UTM values only affects links created (or re-pointed to this campaign) AFTER the change — every link created earlier keeps the immutable snapshot it was given at that time (EAS-73). archived=true stops the campaign from being selectable for new links without touching any link already using it; archived=false un-archives it.

Canonical: https://easerix.com/docs/developers/api/links/campaigns/updateCampaign

{/* 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="links" operations={[{"path":"/v1/campaigns/{id}","method":"patch"}]} />
    </>
  );
}
