Hanzo
OpenapiMarketing

Sets a campaign's send time and moves it to "scheduled".

Sets a campaign's send time and moves it to "scheduled".

POST /v1/marketing/campaigns/{id}/schedule

Addresshttps://api.hanzo.ai/v1/marketing/campaigns/{id}/schedule
MethodPOST
Operationpost_marketing_campaigns_by_id_schedule
AuthAuthorization: Bearer $HANZO_API_KEY

Sets a campaign's send time and moves it to "scheduled". A scheduledAt of 0 clears the schedule and returns it to "draft".

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the campaign id from the path.
idbodystringID is the campaign id from the path.
scheduledAtbodyintegerScheduledAt is the unix send time.

Response

StatusBodyMeaning
200Campaignok

200 body — 10 fields.

FieldInTypeAlwaysDescription
budgetbodyintegerBudget is what the campaign is allowed to cost, in USD cents.
channelbodystringChannel is the delivery surface: email, sms, social, meta, google or tiktok.
createdAtbodyintegerCreatedAt is unix seconds when the campaign was registered.
idbodystringID is the server-assigned campaign id ("camp_" + 128 random bits).
namebodystringName is the campaign's label.
objectivebodystringObjective is the free-text goal ("signups"), capped at 1024 bytes.
scheduledAtbodyintegerScheduledAt is the unix send time; 0 means unscheduled.
spendbodyintegerSpend is what the campaign has cost so far, in USD cents, clamped to >= 0.
statusbodystringStatus is the lifecycle: draft, scheduled, active, paused or completed.
updatedAtbodyintegerUpdatedAt is unix seconds of the last write.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing campaigns schedule <id>

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page