---
title: "Update Campaign By Id"
method: PUT
path: "/api/v1/campaign/update/{campaign_id}"
tags: ["Campaign"]
---

# Update Campaign By Id

`PUT /api/v1/campaign/update/{campaign_id}`

Update variable

## Path parameters

- `campaign_id` string, uuid, required

## Request body

- ICampaignUpdate
  - `name` string, nullable
  - `widget_id` string, uuid, nullable
  - `type` 'outbound_call'
  - `attributes` object, nullable
  - `status` 'not_started' | 'to_be_run' | 'in_progress' | 'paused' | 'cancelled' | 'completed'
  - `execution_weekdays` integer[], nullable
  - `time_window_start` string, time, nullable
  - `time_window_end` string, time, nullable
  - `time_zone` string, nullable
  - `start_time` string, date-time, nullable
  - `interval` integer, nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- IPutResponseBaseICampaignUpdate
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` ICampaignUpdate
    - `name` string, nullable
    - `widget_id` string, uuid, nullable
    - `type` 'outbound_call'
    - `attributes` object, nullable
    - `status` 'not_started' | 'to_be_run' | 'in_progress' | 'paused' | 'cancelled' | 'completed'
    - `execution_weekdays` integer[], nullable
    - `time_window_start` string, time, nullable
    - `time_window_end` string, time, nullable
    - `time_zone` string, nullable
    - `start_time` string, date-time, nullable
    - `interval` integer, nullable
    - `enabled` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/insighto/apis/ragify.md) · [All operations](https://skmtc.net/insighto/apis/ragify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insighto/ragify/versions/cdca56191be9/schema)
