Create A Reservation entity.

Create A Reservation entity.

Creates a Reservation entity.

Request
URI
POST
https://{api_host}/reservation-service/api/reservations
COPY
Request Body

Reservation object to be created

Reservation of type(s) application/json
Required
"Reservation Object"
object
alertPolicy
Optional

alertPolicy

string
reservationTypeId
Optional
Constraints: minLength: 1 maxLength: 255

reservationTypeId

string
reservationPolicyId
Optional
Constraints: minLength: 0 maxLength: 40

reservationPolicyId

integer As int32 As int32
priority
Optional
Constraints: minimum: 0

priority

integer As int64 As int64
version
Optional

version

boolean
enabled
Optional

enabled

object
extensionData
Required

Equivalent of java.util.Map

string As date-time As date-time
lastUpdated
Optional

lastUpdated

string
subTenantId
Optional
Constraints: minLength: 1 maxLength: 255

subTenantId

string As date-time As date-time
createdDate
Optional

createdDate

string
name
Optional
Constraints: minLength: 0 maxLength: 255

name

string
tenantId
Optional
Constraints: minLength: 1 maxLength: 255

tenantId

string
id
Optional
Constraints: minLength: 0 maxLength: 40

id

Responses
200

successful operation

Returns Reservation of type(s) */*
{
    "alertPolicy": {
        "alerts": [
            {
                "referenceResourceId": "string",
                "alertPercentLevel": 0
            }
        ],
        "recipients": [
            "string"
        ],
        "frequencyReminder": 0,
        "emailBgMgr": false,
        "enabled": false
    },
    "reservationTypeId": "string",
    "reservationPolicyId": "string",
    "priority": 0,
    "version": 0,
    "enabled": false,
    "extensionData": {
        "entries": [
            {
                "value": {},
                "key": "string"
            }
        ]
    },
    "lastUpdated": "string",
    "subTenantId": "string",
    "createdDate": "string",
    "name": "string",
    "tenantId": "string",
    "id": "string"
}
object
alertPolicy
Optional

alertPolicy

string
reservationTypeId
Optional
Constraints: minLength: 1 maxLength: 255

reservationTypeId

string
reservationPolicyId
Optional
Constraints: minLength: 0 maxLength: 40

reservationPolicyId

integer As int32 As int32
priority
Optional
Constraints: minimum: 0

priority

integer As int64 As int64
version
Optional

version

boolean
enabled
Optional

enabled

object
extensionData
Required

Equivalent of java.util.Map

string As date-time As date-time
lastUpdated
Optional

lastUpdated

string
subTenantId
Optional
Constraints: minLength: 1 maxLength: 255

subTenantId

string As date-time As date-time
createdDate
Optional

createdDate

string
name
Optional
Constraints: minLength: 0 maxLength: 255

name

string
tenantId
Optional
Constraints: minLength: 1 maxLength: 255

tenantId

string
id
Optional
Constraints: minLength: 0 maxLength: 40

id


201

'Created' is returned for the new Reservation with theReservation url in the location header of the response

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/reservation-service/api/reservations