Links

Update Subscription

patch
https://api.synapsefi.com
/v3.1/subscriptions/subscription_id
Update Subscription
Go to Subscription Object Details to see all the required and optional body parameters allowed when updating a subscription.

Example Request

HTTP
Python
JavaScript
Ruby
PHP
Go
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
}
subs_id = '589b6adec83e17002122196c'
body = {
'is_active': false
}
subs = client.update_subscription(subs_id, body)
const subscriptionID = '589b6adec83e17002122196c';
const body = {
'is_active': false
};
client.updateSubscription(subscriptionID, body);
subscription_id = "589b6adec83e17002122196c"
payload = {
"is_active": false
}
client.update_subscription(subscription_id: subscription_id, body: payload)
$body= (object) [
'scope' => $scope_arr,
'is_active' => false,
'url' => 'https://requestb.in/zp216zzp'
];
$subscriptionid = '589b6adec83e17002122196c';
$client->update_subscription( $subscriptionid, $body );
subscriptionID := "589b6adec83e17002122196c"
body := `{
"is_active": false
}`
data, err := client.update_subscription(subscriptionID, body)