Agentic - Campaigns
Update campaign configuration and settings
Changed onUpdate an existing campaign's configuration. You can modify:
- Campaign details: Name, description, status
- Scheduling: Business hours, frequency, timezone
- Call settings: Retry attempts, concurrent call limits
- Agent assignment: Change the AI agent handling calls
- SIP trunks: Update sipTrunkIds used for outbound calls
- Notifications: Email notification settings
Common Use Cases:
- Pause a running campaign by setting status: "paused"
- Adjust concurrent call limits during peak hours
- Update schedule to match business hours
- Change AI agent to test different conversation flows
put/api/v1/agentic/campaigns/:id
Request
- Base URL: https://api.voicelogica.ai
- URL: https://api.voicelogica.ai/api/v1/agentic/campaigns/:id
- Auth: API key in header x-api-key
Headers
x-api-keystring required
Your API key for authentication. Required for all endpoints.
x-company-idstring
Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
Request body
Example request
{
"name": "Q4 Sales Campaign",
"description": "Outbound sales campaign for Q4 revenue generation",
"type": "phone",
"status": "draft",
"agentId": "507f1f77bcf86cd799439012",
"sipTrunkIds": [
"507f1f77bcf86cd799439011"
],
"retries": 3,
"retryDelayMinutes": 240,
"maximumConcurrentCalls": 5,
"schedule": {
"days": [
{
"day": "monday",
"runFromTime": {
"hours": 9,
"minutes": 0
},
"runToTime": {
"hours": 17,
"minutes": 0
}
},
{
"day": "tuesday",
"runFromTime": {
"hours": 9,
"minutes": 0
},
"runToTime": {
"hours": 17,
"minutes": 0
}
}
],
"timeZone": "Europe/Athens",
"runEverySeconds": 60
}
}Response
Campaign updated successfully
Example response
{
"id": "123",
"companyId": "123",
"name": "Q4 Sales Campaign",
"description": "Outbound sales campaign for Q4 revenue generation",
"type": "phone",
"status": "active",
"retries": 3,
"retryDelayMinutes": 30,
"maximumConcurrentCalls": 10,
"notificationSettings": {
"enabled": true,
"emails": [
"test@example.com"
],
"sendAtHour": 10
}
}Changes
- breaking
the
request property type changed fromnumbertointeger - breaking
the
request property type changed fromnumbertointeger - warning
the
request property's max was set to40320.00 - warning
the
request property's min was set to60.00
- breaking