---
updatedAt: 2025-06-10T00:35:40.000Z
agentTools:
  projectIndex: https://docs.stay.ai/llms.txt
---

# Remove Lines

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "line-updates",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.retextion.com/api/v2/subscriptions"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "x-default": "{{APP_API_KEY}}",
        "name": "X-RETEXTION-ACCESS-TOKEN"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{subscriptionId}/remove-lines": {
      "post": {
        "summary": "Remove Lines",
        "description": "",
        "operationId": "remove-lines",
        "parameters": [
          {
            "name": "subscriptionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "lines"
                ],
                "properties": {
                  "lines": {
                    "type": "array",
                    "description": "An array of Stay line item IDs.",
                    "default": [
                      "gid://shopify/SubscriptionLine/:SubscriptionLineID"
                    ],
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "examples": {
                "Example Body": {
                  "value": {
                    "lines": [
                      "clgazalu3000009mg1a9cguco",
                      "clgazb6hi000209mg3wi8algw"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```