Class ByProjectKeyCustomObjectsPostString

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCustomObjectsPostString>, ErrorableTrait<ByProjectKeyCustomObjectsPostString>, ExpandableTrait<ByProjectKeyCustomObjectsPostString>, ClientRequestCommand<CustomObject>, CreateHttpRequestCommand, HttpRequestCommand<CustomObject>, RequestCommand<CustomObject>

If an object with the given container/key exists, the object will be replaced with the new value and the version is incremented. If the request contains a version and an object with the given container/key, then the version must match the version of the existing object. Concurrent updates to the same Custom Object returns a ConcurrentModification error even if the version is not provided.

Fields with null values will not be saved.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.custom_object.CustomObject>> result = apiRoot
            .withProjectKey("{projectKey}")
            .customObjects()
            .post("")
            .execute()