Update a Line Item
Updates a Line Item. Send the base_revision you read. Omit a field to keep it. Send null to clear it.
Any change puts a validated line back into draft. Only that line changes. The Campaign Plan keeps its approval, because that approval speaks about the whole allocation. To open the gate again, validate the line again.
A write that changes nothing keeps the validation, and it does not move the revision.
The provider objects that the line already created do not change. This call never alters a live campaign.
Request
- Base URL: https://api.adcrunch.dev
- URL: https://api.adcrunch.dev/context/campaign-plans/{slug}/line-items/{lineItemId}
- Auth: HTTP bearer
Path parameters
Request body
Example request
{
"base_revision": 2,
"budget": 3000,
"countries": [
"FR",
"BE",
"NL"
]
}Response
The Line Item, bare rather than wrapped — unlike the create, which also reports the Campaign Plan status. Any change returns a validated line to draft. executions lists what the line created, the same as a read of its Campaign Plan.
Example response
{
"advertiserId": "acc_1203456789012345",
"ageMax": 44,
"ageMin": 25,
"budget": 3000,
"campaignPlanId": "cpl_4e1a08",
"channel": "meta",
"countries": [
"FR",
"BE",
"NL"
],
"createdAt": 1768435200000,
"createdBy": "usr_5d2b71",
"effectiveEndDate": "2026-05-31",
"effectiveStartDate": "2026-03-01",
"endDate": null,
"executable": true,
"executions": [],
"gender": "all",
"id": "lni_2d9e77",
"objective": "sales",
"personaId": "psn_8c4a20",
"provider": "meta",
"revision": 3,
"startDate": null,
"status": "draft",
"unit": "total",
"updatedAt": 1769644800000
}Changes
No recorded changes to this operation across all 1 revision of this API.