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
| Name | Data Type | Required | Notes |
|---|---|---|---|
| name | String | No | |
| costModel | String | No | |
| budgetDistribution | String ENUM | No | |
| flights | Object | No | |
| timeZone | String | No | |
| budgetCap | Double | No | |
| budgetModified | Boolean | No |
Flights Object
| Name | Data Type | Required | Notes |
|---|---|---|---|
| id | String | No | |
| budget | Double | No | |
| startDate | String | No | Format:"03-31-2026 23:59:59" |
| endDate | String | No | Format: "03-31-2026 23:59:59" |
| totalImpressionCap | Integer | No | |
| dailyImpresssionCap | Integer | No | |
| paceAheadPercent | Double | No | |
| pacingMode | String | No |
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 Code | Description | Notes |
|---|---|---|
| 400 | Budget distribution cannot be modified for Search Line Item | |
| 400 | Total flight budget could not exceed Campaign Budget | |
| 400 | Finished flight cannot be changed | |
| 400 | Flight 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}
Updated 3 months ago
