Connect REST API Request Bodies
To perform a POST, PATCH, or PUT request, pass query parameters
or create a request body formatted in either XML or JSON. This chapter
lists the request bodies. The query parameters are listed with each
resource.
To create a JSON request body, specify the properties of the request body in JSON format.
This is an example of a Comment request body.
{
"body" : "Let's look for a new solution."
}
If a request body is top-level, it has a root XML tag listed. To create an XML request body, nest the properties as XML tags inside the root XML tag.
This is the same Connect request body in XML format:
<comment>
<body>Let's look for a new solution.</body>
</comment>