> ## Documentation Index
> Fetch the complete documentation index at: https://developers.criteo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /experimental/retail-media/line-items/{line-item-id}

> Update an existing line item.



## OpenAPI

````yaml https://api.criteo.com/experimental/retailmedia/open-api-specifications.json patch /experimental/retail-media/line-items/{line-item-id}
openapi: 3.0.1
info:
  title: Criteo API
  description: Criteo API - RetailMedia
  version: Experimental
servers:
  - url: https://api.criteo.com
security:
  - oauth: []
tags:
  - name: Accounts
  - name: Analytics
  - name: Audience
  - name: Balance
  - name: Campaign
  - name: Catalog
  - name: Gateway
  - name: OnSiteRecommendation
  - name: ThirdPartyAccounts
paths:
  /experimental/retail-media/line-items/{line-item-id}:
    patch:
      tags:
        - Campaign
      summary: /experimental/retail-media/line-items/{line-item-id}
      description: Update an existing line item.
      operationId: UpdateLineItem
      parameters:
        - name: line-item-id
          in: path
          description: The line item id
          required: true
          schema:
            type: string
      requestBody:
        description: Line item details
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExperimentalUpdateLineItemModelRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperimentalLineItemModelResponse'
      security:
        - oauth:
            - RetailMedia_Campaign_Manage
