Update Subscription

Update Subscription

PATCH https://api.synapsefi.com/v3.1/subscriptions/subscription_id

This endpoint allows you to update a subscription.

Path Parameters

NameTypeDescription

subscription_id

string

Object ID of subscription

Headers

NameTypeDescription

Content-Type

string

This value should be application/json

X-SP-GATEWAY

string

Your Client ID & Secret, separated by a pipe

Request Body

NameTypeDescription

is_active

boolean

Active status

{
  "_id": "589b6adec83e17002122196c",
  "_links": {
    "self": {
      "href": "https://uat-api.synapsefi.com/v3.1/subscriptions/589b6adec83e17002122196c"
    }
  },
  "_v": 2,
  "client_id": "589acd9ecb3cd400fa75ac06",
  "is_active": false,
  "scope": [
    "USERS|POST",
    "USER|PATCH",
    "NODES|POST",
    "NODE|PATCH",
    "TRANS|POST",
    "TRAN|PATCH",
    "SUBNETS|POST",
    "SUBNET|PATCH"
  ],
  "url": "https://requestb.in/zp216zzp"
}

Go to Subscription Object Details to see all the required and optional body parameters allowed when updating a subscription.

Example Request

PATCH /v3.1/subscriptions/589b6adec83e17002122196c HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_2bb1e714edd311e6bd04e285d6015267
Content-Type: application/json

{
  "is_active": false
}

Last updated