How to preseve markup tags in Description field in the payload when creating artifacts with Web Services API

Document ID : KB000057551
Last Modified Date : 14/02/2018
Show Technical Document Details


A user tries to include xml tags in the payload but they are ignored.


In this example a defect is created when hitting this endpoint:

The user initially tried the following payload:


which created a defect where Description field did not include xml tags:

User-added image

To preserve the markup tags use &lt; and &gt; as shown below:


Here is the outcome:

User-added image

A screenshot from Chrome's Advanced Rest Client shows that API Key in zsessionid header is used for authentication:

User-added image