> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nudgen.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Update campaign



## OpenAPI

````yaml /openapi.json put /api/v1/campaigns/{id}
openapi: 3.1.0
info:
  title: Nudgen Developer API
  version: 1.0.0
  description: >-
    REST API for managing Nudgen contacts, campaigns, brand settings, and AI
    email drafts with Personal Access Token authentication.
servers:
  - url: https://nudgen.net
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Identity
  - name: Contacts
  - name: Campaigns
  - name: Brand settings
  - name: AI
paths:
  /api/v1/campaigns/{id}:
    parameters:
      - $ref: '#/components/parameters/Id'
    put:
      tags:
        - Campaigns
      summary: Update campaign
      operationId: updateCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCampaignRequest'
      responses:
        '200':
          description: Campaign updated
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    UpdateCampaignRequest:
      type: object
      properties:
        name:
          type: string
        goal:
          type: string
        subject:
          type: string
        html:
          type: string
        link:
          type: string
          format: uri
        audienceType:
          type: string
          enum:
            - all
            - tags
            - manual
        audienceTags:
          type: array
          items:
            type: string
        audienceContactIds:
          type: array
          items:
            type: string
        sendNow:
          type: boolean
        scheduledAt:
          type: string
          format: date-time
        personalizationMode:
          type: string
          enum:
            - 'off'
            - lead_description_intro
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: PAT
      description: Personal Access Token created from Settings -> API Keys.

````