Cannot expand details of last updater when calling content REST API

XMLWordPrintable

    • Severity 3 - Minor

      This expand does not work even if the returned JSON suggests that it should work:

      GET .../rest/api/content/<pageId>?expand=history.lastUpdated.by.details
      {
          "id": "18972673",
          "type": "page",
          "status": "current",
          "title": "dummy macro",
          "history": {
              "lastUpdated": {
                  "by": {
                      "type": "known",
                      "username": "admin",
                      "userKey": "ff80808154711efd0154711f21360001",
                      "profilePicture": {
                          "path": "/wiki/images/icons/profilepics/default.png",
                          "width": 48,
                          "height": 48,
                          "isDefault": true
                      },
                      "displayName": "Jens Rutschmann",
                      "_links": {
                          "self": "https://jens-k15t.atlassian.net/wiki/rest/experimental/user?key=ff80808154711efd0154711f21360001"
                      },
                      "_expandable": {
                          "details": ""
                      }
                  },
                  ...
              },
              ...
          },
          ...
      }
      

      Because of this we need to do separate calls for each page we're exporting.

            Assignee:
            Engin Tekin
            Reporter:
            Jens Henrik Jens Henrik
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: