Read Version Info of an Item

get

/content/management/api/v1.1/items/{id}/versionInfo

Read version information of a given item.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemSubResourceListVersionInfo
Type: object
Item SubResource.
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : VersionInfo
Type: object
VersionInfo
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to read version information of a given item.

curl -i -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/items/{id}/versionInfo'

Example:

This reads version information of item id: COREB423D3839C634CD485B76C696E58C41F.

/content/management/api/v1.1/items/COREB423D3839C634CD485B76C696E58C41F/versionInfo

Response Body

{
        "data": [
          {
            "latestVersion": "2.001",
            "publishedVersion": "2"
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/COREB423D3839C634CD485B76C696E58C41F/versionInfo",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }
Back to Top