Use Try It Out to Update Learner Details

The following example describes how REST Services can be used to update learner data.

Note: Refer to Use the Try It Out Functionality for a video describing this process.

To update learner data:

  1. Open the relevant learner record using the Learner Search and make a note of their Person Code.

    Learner Search

  2. Copy the Web service host URL institution setting (on the General (Cross System) screen).

    Web service host URL setting

    Note: The URL of your REST Services documentation is stored in the Web service host URL setting on the General (Cross-System) screen in Institution Settings.

  3. Open a browser and paste the URL into the browser’s address bar, appending the URL with /docs (that is: http://<web service host URL>/docs).

    The ebs REST Documentation page is displayed.

    REST Services documentation

    Services with a greyed-out padlock icon require authentication, so first, you must authorise the REST services session to use the Try It Out functionality.

The REST services states are described in the following table.

REST icon REST service state
Unauthorised Unauthorised - authorisation is required before 'Try it out' functionality is enabled.
Authorised Authorised - 'Try it out' functionality is enabled.
  1. Click the Authorize button.

    Authorize button

    The Available authorizations window is displayed.

    Available authorisations window

  2. Enter your username and password. Click the Authorize button.

    Authorize button

  3. Click Close.

    Close button

  4. Click the Authentication REST Service.

    Authentication REST Service

    The Authentication REST service is displayed.

    Authentication REST service

  5. Click the Try it out button.

    Try it out button

  6. Click the Execute button.

    Execute button

    Copy the string from between the two token values found in the Responses body section (for example: <Token>123456789ABCDEFG</Token>).

    Token string

  7. Click the Authorize button.

    Authorize button

    The Available authorizations window is displayed.

  8. Paste the token into the Value field and click the Authorize button.

    Authorize button

  9. Click Close.

    Close button

  10. Browse to the People section and click the PUT/People/{personCode} REST Service to expand it.

    PUT/People/{personCode} REST Service

  11. Click the Try it out button.

    Try it out button

  12. Enter the personCode of the learner to be updated into The person code of the person to be updated field.

    The person code of the person to be updated field

  13. Substitute the relevant string value in the Edit value field for the alteration (for example: change the "Forename": "string", value to "Forename": "John",) and remove all unaltered fields, except for the opening and closing brackets (that is: {"Forename": "John",}).

    Edit value

  14. Click the Execute button.

    Execute button

    The response is displayed on screen: 

    • 200 - update successful

    • 400 - there was a problem updating the learner’s record

    • 404 - the learner’s record could not be found

    200 indicates that your update was successful

  15. Use the Learner Search to verify that the update was successful.

    Learner Details

Back to top