---
title: "Edit line"
method: PUT
path: "/2026-04/subscription/{subscriptionId}/line/{lineId}/update"
---

# Edit line

`PUT /2026-04/subscription/{subscriptionId}/line/{lineId}/update`

## Request

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

This endpoint allows you to update the quantity, pricing, and selling plan

## Path parameters

- `subscriptionId` integer, required
- `lineId` integer, required

## Request body

- object
  - `quantity` integer, required: New quantity of a particular line in a subscription contract.
  - `sellingPlanGroupId` integer: The selling plan group ID to be applied to the subscription line item.
  - `pricingType` 'CUSTOM' | 'SELLING_PLAN': The pricing type to be applied to the subscription line item.
  - `customDiscount` object: The custom discount configuration to be applied when pricingType is set to CUSTOM.
    - `type` string: The type of custom discount to be applied to the subscription line item.
    - `value` number, float: The discount value associated with the selected discount type. Pass integer value if the type is PERCENTAGE.

## Response `200`

Line 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)
