---
title: "Update campaign"
method: PUT
path: "/campaigns/{id}"
tags: ["Campaigns"]
---

# Update campaign

`PUT /campaigns/{id}`

Update an existing campaign

## Request body

- UpdateCampaignRequest, nullable
  - `campaign` CampaignUpdateableFieldsRequest, required
    - `attachments` AttachmentRequest[]
      - `actions` ActionRequest[]
        - `name` string
        - `style` string
        - `text` string
        - `type` string
        - `value` string
      - `asset_url` string
      - `author_icon` string
      - `author_link` string
      - `author_name` string
      - `color` string
      - `fallback` string
      - `fields` FieldRequest[]
        - `short` boolean
        - `title` string
        - `value` string
      - `footer` string
      - `footer_icon` string
      - `giphy` ImagesRequest
        - `fixed_height` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
        - `fixed_height_downsampled` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
        - `fixed_height_still` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
        - `fixed_width` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
        - `fixed_width_downsampled` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
        - `fixed_width_still` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
        - `original` ImageDataRequest
          - `frames` string
          - `height` string
          - `size` string
          - `url` string
          - `width` string
      - `image_url` string
      - `og_scrape_url` string
      - `original_height` number
      - `original_width` number
      - `pretext` string
      - `text` string
      - `thumb_url` string
      - `title` string
      - `title_link` string
      - `type` string — Attachment type (e.g. image, video, url)
    - `channel_type` string
    - `defaults` object
    - `description` string
    - `name` string
    - `segment_id` string
    - `sender_id` string
    - `text` string

## Response `201`

Successful response

- UpdateCampaignResponse, nullable
  - `campaign` Campaign
    - `attachments` Attachment[], required
      - `actions` Action[]
        - `name` string, required
        - `style` string
        - `text` string, required
        - `type` string, required
        - `value` string
      - `asset_url` string
      - `author_icon` string
      - `author_link` string
      - `author_name` string
      - `color` string
      - `fallback` string
      - `fields` Field[]
        - `short` boolean, required
        - `title` string, required
        - `value` string, required
      - `footer` string
      - `footer_icon` string
      - `giphy` Images
        - `fixed_height` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
        - `fixed_height_downsampled` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
        - `fixed_height_still` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
        - `fixed_width` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
        - `fixed_width_downsampled` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
        - `fixed_width_still` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
        - `original` ImageData, required
          - `frames` string, required
          - `height` string, required
          - `size` string, required
          - `url` string, required
          - `width` string, required
      - `image_url` string
      - `og_scrape_url` string
      - `original_height` number
      - `original_width` number
      - `pretext` string
      - `text` string
      - `thumb_url` string
      - `title` string
      - `title_link` string
      - `type` string — Attachment type (e.g. image, video, url)
    - `channel_type` string, required
    - `completed_at` string, date-time
    - `created_at` string, date-time, required
    - `defaults` object, required
    - `description` string, required
    - `details` string
    - `errored_messages` number
    - `failed_at` string, date-time
    - `id` string, required
    - `name` string, required
    - `resumed_at` string, date-time
    - `scheduled_at` string, date-time
    - `scheduled_for` string, date-time
    - `segment_id` string, required
    - `sender_id` string, required
    - `sent_messages` number
    - `status` string
    - `stopped_at` string, date-time
    - `task_id` string
    - `text` string, required
    - `updated_at` string, date-time, required
  - `duration` string, required — Duration of the request in human-readable format

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/streamioapi/apis/stream-io-api.md) · [All operations](https://skmtc.net/streamioapi/apis/stream-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/streamioapi/stream-io-api/versions/f5553620777b/schema)
