Update a booking
Updates a booking with new status. This method will normally be used when a student has completed a course in the course provider's booking system.
Resource URL
URL: v1/booking/update/{bookingReference}
Request Method
POST | GET |
Parameters
string username | Username |
string password | Password |
string bookingReference path variable | Booking reference in Trainingportal |
string newStatus required | New status for the booking. Possible values:
|
string completionDate optional | If newStatus=COMPLETED, completionDate is required. |
Return value
Returns a status message
successful | true/false | ||
errorMessage | In case of error, an error message |
Example request
URL | |
POST DATA | username=username&password=secret&newStatus=COMPLETED&completionDate=2015-05-05 |
{ "sucessful" : "true" , "errorMessage" : "" } |