Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

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

POSTGET

Parameters

string username
required

Username

string password
required

Password

string bookingReference

path variable
required

Booking reference in Trainingportal
string newStatus
required

New status for the booking. Possible values:

  • NEW
  • NO_SHOW
  • FAILED
  • COMPLETED
string completionDate
optional
If newStatus=COMPLETED, completionDate is required.

Return value

Returns a status message

successfultrue/false
errorMessageIn case of error, an error message

Example request

URL

https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/booking/update/bdcac92e_a229_42bb_ba29_75add29454b4

POST DATAusername=username&password=secret&newStatus=COMPLETED&completionDate=2015-05-05
{
"sucessful":"true",
"errorMessage":""
}