- URL:
- https://<root>/<serviceName>/VersionManagementServer/create
- Methods:
POST
- Required Capability:
- ArcGIS Advanced Editing user type extension license
- Version Introduced:
- 10.6
Description
Create a version off of DEFAULT. The version is associated with the specified feature service.
Request parameters
Parameter | Details |
---|---|
| Specifies the output format of the response. The default response format is Values: |
| Specifies the name of the new version. The version name cannot exceed 62 characters or include any of the following special characters:
Syntax:
|
| Specifies the description of the new version. Ensure the description does not exceed 64 characters. Syntax: |
| Specifies the access permissions of the new version. The default access permission is Values: Example: |
JSON Response syntax
{
"versionInfo" : {
"versionName": <versionName>,
"versionGuid": <guid>,
"versionId": <long>,
"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> ]
}
}
Example usage
Create a named version using the create
operation.
Request URL and parameters:
https
f=json
versionName=carolina
description=Version for new subdivision edits
accessPermission=private
JSON response:
{
"versionInfo": {
"versionName": "portaluser.carolina",
"versionGuid": "{30AD6543-16CD-4291-89CA-E734199EE231}",
"versionId": 2,
"description": "Version for new subdivision edits",
"creationDate": 1567540025752,
"modifiedDate": 1567540025752,
"reconcileDate": null,
"evaluationDate": null,
"previousAncestorDate": null,
"commonAncestorDate": 1567540025752,
"access": "private"
},
"success": true
}