Class ByProjectKeySubscriptionsPost

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

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



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