changes.mady.by.user Anton Kronseder
Saved on 01. Aug 2017
...
curl -n -X PATCH -H "Content-Type: application/json" \ https://example.com/confluence/rest/projectdoc/1/document?id-list=12845218,12845219,12845221 \ -d @insertProperties.json
{ "property": [ { "name": "Customer Support URL", "value": "<a href=\"https://example.atlassian.net/servicedesk/customer/portal/1\">Customer Support</a>", "controls": "", "position": "after", "ref": "Short Name" }, { "name": "Service Contact", "value": "<a href=\"mailto:support@example.com\">support@example.com</a>", "controls": "", "position": "after", "ref": "Iteration" } ] }
The curl option -d @filename assumes the data that shall be used to PATCH the given resources is in the given file. If you prefer a one-liner the escaped content of the file must follow directly the -d option: