PUT
/
api
/
v1
/
outbound
/
batches
/
{batch_id}
import dateutil.parser
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.outbound.batches.update(batch_id="<id>", communication_batch_update={
        "paused": False,
        "expires_on": dateutil.parser.isoparse("2027-01-01T06:00:00Z"),
    })

    # Handle response
    print(res)
{
  "batch_id": "20250419.9",
  "campaign_id": 1,
  "expires_on": "2025-04-20T00:00:00Z",
  "paused": true,
  "status": "PENDING",
  "upload_filename": "LATE_PAYMENTS_20250401.csv",
  "created_at": "2025-04-19T00:00:00Z",
  "deleted_at": "2025-04-19T00:00:00Z",
  "deleted_reason": "User request",
  "last_updated_at": "2025-04-19T00:00:00Z",
  "last_updated_by": "user@email.com",
  "error_message": "Invalid file format"
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

batch_id
string
required

Body

application/json
paused
boolean | null

Whether the batch is on HOLD. When on HOLD, no outreach will be made.

Example:

true

expires_on
string | null

Timestamp of batch expiration

Example:

"2027-01-01T06:00:00Z"

Response

200
application/json
Successful Response
batch_id
string
required

Unique ID for conversation batch

Example:

"20250419.9"

campaign_id
integer
required

Unique ID for campaign

Example:

1

last_updated_by
string
required

Email of user who last updated campaign

Example:

"user@email.com"

expires_on
string | null

Timestamp of batch expiration

Example:

"2025-04-20T00:00:00Z"

paused
boolean | null

Whether the batch is on HOLD. When on HOLD, no outreach will be made.

Example:

true

status
enum<string>

Status of batch

Available options:
PENDING,
ACTIVE,
PAUSED,
FAILED,
CANCELED,
EXPIRED
upload_filename
string | null

Name of file used to create batch

Example:

"LATE_PAYMENTS_20250401.csv"

created_at
string

Timestamp of batch creation

Example:

"2025-04-19T00:00:00Z"

deleted_at
string | null

Timestamp of batch deletion

Example:

"2025-04-19T00:00:00Z"

deleted_reason
string | null

Reason for batch deletion

Example:

"User request"

last_updated_at
string | null

Timestamp of last change to batch

Example:

"2025-04-19T00:00:00Z"

error_message
string | null

Error message if batch upload failed

Example:

"Invalid file format"