Validate a Line Item
Validates one Line Item. Use this call when you want to validate one row, and not to approve the whole plan.
Validation is the gate for execution. It changes nothing on any provider. To execute the line, you also need the mutation:write permission.
This call checks nothing about the content of the line. An incomplete line validates, and execution makes its own checks. Read the readiness of the line to see them.
A call on a line that is already validated succeeds and changes nothing. The Campaign Plan does not move: one validated line does not approve the Campaign Plan.
Request
- Base URL: https://api.adcrunch.dev
- URL: https://api.adcrunch.dev/context/campaign-plans/{slug}/line-items/{lineItemId}/validate
- Auth: HTTP bearer
Path parameters
Request body
Example request
{
"base_revision": 1
}Response
The Line Item, now validated. Validating an already-validated line is a no-op rather than an error, and the revision stays where it was. 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": 2500,
"campaignPlanId": "cpl_4e1a08",
"channel": "meta",
"countries": [
"FR",
"BE"
],
"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": 2,
"startDate": null,
"status": "validated",
"unit": "total",
"updatedAt": 1769040000000
}Changes
No recorded changes to this operation across all 1 revision of this API.