Example XML Request & Response - POST User

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

Header:

Content-length: 730
Content-type: application/xml
Accept: application/xml
Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

   <user xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

  <firstName>sample string 2</firstName>

  <lastName>sample string 3</lastName>

  <ssoExternalId>sample string 4</ssoExternalId>

  <email>sample string 5</email>

  <jobTitle>sample string 6</jobTitle>

  <defaultLanguage>English</defaultLanguage>

  <reference>sample string 1</reference>

  <userPermissions>

     <userPermission>

      <centre>

        <reference>sample string 1</reference>

        <id>1</id>

      </centre>

      <subject>

        <reference>sample string 1</reference>

        <id>1</id>

      </subject>

      <permission>

        <id>1</id>

        <assignable>true</assignable>

      </permission>

    </userPermission>

  </userPermissions>

</user>


Response:

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

 < id>3540</id>

  <reference>User Ref 156</reference>

 < href>https://...surpass.com/api/v2/User/3540</href>

  <errors i:nil="true" />

 < serverTimeZone>GMT</serverTimeZone>

</response>


Feedback and Knowledge Base