Example XML Request & Response - POST TestProfile

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

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

 

Body:

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

  <candidateDetails>

    <All>true</All>

    <candidateDateOfBirthEnable>true</candidateDateOfBirthEnable>

    <candidateFirstNameEnable>true</candidateFirstNameEnable>

    <candidateGenderEnable>true</candidateGenderEnable>

    <candidateLastNameEnable>true</candidateLastNameEnable>

    <candidateReferenceEnable>true</candidateReferenceEnable>

  </candidateDetails>

  <clientLogoMono>

    <image>QEBA</image>

    <name>231</name>

  </clientLogoMono>

  <clientLogocolor>

    <image>QEBA</image>

    <name>230</name>

  </clientLogocolor>

  <finishButtonColours>

    <ColourBackground>#F7D78C</ColourBackground>

    <ColourText>#3D505A</ColourText>

  </finishButtonColours>

  <header_x002F_footerColours>

    <ColourBackground>#3D505A</ColourBackground>

    <ColourText>#FFFFFF</ColourText>

  </header_x002F_footerColours>

  <primaryButtonColours>

    <ColourBackground>#2B9ED8</ColourBackground>

    <ColourText>#FFFFFF</ColourText>

  </primaryButtonColours>

  <profileName>JL Test Style Profile</profileName>

  <providerLogoMono>

    <image>QEBA</image>

    <name>229</name>

  </providerLogoMono>

  <providerLogocolor>

    <image>QEBA</image>

    <name>228</name>

  </providerLogocolor>

  <published>false</published>

  <scoreReportTemplate>

    <name>ScoreReportTEmplateAPI.html</name>

    <scoreReportHtml><html><head></head< <body> <b>A Template</b> </body></html></scoreReportHtml>

  </scoreReportTemplate>

  <secondaryButtonColours>

    <ColourBackground>#3D505A</ColourBackground>

    <ColourText>#FFFFFF</ColourText>

  </secondaryButtonColours>

</testProfile>

 

Response:

 

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

  <id>6543</id>

  <href>https://...surpass.com/api/v2/TestProfile/6543</href>

  <errors i:nil="true" />

</response>

Feedback and Knowledge Base