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
1
PATCH /v3.1/subscriptions/589b6adec83e17002122196c HTTP/1.1
2
Host: uat-api.synapsefi.com
3
X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_2bb1e714edd311e6bd04e285d6015267
4
Content-Type: application/json
5
6
{
7
"is_active": false
8
}
Copied!
1
subs_id = '589b6adec83e17002122196c'
2
body = {
3
'is_active': false
4
}
5
6
subs = client.update_subscription(subs_id, body)
Copied!
1
const subscriptionID = '589b6adec83e17002122196c';
2
const body = {
3
'is_active': false
4
};
5
6
client.updateSubscription(subscriptionID, body);
Copied!
1
subscription_id = "589b6adec83e17002122196c"
2
payload = {
3
"is_active": false
4
}
5
6
client.update_subscription(subscription_id: subscription_id, body: payload)
Copied!
1
$body= (object) [
2
'scope' => $scope_arr,
3
'is_active' => false,
4
'url' => 'https://requestb.in/zp216zzp'
5
];
6
$subscriptionid = '589b6adec83e17002122196c';
7
8
$client->update_subscription( $subscriptionid, $body );
Copied!
1
subscriptionID := "589b6adec83e17002122196c"
2
body := `{
3
"is_active": false
4
}`
5
6
data, err := client.update_subscription(subscriptionID, body)
Copied!
Last modified 7mo ago
Export as PDF
Copy link