Example JSON and XML PUT Request and Response - TagValue

Example PUT request (JSON)

https://...surpass.com/api/v2/TagValue/28347

{
  "tagGroup": {

    "Name": "JL Test"

  },

  "tagValue": "JL Tag Value 2",

  "deleted": false
}


Example PUT response (JSON)

{
  "id": 28347,

  "href": "https://...surpass.com/api/v2/TagValue/28347",

  "errors": null
}


Example PUT request (XML)

https://...surpass.com/api/v2/TagValue/28347

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

  <tagGroup xmlns:d2p1="http://schemas.datacontract.org/2004/07/SurpassApiSdk.DataContracts.TagValue">

  <d2p1:Name>JL Test</d2p1:Name>

  </tagGroup>

  <tagValue>JL Test Tag Value</tagValue>

  <deleted>false</deleted>

</tagValue>


Example PUT response (XML)

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

  <id>28347</id>

  <href>https://...surpass.com/api/v2/TagValue/28347</href>

  <errors i:nil="true" />

</response>

Feedback and Knowledge Base