> ## 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.

# Change lifetime campaign status

> Allowed transitions: draft to active, active to paused or archived, paused to active or archived. Archived campaigns cannot resume. Pausing or archiving cancels pending and queued executions. A lifetime campaign must be created as a draft; the launch endpoint does not accept it.



## OpenAPI

````yaml /openapi.json patch /api/v1/campaigns/{id}/lifecycle
openapi: 3.1.0
info:
  title: Nudgen Developer API
  version: 1.0.0
  description: >-
    REST API for contacts, campaigns, Lifetime triggers, sending domains, brand
    settings, and AI drafts. Most endpoints use a Personal Access Token;
    Lifetime triggers require a scoped team API key.
servers:
  - url: https://app.nudgen.net
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Identity
  - name: Contacts
  - name: Campaigns
  - name: Brand settings
  - name: AI
  - name: Team API keys
  - name: Sending domains
paths:
  /api/v1/campaigns/{id}/lifecycle:
    patch:
      tags:
        - Campaigns
      summary: Change lifetime campaign status
      description: >-
        Allowed transitions: draft to active, active to paused or archived,
        paused to active or archived. Archived campaigns cannot resume. Pausing
        or archiving cancels pending and queued executions. A lifetime campaign
        must be created as a draft; the launch endpoint does not accept it.
      operationId: updateLifetimeCampaignLifecycle
      parameters:
        - $ref: '#/components/parameters/Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              additionalProperties: false
              properties:
                status:
                  type: string
                  enum:
                    - active
                    - paused
                    - archived
      responses:
        '200':
          description: Updated campaign
          content:
            application/json:
              schema:
                type: object
                properties:
                  campaign:
                    $ref: '#/components/schemas/Campaign'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Invalid transition or campaign not ready to activate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    Campaign:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - one-time
            - drip
            - lifetime
        status:
          type: string
          enum:
            - draft
            - scheduled
            - sending
            - sent
            - stopped
            - active
            - paused
            - archived
        subject:
          type: string
        scheduledAt:
          type:
            - string
            - 'null'
          format: date-time
        sentAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked, or expired token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The workspace cannot perform this write action
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded
      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.

````