Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleExample
Transclusion
documentDocuments Service / PATCH
idsfetch-document-IDs-with-curl

Code Block
languagetext
titlecURL Call
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
Tip Box

Using curl -n assumes you are using a .netrc file to authenticate. Please see

Code Block
languagejs
titleinsertProperties.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"
      }
    ]
}

...