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

# Update Offer

> Update one of your published CPL offers.

Patches settings on an offer you own. Any change to a data field sends the offer back to moderation; it goes live again after our team approves it.

Pause and unpause via `is_paused=true|false`. Toggling pause alone does not send the offer back to moderation.


## OpenAPI

````yaml POST /cpl/my-offers/{id}
openapi: 3.0.3
info:
  title: OnlyTraffic Studio API
  version: 1.0.0
  description: >-
    External API for OnlyTraffic Studio. Manage and retrieve data about your
    subscribers, CPL orders, and CPC orders.
servers:
  - url: https://studio-api.onlytraffic.com/api/external/v1
security:
  - ApiKeyAuth: []
tags:
  - name: Account
    description: API key holder's wallet, profile, and aggregate state.
  - name: Accounts
    description: OnlyFans accounts attached to the API key holder.
  - name: Agencies
    description: Agency CRUD and image management. All edits stage in moderation.
  - name: CPL
    description: >-
      Cost-per-lead orders: place, list, cancel, manage settings, browse partner
      offers.
  - name: CPC
    description: Cost-per-click orders and creative management.
  - name: RevShare
    description: Revenue-share campaigns and invoices.
  - name: Swaps
    description: Two-sided traffic swap orders and offers.
  - name: Subscribers
    description: Per-fan delivery feed (cursor-paginated).
  - name: Transactions
    description: Per-transaction OF revenue feed (cursor-paginated).
paths:
  /cpl/my-offers/{id}:
    post:
      tags:
        - CPL
      summary: Update a published CPL offer.
      description: Update one of your published CPL offers.
      operationId: updateCplMyOffer
      parameters:
        - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CplClientOfferUpdateRequest'
      responses:
        '200':
          description: >-
            Updated. Any change to a data field sends the offer back to
            moderation; it goes live again after our team approves it. Pausing
            or unpausing alone (via `is_paused`) does not trigger this.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      offer_id:
                        type: integer
                      status:
                        type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient balance for the additional commitment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Model no longer active for offers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Offer not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: integer
        minimum: 1
      description: Numeric resource id.
      example: 1
  schemas:
    CplClientOfferUpdateRequest:
      type: object
      description: >-
        All fields optional; pass only what you want to change. `is_paused`
        toggles pause/unpause. Any data field change resets status to
        `moderation`.
      properties:
        is_paused:
          type: boolean
          description: >-
            Pause or resume the offer. Set `true` to pause; set `false` to
            resume (the offer re-enters `moderation` until approved). Toggling
            pause alone does not trigger a moderation reset on the rest of the
            offer's data.
        per_subscription:
          type: number
          format: float
          minimum: 0.3
          maximum: 5
          nullable: true
        per_messages:
          type: number
          format: float
          minimum: 1
          maximum: 15
          nullable: true
        per_first_purchase:
          type: number
          format: float
          minimum: 5
          maximum: 60
          nullable: true
        per_paid_subscription:
          type: number
          format: float
          minimum: 3
          maximum: 99
          nullable: true
        free_trial_enabled:
          type: boolean
        free_trial_days:
          type: integer
          minimum: 1
          nullable: true
          description: Required when `free_trial_enabled=true`. Number of free trial days.
        trial_order_enabled:
          type: boolean
        trial_fan_count:
          type: integer
          minimum: 1
          nullable: true
          description: >-
            Required when `trial_order_enabled=true`. Number of trial fans for
            first-touch experiments.
        max_per_day:
          type: integer
          minimum: 1
        total_budget:
          type: number
          format: float
          minimum: 1000
        content_channels:
          type: array
          minItems: 1
          items:
            type: string
            enum:
              - lifestyle
              - tiktok
              - lingerie
              - light_nudes
              - nudes
        blocked_sources:
          type: array
          items:
            type: string
            enum:
              - instagram
              - tiktok
              - twitter
              - reddit
              - google
              - telegram
              - tinder
              - facebook
              - youtube
              - onlyfans
        description:
          type: string
          maxLength: 5000
          nullable: true
    ErrorResponse:
      type: object
      description: Standard error envelope for all 4xx/5xx responses.
      required:
        - success
        - error
        - message
      properties:
        success:
          type: boolean
          enum:
            - false
          description: Always false on error responses.
        error:
          type: string
          description: Stable snake_case machine-readable error code. Branch on this.
          example: validation_failed
        message:
          type: string
          description: >-
            Human-friendly text. For 5xx this is always the literal `Server
            error`. For 4xx an actionable validation/auth message is returned.
        details:
          type: object
          nullable: true
          description: >-
            Optional per-field diagnostic information. On 422 carries `{<field>:
            ["error_code", ...]}`. On 402 (`insufficient_balance`) carries
            `{required, current}`. On 426 (`unpaid_invoices`) carries `{count,
            total, oldest_date_ts}`. Absent on most other errors.
          additionalProperties: true
        retry_after:
          type: integer
          nullable: true
          description: >-
            Seconds until the next request will succeed. Present only on 429
            responses (rate limit). Mirrors the `Retry-After` HTTP header.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your API key from the Studio Dashboard

````