latestOpenAPI 3.1.02026-07-2616636641.7 KB

0ca55f45aa7d

Reserved Campaigns

Update reserved campaign

Fully replace an existing reserved campaign with the provided data. All required fields must be provided.

Important: ID handling for flights and ads

  • The campaign id is required and must match the path parameter.
  • Flights and ads with an id: Will be updated in-place if the ID exists.
  • Flights and ads without an id: Will be created as new entities with auto-generated IDs.
  • Existing flights and ads not included in the request: Will be deleted.

This means the PUT operation performs a full replacement of the reserved campaign structure. To preserve existing flights or ads, you must include them in the request with their respective IDs.

put/forecaster/reserved-campaign/{reservedCampaignId}

Request body

idinteger

Unique identifier of the reserved campaign. Auto-generated on creation (do not include when creating). Required when updating via PUT.

namestring required

The name of the reserved campaign.

status'reserved' | 'booked'

The status of the campaign:

  • reserved: The campaign is reserved but not yet booked.
  • booked: The campaign has been confirmed and booked so it will not be considered as a reservation in the forecasts.
descriptionstring nullable

An optional description of the reserved campaign.

salesProbabilityWeightinteger required

A weight (0-100) representing the probability that this reserved campaign will convert to a booked campaign.

capType1 | 2 | 3 | 4 nullable

The type of cap:

  • 1: Impressions
  • 2: Clicks
  • 3: Conversions
  • 4: Revenue
dailyCapAmountinteger nullable

The daily cap amount (based on capType).

lifetimeCapAmountinteger nullable

The lifetime cap amount (based on capType).

Response

Normal response, containing the updated JSON object with the reserved campaign, if successful.

Schema required— unresolved $ref