I'm attempting to update a Confluence page via API using curl as part of a Jenkins pipeline (groovy code.)
My curl data looks like this (ignore the indentation):
--data \'{
\"version\": { \"number\": 12 },
\"title\": \"PageTitle\",
\"type\": \"page\",
\"body\": {
\"storage\": {
\"value\": \"URL: <a href=\"https://testUrl.net/wiki/\">https://testUrl.net/wiki/</a></p>\",
\"representation\": \"storage\"
}
}
}\'
The error I'm getting is this:
{"statusCode":500,"message":"org.codehaus.jackson.JsonParseException: Unexpected character ('h' (code 104)): was expecting comma to separate OBJECT entries\n at [Source: com.atlassian.plugins.rest.common.limitrequest.jersey.LimitingRequestFilter$1@700a4af8; line: 9, column: 184]"}I've tried every combination of double and single quotes around that string that I can think of.