components:
  schemas:
    ExperimentalUpdateLineItemModelRequest:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ExperimentalUpdateLineItemModelResource'
      additionalProperties: false
      description: >-
        A top-level object that encapsulates a Criteo API request for a single
        value object.
    ExperimentalLineItemModelResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ExperimentalLineItemModelResource'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/CommonProblem'
          description: Errors that occured during this call.
          nullable: true
          readOnly: true
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/CommonProblem'
          description: Warnings that occured during this call.
          nullable: true
          readOnly: true
      additionalProperties: false
      description: >-
        A top-level object that encapsulates a Criteo API response for a single
        entity.
    ExperimentalUpdateLineItemModelResource:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/ExperimentalUpdateLineItemModel'
        type:
          type: string
          description: Type of the resource.
          nullable: true
      additionalProperties: false
      description: A value resource exposed by the API.
    ExperimentalLineItemModelResource:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/ExperimentalLineItemModel'
        id:
          type: string
          description: Unique id of the entity.
          nullable: true
        type:
          type: string
          description: Type of the resource.
          nullable: true
      additionalProperties: false
      description: A domain entity exposed by the API, identified by a unique id.
      nullable: true
    CommonProblem:
      type: object
      properties:
        code:
          type: string
          description: A machine-readable error code, expressed as a string value.
          nullable: true
        detail:
          type: string
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem
          nullable: true
        instance:
          type: string
          description: A URI that identifies the specific occurrence of the problem.
          nullable: true
        source:
          type: object
          additionalProperties:
            type: string
          description: >-
            A machine-readable structure to reference to the exact location(s)
            causing the error(s)
          nullable: true
        stackTrace:
          type: string
          nullable: true
        title:
          type: string
          description: A short human-readable description of the problem type
          nullable: true
        traceId:
          type: string
          description: The request correlation ID this problem comes from.
          nullable: true
        traceIdentifier:
          type: string
          description: >-
            The request correlation ID this problem comes from. (deprecated, use
            traceId instead)
          nullable: true
        type:
          enum:
            - unknown
            - access-control
            - authentication
            - authorization
            - availability
            - deprecation
            - quota
            - validation
          type: string
          description: The problem's category.
          nullable: true
      description: Common problem object.
    ExperimentalUpdateLineItemModel:
      type: object
      properties:
        flightDates:
          $ref: '#/components/schemas/ExperimentalFlightDatesModel'
        isPaused:
          type: boolean
          description: Whether the line item should be paused or unpaused.
          nullable: true
        name:
          type: string
          description: The name of the line item.
          nullable: true
        onsiteDisplayDetails:
          $ref: '#/components/schemas/ExperimentalUpdateOnsiteDisplayLineItemDetails'
        serveToOptOutUser:
          type: boolean
          description: Whether to serve ads to users who have opted out of personalization.
          nullable: true
      additionalProperties: false
      description: The line item settings to change. Omitted fields are left unchanged.
    ExperimentalLineItemModel:
      type: object
      properties:
        campaignId:
          type: string
          description: The campaign id of the associated campaign.
          nullable: true
        conquestingSettings:
          $ref: '#/components/schemas/ExperimentalConquestingSettingsModel'
        effectiveFlightDates:
          $ref: '#/components/schemas/ExperimentalFlightDatesModel'
        financialStatus:
          enum:
            - Unknown
            - Active
            - BudgetHitDaily
            - BudgetHitMonthly
            - BudgetHitTotal
            - BalanceHit
          type: string
          description: The financial status of the line item.
          nullable: true
        isPaused:
          type: boolean
          description: Whether the line item should be paused or unpaused.
          nullable: true
        lineItemId:
          type: string
          description: The unique identifier of the line item.
          nullable: true
        name:
          type: string
          description: The name of the line item.
          nullable: true
        onsiteDisplayDetails:
          $ref: '#/components/schemas/ExperimentalOnsiteDisplayLineItemDetails'
        retailerId:
          type: string
          description: The retailer id of the associated retailer.
          nullable: true
        serveToOptOutUser:
          type: boolean
          description: >-
            Whether ads are served to users who have opted out of
            personalization.
          nullable: true
        type:
          enum:
            - Unknown
            - SponsoredProduct
            - OnsiteDisplay
          type: string
          description: The type of the line item.
          nullable: true
      additionalProperties: false
      description: "A unit of ad delivery configuration within a campaign. It defines how a specific subset of ads\r\nis targeted."
      nullable: true
    ExperimentalFlightDatesModel:
      type: object
      properties:
        endDate:
          type: string
          description: When the line item expires.
          format: date-time
          nullable: true
        startDate:
          type: string
          description: When the line item becomes active.
          format: date-time
          nullable: true
      additionalProperties: false
      description: Active date range for a line item.
      nullable: true
    ExperimentalUpdateOnsiteDisplayLineItemDetails:
      type: object
      properties:
        auctionDetails:
          $ref: >-
            #/components/schemas/ExperimentalUpdateOnsiteDisplayAuctionLineItemDetails
      additionalProperties: false
      description: >-
        The onsite display settings to change. Omitted fields are left
        unchanged.
    ExperimentalConquestingSettingsModel:
      type: object
      properties:
        conquestingAdStrategyEnabled:
          type: boolean
          description: >-
            Whether the line item may bid on competitors' branded keywords.
            Defaults to false.
          nullable: true
        defensiveAdStrategyEnabled:
          type: boolean
          description: >-
            Whether the line item may bid on the advertiser's own branded
            keywords. Defaults to true.
          nullable: true
        isAdStrategyLocked:
          type: boolean
          description: >-
            Whether the keyword strategy flags have been set and can no longer
            be changed.
          nullable: true
        neutralAdStrategyEnabled:
          type: boolean
          description: >-
            Whether the line item may bid on generic, unbranded category
            keywords. Defaults to true.
          nullable: true
      additionalProperties: false
      description: Which categories of search keyword the line item is eligible to bid on.
      nullable: true
    ExperimentalOnsiteDisplayLineItemDetails:
      type: object
      properties:
        auctionDetails:
          $ref: '#/components/schemas/ExperimentalOnsiteDisplayAuctionLineItemDetails'
      additionalProperties: false
      description: Settings that only apply to onsite display line items.
      nullable: true
    ExperimentalUpdateOnsiteDisplayAuctionLineItemDetails:
      type: object
      properties:
        isDynamicMatch:
          type: boolean
          description: >-
            Whether to serve only products relevant to the page context,
            replacing manual SKU curation.
          nullable: true
      additionalProperties: false
      description: >-
        The auction settings to change on an onsite display line item. Omitted
        fields are left unchanged.
    ExperimentalOnsiteDisplayAuctionLineItemDetails:
      type: object
      properties:
        isDynamicMatch:
          type: boolean
          description: >-
            Whether only products relevant to the page context serve, replacing
            manual SKU curation.
          nullable: true
      additionalProperties: false
      description: Settings that only apply to auction-bought onsite display line items.
      nullable: true
  securitySchemes:
    oauth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.criteo.com/oauth2/token
          scopes: {}
        authorizationCode:
          authorizationUrl: https://api.criteo.com/oauth2
          tokenUrl: https://api.criteo.com/oauth2/token
          scopes: {}

````