7.2

Table Of Contents
}
},
{
"key": "resourcePool",
"value": {
"type": "entityRef",
"componentId": null,
"classId": "ResourcePools",
"id": "4e51fabc-19e8-4e79-b413-d52309b3bb62",
"label": "CoreDev"
}
}]
}
}
The following output is returned based on the command input.
If the command is successful, the HTTP response body is empty except for a 204 No Content
status statement.
Syntax for Updating a Reservation
You can use the vRealize Automation REST API reservation service to update an existing reservation.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL hps://$host/reservation-service/api/reservations/$reservationId
Method Put
$host Species the host name and fully qualied domain name or IP
address of the vRealize Automation identity server.
$token Species a valid HTTP bearer token with necessary credentials.
$reservationId Species the unique identier of the reservation to update. For
information about how to obtain the reservation ID, see “Syntax for
Displaying a List of Reservations,” on page 249.
HTTP body Contains the JSON information for the reservation, including the
updated data for the parameters that you want to update.
Most of this JSON string information is obtained by displaying the
existing details of the $reservationId. See “Syntax for Verifying a
Reservation and Geing Reservation Details,” on page 236. The rest
of the JSON string information is obtained by using an API
command to get the ID of the parameter you want to update.
For example, to update the reservation to use a dierent compute
resource than the one currently specied, replace the
computeResource value of the exiting reservation with a new
computeResource value in the command's HTTP input.
Output
If the command is successful, the HTTP response body is empty except for a 204 No Content status
statement.
Chapter 3 REST API Use Cases
VMware, Inc. 259