---
updatedAt: 2026-09-09T22:08:03.000Z
agentTools:
  projectIndex: https://developer.callhub.io/llms.txt
---

# /voice_broadcasts/:id/

Change a specific voice broadcast campaign

<br />

### Status values

| Value | Meaning                                 | Notes                                                            |
| ----: | --------------------------------------- | ---------------------------------------------------------------- |
|     1 | **START** — run the campaign            | Fails with 400 if no contacts, no caller ID, or pending approval |
|     2 | **PAUSE** — pause a running campaign    | Campaign-list cache cleared on success                           |
|     4 | **END** — stop the campaign permanently | Cache cleared; recurring child occurrences are also ended        |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.1"
  },
  "servers": [
    {
      "url": "https://api.callhub.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "x-default": "",
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/voice_broadcasts/{id}/": {
      "put": {
        "summary": "/voice_broadcasts/:id/",
        "description": "",
        "operationId": "change-voice-broadcasting-campaign",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the campaign",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the campaign"
                  },
                  "status": {
                    "type": "integer",
                    "description": "Status of the campaign",
                    "format": "int32"
                  },
                  "frequency": {
                    "type": "integer",
                    "description": "Number of calls per minute",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n \"url\": \"https://api.callhub.io/v1/voice_broadcasts/23204/\",\n \"owner\": \"readme\",\n \"name\": \"Rent Due Reminder\",\n \"status\": 4,\n \"frequency\":60,\n \"phonebook\": [\"https://api.callhub.io/v1/phonebooks/1332/\",\"https://api.callhub.io/v1/phonebooks/1224/\"]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "example": "https://api.callhub.io/v1/voice_broadcasts/23204/"
                    },
                    "owner": {
                      "type": "string",
                      "example": "readme"
                    },
                    "name": {
                      "type": "string",
                      "example": "Rent Due Reminder"
                    },
                    "status": {
                      "type": "integer",
                      "example": 4,
                      "default": 0
                    },
                    "frequency": {
                      "type": "integer",
                      "example": 60,
                      "default": 0
                    },
                    "phonebook": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "https://api.callhub.io/v1/phonebooks/1332/"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "python",
              "code": "# You'll need to install requests\nimport requests\n# api_key can be found at https://callhub.io/user_detail_change/?action=tabs-1\nheaders = {'Authorization': 'Token %s' % api_key}\ndata = {'status':'1','name' : 'Updating'}\n# replace campaign_id with the id number of the campaign you are updating\nr = requests.put('https://api.callhub.io/v1/voice_broadcasts/%d/'% campaign_id, data=data, headers=headers)\nprint \"Callcenter Campaign Updated in JSON\", r.json()"
            },
            {
              "language": "php",
              "code": "<?php\n\t\t$ch = curl_init();\n    $headers = array();\n    $headers[] = \"Authorization: token {$api_key}\";\n    $headers[] = \"Content-Type: application/json\";\n\t\t\n\t\t$data = array(\"name\" => \"API Update\", \"status\" => \"2\", \"frequency\" => \"85\");                 \n\t\t$data_to_post = json_encode($data);   \n  \n    $url =\"https://api.callhub.io/v1/voice_broadcasts/{$id}/\";\n    curl_setopt($ch, CURLOPT_URL, $url);\n    curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);\n    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\n    curl_setopt($ch,CURLOPT_POSTFIELDS, $data_to_post);\n\n    $curl_response = curl_exec($ch); // Send request\n\t\tcurl_close($ch);\n     \n\t\t$decoded = json_decode($curl_response,true);\n\t\tprint \"Voice campaign Updated:\". var_export($decoded);\n \n?>"
            }
          ],
          "samples-languages": [
            "python",
            "php"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```