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

# Swap line on subscription

`PUT /2023-10/giftSubscription/{subscriptionId}/line/{lineId}/swap`

## Request

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

## Path parameters

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

## Request body

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

## Response `200`

200

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

## Other responses

- `400`: 400

---

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