Delete Line Item

Remove a line item from an existing campaign that has not served impressions

Remove a line item from an existing campaign. A line item can only be deleted if it has not served any impressions.

Endpoint

DELETE

https://lifeapi.pulsepoint.com/RestApi/v2/account/{accountId}/lineItems/{lineItemId}

Path Parameters

NameData TypeRequiredNotes
accountIdintegeryesThe account ID the line item belongs to
lineItemIdintegeryesThe unique identifier of the line item to delete

Request Body

NameData TypeRequiredNotes
campaignIdintegeryesThe ID of the campaign the line item belongs to

Response Field List

NameData TypeNotes
successbooleanReturns true on successful deletion
messagestringConfirmation message describing the deletion
dataobjectContains details about the deleted line item and its impact
data.campaignIdintegerThe ID of the campaign the line item belonged to
data.deletedLineItemobjectDetails about the line item that was deleted
data.deletedLineItem.idstringThe ID of the deleted line item
data.deletedLineItem.namestringThe name of the deleted line item
data.deletedLineItem.deletedAtstringTimestamp of when the deletion occurred. Format: YYYY-MM-DD HH:mm:ss
data.impactobjectSummary of cascading deletions resulting from the line item deletion
data.impact.flightsRemovedintegerNumber of flights removed as a result of the deletion
data.impact.customFieldsRemovedintegerNumber of custom fields removed as a result of the deletion

Example Response

{
  "success": true,
  "message": "Line item li_789012345 has been successfully deleted",
  "data": {
    "campaignId": 281902,
    "deletedLineItem": {
      "id": "li_789012345",
      "name": "Q2 Display Targeting",
      "deletedAt": "2025-09-10 17:30:00"
    },
    "impact": {
      "flightsRemoved": 2,
      "customFieldsRemoved": 2
    }
  }
}

Errors

HTTP StatusErrorDescription
403ForbiddenYou do not have permission to delete line item {lineItemId}
404Not FoundLine item with ID {lineItemId} does not exist
409ConflictLine item has served impressions and cannot be deleted