com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Revisions with REST API

This section explains the following REST operations regarding the version/versions of resources which have been secured with OAuth 2.0.

 

ParameterExplanation
pathPath of the resource
OAuth access tokenAuthorized access token per user for an hour by default
idRevision Id of the resource
startStart page number
sizeNumber of versions to be fetched.

 

Get Revision Paths of a Resource.

AttributesValues
HTTP MethodGET
Request URI/revisions?path={path of the resource}&start={ start page }&size={ number of records }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
DescriptionGet revision paths of the resource
Response Typeapplication/json
ResponseHTTP 200 OK

Get Revision of a  Resource.

AttributesValues
HTTP MethodGET
Request URI/revision?path={path of the resource}&id={revision number}
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
idRevision id of the resource
DescriptionGet the resouece resource for a given revision
Response Typeapplication/octet-stream
ResponseHTTP 200 OK

Create Revision of a  Resource.

AttributesValues
HTTP MethodPOST
Request URI/revision?path={path of the resource}
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
Response Typeapplication/octet-stream
ResponseHTTP 204 No Content.

Delete Revision of a Resource.

AttributesValues
HTTP methodDELETE
Request URI/revision?path={path of the resource}&id={revision number}
idRevision id of the resource
DescriptionDelete the given revision of the resource
Response Typeapplication/json
ResponseHTTP 204 No Content.

 

 

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.