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

# Update campaign

> Updates an existing campaign



## OpenAPI

````yaml PUT /campaigns/{id}
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /campaigns/{id}:
    put:
      summary: Update Campaign
      description: Updates an existing campaign
      operationId: updateCampaign
      parameters:
        - name: id
          in: path
          description: ID of the campaign to update
          required: true
          schema:
            type: string
      requestBody:
        description: Campaign properties to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCampaignRequest'
        required: true
      responses:
        '200':
          description: Campaign updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: campaign_12345abcde
                  message:
                    type: string
                    example: Campaign updated successfully
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Campaign not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateCampaignRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 3
          maxLength: 100
          example: Updated Campaign Name
        qualificationAutomatic:
          type: integer
          minimum: 0
          maximum: 100
          example: 80
        qualificationVerification:
          type: integer
          minimum: 0
          maximum: 100
          example: 60
        variables:
          type: object
          example:
            companyValue: Updated value proposition
            painPoint: Updated pain point
            benefit: Updated benefit statement
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````