# Update Line Item

<mark style="color:green;">`PUT`</mark> `/lineitem/:lineItemId`

Use this method to update your line item.

#### **Path Parameters**

| Name       | Type   | Description         |
| ---------- | ------ | ------------------- |
| lineItemId | Number | ID of the line item |

#### **Headers**

| Name          | Value           |
| ------------- | --------------- |
| Authorization | `Basic <token>` |

#### **Body**

```typescript
{
  name?: string,
  is_archived?: boolean,
  status?: string, //Options ('needs_creative', 'ready', 'delivering', 'paused', 'completed')
  mediatype?: string, //Options ('banner', 'video', 'native', 'audio')
  delivery?: {
    start_date?: string,
    end_date?: string,
    rate?: number,
    cur?: string, //Options('EUR', 'USD')
    quantity?: number,
    rate_type?: string,
    ratio?: number
  },
  targetings?: [
    {
    'targeting_type': { //Options ('Browser', 'Connection', 'Country', 'Device', 'OS', 'Page', 'Site', 'SupplierSegment', 'TagId')
        type: string, //Options ('Included', 'Excluded')
        filters: string[]
      }
    }
  ],
  comment?: string
}
```

#### **Response**

{% tabs %}
{% tab title="200 : OK Line Item updated" %}

```json
{
  "id": number,
  "name": string,
  "is_archived": boolean,
  "account": {
    "id": number,
    "name": string
  },
  "order": {
    "id": number,
    "name": string
  },
  "status": string, //Options ('needs_creative', 'ready', 'delivering', 'paused', 'completed')
  "mediatype": string, //Options ('banner', 'video', 'native', 'audio')
  "delivery": {
    "start_date": string,
    "end_date": string,
    "rate": number,
    "cur": string, //Options('EUR', 'USD')
    "quantity": number,
    "rate_type": string,
    "ratio": number
  },
  "targetings": [
    {
    'targeting_type': { //Options ('Browser', 'Connection', 'Country', 'Device', 'OS', 'Page', 'Site', 'SupplierSegment', 'TagId')
        "type": string, //Options ('Included', 'Excluded')
        "filters": string[]
      }
    }
  ],
  "comment": string,
}
```

{% endtab %}

{% tab title="401 : Unauthorized" %}

```
Unauthorized
```

{% endtab %}
{% endtabs %}
