Example JSON Request & Response - POST User

https://...surpass.com/api/v2/User/

Header:

Content-length: 1025
Content-type: application/json
Accept: application/json
Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

{

  "reference": "JamesL",

  "firstName": "James",

  "lastName": "Lomax",

  "ssoExternalId": "sample string 4",

  "email": "testuser@btl.com",

  "jobTitle": "Invigilator",

  "defaultLanguage": "English",

  "userPermissions": [

    },

    {

      "centre": {

        "id": 1,

        "reference": "sample string 1"

      },

      "subject": {

        "id": 1,

        "reference": "sample string 1"

      },

      "permission": {

        "id": 1,

        "assignable": true

      }

    },

  ]


Response:

{

  "id": 3541,

  "reference": "User Ref 156",

  "href": "…surpass.com/api/v2/User/3541",

  "errors": null,

  "serverTimeZone": "GMT"

}


Feedback and Knowledge Base