(Subscriptions)
REST APIs for managing subscriptions
- ActivateSubscriptionNamespace - Activate an ignored namespace for a subscription
- IgnoreSubscriptionNamespace - Ignored a namespace for a subscription
Activate an ignored namespace for a subscription
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
ActivateSubscriptionNamespaceRequest req = new ActivateSubscriptionNamespaceRequest() {
NamespaceName = "<value>",
SubscriptionID = "<id>",
};
var res = await sdk.Subscriptions.ActivateSubscriptionNamespaceAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
ActivateSubscriptionNamespaceRequest | ✔️ | The request object to use for the request. |
ActivateSubscriptionNamespaceResponse
Error Type | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.Error | 4XX | application/json |
SpeakeasySDK.Models.Errors.SDKException | 5XX | */* |
Ignored a namespace for a subscription
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
IgnoreSubscriptionNamespaceRequest req = new IgnoreSubscriptionNamespaceRequest() {
NamespaceName = "<value>",
SubscriptionID = "<id>",
};
var res = await sdk.Subscriptions.IgnoreSubscriptionNamespaceAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
IgnoreSubscriptionNamespaceRequest | ✔️ | The request object to use for the request. |
IgnoreSubscriptionNamespaceResponse
Error Type | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.Error | 4XX | application/json |
SpeakeasySDK.Models.Errors.SDKException | 5XX | */* |