Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get history of content

Returns the history of a particular piece of content. Example request URI(s):

  • http://example.com/confluence/rest/api/content/1234/history
  • http://example.com/confluence/rest/api/content/1234/history?expand=previousVersion,nextVersion,lastUpdated
  • http://example.com/confluence/rest/api/content/1234/history?cql=creator=currentUser()&cqlcontext={"spaceKey":"TST", "contentId":"55"}&expand=previousVersion,nextVersion,lastUpdated
  • http://example.com/confluence/rest/api/content/1234/history?cql=creator=currentUser()&cqlcontext={"spaceKey":"TST", "contentId":"55"}&expand=previousVersion,nextVersion,lastUpdated&start=0&limit=10
GET/rest/api/content/{id}/history
Path parameters
idstringrequired

the id of the content.

Query parameters
expandstring

a comma separated list of properties to expand on the content. Default value: <code>previousVersion,nextVersion,lastUpdated</code>.

Responses
200

Returns a full JSON representation of the content's history

previousVersionReferenceVersion
Show properties
expandedboolean
idPropertiesobject
nextVersionReferenceVersion
Show properties
expandedboolean
idPropertiesobject
lastUpdatedReferenceVersion
Show properties
expandedboolean
idPropertiesobject
latestboolean
createdByPerson
Show properties
profilePictureIcon
Show properties
pathstring
widthinteger<int32>
heightinteger<int32>
isDefaultboolean
displayNamestring
typestring
createdDatestring<date-time>
contributorsReferenceContributors
Show properties
expandedboolean
idPropertiesobject
lastUpdatedRefReferenceVersion
Show properties
expandedboolean
idPropertiesobject
nextVersionRefReferenceVersion
Show properties
expandedboolean
idPropertiesobject
previousVersionRefReferenceVersion
Show properties
expandedboolean
idPropertiesobject
contentParentRefReferenceContent
Show properties
expandedboolean
idPropertiesobject
404

Returned if there is no content with the given id, or if the calling user does not have permission to view the content.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/content/string/history' \
  -H 'Accept: application/json'
Response
{
  "previousVersion": {
    "expanded": true,
    "idProperties": {}
  },
  "nextVersion": {
    "expanded": true,
    "idProperties": {}
  },
  "lastUpdated": {
    "expanded": true,
    "idProperties": {}
  },
  "latest": true,
  "createdBy": {
    "profilePicture": {
      "path": "http://www.example.com/path/to/image.png",
      "width": 16,
      "height": 16,
      "isDefault": true
    },
    "displayName": "Joe Smith",
    "type": "string"
  },
  "createdDate": "2020-01-01T00:00:00Z",
  "contributors": {
    "expanded": true,
    "idProperties": {}
  },
  "lastUpdatedRef": {
    "expanded": true,
    "idProperties": {}
  },
  "nextVersionRef": {
    "expanded": true,
    "idProperties": {}
  },
  "previousVersionRef": {
    "expanded": true,
    "idProperties": {}
  },
  "contentParentRef": {
    "expanded": true,
    "idProperties": {}
  }
}

Was this page helpful?