Skip To Content

Version Infos

Description

For the specified feature service, the versionInfos operation returns the information for all versions that the current user has access to.

Learn more about version access for branch versions

Request parameters

ParameterDetails
f

Description: The response format. The default response format is html.

Values: html | json

ownerFilter

Description: Filters the versions by owner. This is an optional parameter.

Syntax: ownerFilter=<userIdentity>

includeHidden

Description: Specifies whether versions with hidden access will be retuned. The default is false.

Values: true | false

JSON Response syntax


{
 "versions": [ 
  "versionName": <versionName>,
  "versionGuid": <guid>,
  "description": <description>,
  "creationDate": <dateTime>,
  "modifiedDate": <dateTime>,
  "reconcileDate": <dateTime>,
  "evaluationDate": <dateTime>,
  "commonAncestorDate": <dateTime>,
	 "access": "private" | "public" | "protected"
  } 
 ],
  "success" : <true | false>,
  "error" : { // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}

Nota:
The evaluationDate version property is only updated when evaluating with the changesInVersion parameter set to true. To learn more, review the changesInVersion request parameter for the evaluate operation.

Example usage

Return information for versions using the versionInfos operation.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versionInfos


f=json
ownerFilter=unadmin
includeHidden=false

JSON response:


{
 "versions": [
  {
   "versionName": "unadmin.project2a",
   "versionGuid": "{496C55E1-86EA-4F06-8FC8-8D5BBCBD7761}",
   "description": "Created from the rest endpoint",
   "creationDate": 1549926318552,
   "modifiedDate": 1549926318552,
   "reconcileDate": null,
   "evaluationDate": null,
   "commonAncestorDate": 1549926318552,
   "access": "public"
  },
  {
   "versionName": "unadmin.project2b",
   "versionGuid": "{E8EBB6AE-F7D8-45B2-806E-D745943682FC}",
   "description": "Created from the rest endpoint",
   "creationDate": 1549926344967,
   "modifiedDate": 1549926344967,
   "reconcileDate": null,
   "evaluationDate": null,
   "commonAncestorDate": 1549926344967,
   "access": "public"
  }
 ],
 "success": true
}