Using HTML formatting in description when creating a task through API & cURL
In the API documentation, it mentions (https://developers.wrike.com/documentation/api/datatypes/description)
> Task description can be set and received in HTML format with a limited set of tags. See table below for a list of allowed tags.
When creating a task by using cURL though (following the documentation on https://developers.wrike.com/documentation/api/methods/create-task), it looks like it hangs up with using <> (both plain and URL encoded) and throws an error.
Do I have to enclose the description in quotes or is there a different way to pass along this HTML to include it in creating a task?
Example code in PHP (like I said, I've used url encoding and non-encoding in order to escape the single quotes with no luck):
curl -g -X POST -H 'Authorization: bearer [REDACTED]' -d 'title=[New Opp] - Website - T2&status=Active&dates={"start":"2019-09-18 14:18:41","due":"2019-11-01 00:00:00"}&description=<ul><li><b>Company Name:</b> CLIENT NAME</li><li><b>Client Email:</b> john.doe@example.com</li><li><b>Project URL:</b> https://example.com/</li></ul>&customFields=[{"id":"IEABLR4CJUAATOCF","value":"25000"}]' 'https://www.wrike.com/api/v4/folders/TASK_ID/tasks'
And... never mind. I was able to post it by urlencoding the sections that have HTML, but leaving the rest of the string alone.
I'm having a similar issue with the "Create Task" API.
I changed the Description field to HTML. But when sending information from a String, the formatting is lost.
Desired Result
Actual Result