Class ByProjectKeySubscriptionsPostString

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeySubscriptionsPostString>, ErrorableTrait<ByProjectKeySubscriptionsPostString>, ClientRequestCommand<Subscription>, CreateHttpRequestCommand, HttpRequestCommand<Subscription>, RequestCommand<Subscription>

A test notification is sent to ensure the correct configuration of the Destination. If the notification cannot be delivered, the Subscription will not be created. The payload of the test notification is of type ResourceCreated for the resourceTypeId subscription.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.subscription.Subscription>> result = apiRoot
            .withProjectKey("{projectKey}")
            .subscriptions()
            .post("")
            .execute()