You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

projectdoc Toolbox

Tips for using the Web API REST Examples.

Iteration
Facade

.netrc File

 

Using curl -n assumes you are using a .netrc file to authenticate. Please see REST Login to Confluence with cURL for more options.

Alternative to curls -d option for files

 

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:

curl -n -X PATCH  -H "Content-Type: application/json" \
	https://www.smartics.eu/confluence/rest/projectdoc/1/document.json?id-list=70189553 \
	-d '{"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"}]}' 



Transcluded By

NameShort DescriptionDoctype
Deleting Properties
Delete properties for a set of documents specified by their IDs.
section
Fetching Document IDs
Specify a query to fetch document IDs. Pass this list of IDs to other service calls (e.g. to patch properties or sections).
section
Adding Properties
Add properties for a set of documents specified by their IDs.
section
  • No labels