---
schema_version: "1"
id: 6c248595e2bf12d71d88257814818d0a7f8a0dccd4d141a059118786226e7863
title: ConnectApi.OCICreateReservationInputRepresentation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_o_c_i_create_reservation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_o_c_i_create_reservation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cde808a3c95966e822147eb999f9f835bf98cbcc05ac707e14ec314fdc915e32
description: Data to reserve inventory at one or more Omnichannel Inventory locations or location groups.
---
# ConnectApi.OCICreateReservationInputRepresentation

Data to reserve inventory at one or more Omnichannel Inventory locations or location groups.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| actionRequestId | String | A UUID that identifies the request. Use the action request IDs in response data to identify which requests succeeded or failed. If the OmnichannelInventoryService class's createReservation method is called, the actionRequestId is used for the reservationId. | Required | 51.0 |
| allowPartial​Reservations | Boolean | When true, if the system can’t create the entire reservation, then it attempts to create a partial reservation. | Optional | 51.0 |
| createRecords | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​OCICreateReservation​SingleInput​Representation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_o_c_i_create_reservation_single.htm "A quantity of a product and an Omnichannel Inventory location or location group at which to reserve it.")\> | A list of product quantities and locations or location groups. The list can include up to 100 elements. | At least one element is required | 51.0 |
| expirationSeconds | Integer | A length of time in seconds. If the reservation isn’t fulfilled within this amount of time after the reservationTime, then it expires. The maximum value is 14400. | Optional | 51.0 |
| externalRefId | String | External reference ID. | Optional | 51.0 |
| reservationTime | String | The time at which to record the reservation. Example: 2020-07-24T21:13:00Z | Optional | 51.0 |