---
search:
  tags:
    - Line Items
    - POST
seo:
  description: >-
    Validates one Line Item. Use this call… Reference for the POST
    /context/campaign-plans/{slug}/line-items/{lineItemId}/validate endpoint in
    the AdCrunch API.
sidebar:
  label: Validate a Line Item
  badge: POST
title: Validate a Line Item
type: openapi-operation
---
Validates one Line Item. Use this call when you want to validate one row, and not to approve the whole plan.

Validation is a record, not a gate: the provider write tools do not check it. It changes nothing on any provider. To execute the Line Item, you need the `mutation:write` permission.

This call checks nothing about the content of the Line Item. An incomplete Line Item validates. The read of the Line Item (`GET /campaign-plans/{slug}/line-items/{lineItemId}`) gives its `readiness`, which says what the Line Item lacks before you build it.

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.

`POST /context/campaign-plans/{slug}/line-items/{lineItemId}/validate`

**Request body** (`application/json`, required)

- `base_revision` (integer, required) — The revision last read via GET. This is what makes it a validation \*\*of the content that was read\*\*.

Request body example:

```json
{
  "base_revision": 1
}
```

**Responses**

- `200` — 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 the list of Line Items.
- `400` — The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. \`error\` is \`invalid\_request\`, and \`issues\` names each field. Nothing was changed.
- `401` — No API key, or one that does not resolve. See the security scheme. \`error\` is \`unauthorized\`.
- `402` — The organization has no active subscription. An owner subscribes at \`paywallUrl\`. \`error\` is \`organization\_unentitled\`.
- `403` — The caller does not hold \`campaign\_plan:write\`. \`error\` is \`forbidden\`.
- `404` — No such plan, or no Line Item with that id on it. \`error\` is \`not\_found\`.
- `409` — The Line Item moved since you read it. \`error\` is \`revision\_mismatch\`. This is what makes it a validation \*\*of the content you read\*\*.

Response example, 200:

```json
{
  "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",
  "name": "Spring reach, France and Belgium",
  "objective": "sales",
  "personaId": "psn_8c4a20",
  "provider": "meta",
  "revision": 2,
  "startDate": null,
  "status": "validated",
  "targetMetric": "cpa",
  "targetValue": 24.5,
  "unit": "total",
  "updatedAt": 1769040000000
}
```
