POST SUT Reservation ID Update Method
This method returns the newly updated reservation. Note that no parameters can be set during a reservation update, the server will update the reservation IP to the IP the update request came from.
Syntax:
POST /api/sut_reservation/<id>/update
Curl
$> curl -X POST 'http://localhost:8080/api/sut_reservation/5908210b44455345404f0000/update' -H 'Authorization: Basic YWRtaW46YWRtaW4='
Raw Request
POST /api/sut_reservation/5908210b44455345404f0000/update HTTP/1.1
Host: localhost:8080
Authorization: Basic YWRtaW46YWRtaW4=
Write Keys
Parameter | Type |
---|---|
start_time | DateTime |
end_time | DateTime |
user_id | Id |
sut_id | Id |
start_in | |
duration |
Response Body
{
"_id": "5908210b44455345404f0000",
"created_at": "2017-05-02T06:02:51.400Z",
"updated_at": "2017-05-02T06:02:53.476Z",
"start_time": "2017-05-02T06:00:00+00:00",
"end_time": "2017-05-02T06:15:00+00:00",
"user_id": "590780914445534540190000",
"sut_id": "58c38f5d444553252cce0000",
"listen_port": 5903
}