---
title: "Update line item attributes"
method: PUT
path: "/2026-04/line/{lineId}/attribute"
---

# Update line item attributes

`PUT /2026-04/line/{lineId}/attribute`

## Request

- Base URL: `https://api.loopsubscriptions.com/admin`
- URL: `https://api.loopsubscriptions.com/admin/2026-04/line/{lineId}/attribute`
- Auth: API key in header `X-Loop-Token`

The endpoint is used to completely update the attributes of a line item. This requires sending a full representation of the lineItem attributes, as it will overwrite the existing data.

## Path parameters

- `lineId` integer, required

## Request body

- object
  - `attributes` object[], required
    - `key` string
    - `value` string

## Response `200`

Custom attributes updated successfully

- object
  - `success` boolean
  - `message` string
  - `data` unknown
  - `code` string
  - `pageInfo` unknown

---

[API](https://skmtc.dev/loopwork/apis/loop-admin.md) - [All operations](https://skmtc.dev/loopwork/apis/loop-admin/llms.txt) - [OpenAPI document](https://skmtc.dev/loopwork/apis/loop-admin/revisions/1eaf81bcb1ea?raw)
