# Update a domain (/api-reference/domains/update-a-domain)

Updates optional domain fields. When `data` is provided, it replaces the entire metadata object; omit `data` to leave it unchanged.

{/* This file was generated by scripts\/generate-docs.mjs. Do not edit this file directly. Regenerate with pnpm run build:docs. */}

<APIPage document={"content/openapi/novu-spec.json"} operations={[{"path":"/v1/domains/{domain}","method":"patch"}]} webhooks={[]} hasHead={false} />
