---
title: "Update a single LineItem"
method: PATCH
path: "/line_items/{id}.json"
tags: ["Line Items"]
---

# Update a single LineItem

`PATCH /line_items/{id}.json`

Outlines the parameters and data fields used when updating a single LineItem

## Path parameters

- `id` integer, required

## Query parameters

- `fields` string

## Headers

- `IF-MATCH` string
- `X-API-VERSION` string

## Request body

- object
  - `data` object, required
    - `activity` object
      - `id` integer — The unique identifier for a single Activity associated with the LineItem. The keyword `null` is not valid for this field.
    - `bill` object
      - `id` integer — The unique identifier for a single Bill associated with the LineItem. The keyword `null` is not valid for this field.
    - `date` string, date — The LineItem date.
    - `description` string — Description of the LineItem.
    - `discount` object
      - `rate` number, double — Discount rate for the LineItem.
      - `type` boolean — Discount type. This should be set to one of: 'percentage' or 'money'.
    - `group_ordering` integer — The LineItem group ordering.
    - `kind` 'Expense' | 'Service' | 'Product' — The specific type of activity which is associated with the LineItem.
    - `matter` object
      - `id` integer — The unique identifier for a single Matter associated with the LineItem. The keyword `null` is not valid for this field.
    - `note` string — The note attached to the LineItem.
    - `price` number, double — The price of the LineItem.
    - `quantity` number, double — Quantity of the LineItem.
    - `secondary_taxable` boolean — Whether the LineItem is secondary taxable.
    - `tax_settings` object[] — Array of objects, with each object representing a tax setting with 'tax_rate_configuration_id', 'order', and 'rule' properties.
      - `tax_rate_configuration_id` integer — The unique identifier of the tax rate configuration associated with the tax setting.
      - `order` integer — The order that the tax setting should be applied in.
      - `rule` 'Pre' | 'Post' — The rule that the tax setting should be applied in.
    - `taxable` boolean — Whether the LineItem taxable.
    - `update_original_record` boolean — Whether the associated activity will be updated.

## Response `200`

Ok

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `412` — Precondition Failed
- `422` — Unprocessable Entity
- `429` — Too Many Requests

---

[API](https://skmtc.net/clio/apis/clio-api-documentation.md) · [All operations](https://skmtc.net/clio/apis/clio-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clio/clio-api-documentation/versions/94a82114ec3b/schema)
