Class ByProjectKeyInventoryPostString

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyInventoryPostString>, ErrorableTrait<ByProjectKeyInventoryPostString>, ExpandableTrait<ByProjectKeyInventoryPostString>, ClientRequestCommand<InventoryEntry>, CreateHttpRequestCommand, HttpRequestCommand<InventoryEntry>, RequestCommand<InventoryEntry>

Creates an InventoryEntry in the Project.

If quantity limits are provided, existing Line Items that reference a Product Variant with an SKU that matches the Inventory Entry can be affected. For more information, see Quantity limits.

Produces the InventoryEntryCreated Message.



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