---
title: "Extend existing subscription"
method: PATCH
path: "/api/v1/subscription/{id}"
tags: ["Subscription"]
---

# Extend existing subscription

`PATCH /api/v1/subscription/{id}`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1/subscription/{id}`
- Auth: API key in header `Authorization`

## Path parameters

- `id` string, required

## Headers

- `Authorization` string
- `X-Impersonate-User` string

## Request body

- Subscription: Subscription resource
  - `id` string: Subscription id
  - `eventTypes` string[]: Signature text (BB code)
  - `notificationUrl` string: Signature text (BB code)
  - `context` string: Signature text (BB code)
  - `validUntil` string, date-time: Time of card creation

## Response `200`

OK

- Subscription: Subscription resource
  - `id` string: Subscription id
  - `eventTypes` string[]: Signature text (BB code)
  - `notificationUrl` string: Signature text (BB code)
  - `context` string: Signature text (BB code)
  - `validUntil` string, date-time: Time of card creation

## Other responses

- `400`: Bad request. Check fields message and error code from response body for additional information.
- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `403`: Requested resource forbidden.Check fields message and error code from response body for additional information.
- `404`: Requested resource not found.
- `409`: Request failed due to conflict resource state.Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
- `451`: Unavailable because account is not verified.

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
