This endpoint allows you to update a subscription.
200 Subscription successfully updated. 400 Subscription update was unsuccessful.
Copy {
"_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"
}
Copy {
"error": {
"code": "unable_to_locate_subscription",
"en": "Unable to locate subscription object with filter {'_id': ObjectId('60408ec663615152a3a6fc77')}"
},
"error_code": "404",
"http_code": "404",
"success": false
}Go to
Subscription Object Details
to see all the required and optional body parameters allowed when creating a subscription.
HTTP Python JavaScript Ruby PHP Go
Copy 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
}
Copy subs_id = '589b6adec83e17002122196c'
body = {
'is_active' : false
}
subs = client . update_subscription (subs_id, body)
Copy const subscriptionID = '589b6adec83e17002122196c' ;
const body = {
'is_active' : false
};
client .updateSubscription (subscriptionID , body);
Copy subscription_id = "589b6adec83e17002122196c"
payload = {
"is_active" : false
}
client . update_subscription(subscription_id: subscription_id , body: payload)
Copy $body = ( object ) [
'scope' => $scope_arr ,
'is_active' => false ,
'url' => 'https://requestb.in/zp216zzp'
];
$subscriptionid = '589b6adec83e17002122196c' ;
$client -> update_subscription ( $subscriptionid , $body ) ;
Copy subscriptionID := "589b6adec83e17002122196c"
body := `{
"is_active": false
}`
data, err := client. update_subscription (subscriptionID, body)