Class ByProjectKeySubscriptionsPostString

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeySubscriptionsPostString,Subscription>
com.commercetools.api.client.ByProjectKeySubscriptionsPostString
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeySubscriptionsPostString>, ErrorableTrait<ByProjectKeySubscriptionsPostString>, io.vrap.rmf.base.client.ClientRequestCommand<Subscription>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<Subscription>

public class ByProjectKeySubscriptionsPostString extends io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeySubscriptionsPostString,Subscription> implements Deprecatable201Trait<ByProjectKeySubscriptionsPostString>, ErrorableTrait<ByProjectKeySubscriptionsPostString>

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("")
            .execute()