Skip to main content

Update Campaign

Each API request in TeleCMI platform includes App id and secret. Get your App id and secret in TeleCMI dashboard. After getting the app id and secret, make a POST request to the below endpoint to update an existing Campaign and modify its mapped users.

Base URL

https://rest.telecmi.com/v3/campaign/update

Required Parameters

Takes the same parameters as Create Campaign, but with one additional required field:

Parameter NameTypeDescription
*campaign_idString (UUID)The UUID of the campaign to update.
*inet_noIntegerThe account identifier.
*secretString (UUID)Your app secret.
nameStringName of the campaign.
activeBooleanStatus of the campaign.
timezoneStringTimezone offset (e.g., "+05:30").
start_dateString (Date)Campaign start date (YYYY-MM-DD).
end_dateString (Date)Campaign end date (YYYY-MM-DD).
start_timeStringCampaign start time (HH:MM:SS).
end_timeStringCampaign end time (HH:MM:SS).
usersArray of StringsList of Agent IDs (max 100).
call_intervalInteger10, 20, 30, 40, 50, 60, or 120.
ring_ruleString"ring-all", "round-robin", etc.

Sample Response

{
"code": 200,
"msg": "Campaign updated successfully"
}

HTTP Status Codes

Status CodeStatus TypeDescription
200SuccessCampaign updated successfully
400ErrorCampaign Not Found
400ErrorLeads ID Not Found
400ErrorLead already mapped to another campaign
400ErrorUser already mapped to another campaign
404ErrorApp Not Found
422ErrorValidation Failed (e.g., missing required field or invalid format)
500ErrorInternal Server Error
Note
The * marked parameter is mandatory.