Update Line Item

Both PUT and PATCH options available

PATCH

Currently this endpoint is only for updating budget details. We plan on expanding this endpoint in the near future. Note that this PUT endpoint does not null out fields that aren't included in the body of the request. It will update whatever is entered in the Body if we respond with a 200.

Endpoint

Method: PATCH

https://lifeapi.pulsepoint.com/RestApi/v2/lineitem/{id}

Path Parameter: id of the line item that you want to update

Field List

Top Line

NameData TypeRequiredNotes
nameStringNo
costModelStringNo
budgetDistributionString ENUMNo
flightsObjectNo
timeZoneStringNo
budgetCapDoubleNo
budgetModifiedBooleanNo

Flights Object

NameData TypeRequiredNotes
idStringNo
budgetDoubleNo
startDateStringNoFormat:"03-31-2026 23:59:59"
endDateStringNoFormat: "03-31-2026 23:59:59"
totalImpressionCapIntegerNo
dailyImpresssionCapIntegerNo
paceAheadPercentDoubleNo
pacingModeStringNo

Sample Request

{
  "name": "Rachel Line Item",
  "costModel": "CPM",
  "budgetDistribution": "Priority",
  "flights": [
    {
      "id": 185184,
      "budget": 2,
      "endDate": "05-31-2026 23:59:59",
      "startDate": "03-01-2026 00:00:00",
      "paceAheadPercent": 1,
      "pacingMode": "AHEAD"
    }
  ],
  "timeZone": "Eastern Time",
  "budgetModified": false
}

Errors


Error CodeDescriptionNotes
400Budget distribution cannot be modified for Search Line Item
400Total flight budget could not exceed Campaign Budget
400Finished flight cannot be changed
400Flight dates overlap with other flights

PUT

This endpoint will replace any top level object that is included in the call. Any top level that isn't included will remain as it was.

Endpoint

https://lifeapi.pulsepoint.com/RestApi/v2/account/{account_id}/lineitems/{lineitem_id}