---
title: "Edit line"
method: PUT
path: "/2023-10/subscription/{subscriptionId}/line/{lineId}/update'"
---

# Edit line

`PUT /2023-10/subscription/{subscriptionId}/line/{lineId}/update'`

This endpoint allows you to update the quantity, pricing, selling plan, and custom attributes of a subscription line item.

## Path parameters

- `subscriptionId` string, required
- `lineId` string, 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 — The discount value associated with the selected discount type. Pass integer value if the type is PERCENTAGE.

## Response `200`

---

[API](https://skmtc.dev/loopwork/apis/storefront-api.md) · [All operations](https://skmtc.dev/loopwork/apis/storefront-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/loopwork/storefront-api/revisions/1524500daa02/schema)
