Specify a query to fetch document IDs. Pass this list of IDs to other service calls (e.g. to patch properties or sections).
curl -n
-s "https://example.com/confluence/rest/projectdoc/1/document.json?select=Name&from=SPACEKEY&where=%24%3CDokumenttyp%3E%3D%5Bit-service%5D" | jq .
Using cURL it is necessary that the strings of the Query-part of an URL are correctly urlencoded.
e.g. ?where=$<Dokumenttyp>=[it-service] is not a valid query string
So the string following the equal sign must be urlencoded e.g using the linux-urlencode command:
myuser@home ~ # urlencode "$<Dokumenttyp>=[it-service]"
%24%3CDokumenttyp%3E%3D%5Bit-service%5D
This results to the following complete query string:
?where=%24%3CDokumenttyp%3E%3D%5Bit-service%5D
{
"size": 63,
"start-index": 0,
"max-result": 63,
"id-list": "6291527,6291530,8520652,8520665,7308961,6295008,6295086,6295038,...,6291777,6291781,6291783",
"document": [
{
"id": 6291527,
...
The value for id-list
may be used to patch this set of documents.