---
title: "Swap line on subscription"
method: PUT
path: "/2026-04/giftSubscription/{subscriptionId}/line/{lineId}/swap"
---

# Swap line on subscription

`PUT /2026-04/giftSubscription/{subscriptionId}/line/{lineId}/swap`

## Request

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

## Path parameters

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

## Request body

- object
  - `variantShopifyId` integer, required: Shopify ID of the new variant

## Response `200`

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