- URL:
- https://<root>/<serviceName>/VersionManagementServer/versions/<versionGuid>/post
- Methods:
POST- Required Capability:
- Edit privilege (features:user:edit)
- Version Introduced:
- 10.6
Description
The post operation allows the client to post the changes in their version to the DEFAULT version.
- The reconcile operation must be performed before the
postoperation. - Requires the same
sessionand organization member as used for the startEditing operation.ID - If the features being posted have been modified in the DEFAULT version since the reconcile, an error will be returned and the version will have to be reconciled again before posting.
The post operation is supported both synchronously and asynchronously.
Review the read and edit session requirements for version resource operations.
Request parameters
| Parameter | Details |
|---|---|
| Specifies the output format of the response. The default response format is Values: |
| Specifies the client-generated session ID (GUID). Syntax : |
| Specifies the rows (features or objects) that will be used when posting a subset of edits in the current version to the DEFAULT version. The object IDs provided must be edits in the current version, which can be obtained from the When the This parameter was introduced at ArcGIS Enterprise 10.9.
Syntax: Example: |
| Specifies whether the request will be processed asynchronously. If Values: This parameter was introduced at ArcGIS Enterprise 10.9.1. |
JSON Response syntax
JSON response (when async = false):
{
"moment" : <unix timestamp in milliseconds>,
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <error message>,
"details" : [ <detail> ]
}
}JSON response (when async = true):
{
"statusUrl" : <url>
}JSON response to the status URL (when pending or in progress):
{
"status" : "<Pending | InProgress>",
"submissionTime" : <unix timestamp in milliseconds>,
"lastUpdatedTime" : <unix timestamp in milliseconds>
}Example usage
The following is a sample POST request for the post operation to post edits from a named version to the DEFAULT version.
Request URL and parameters:
https
f=json
sessionId={3E11BA55-9A50-4EDD-A694-D5C4F21CD40D}
async=falseJSON response:
{
"moment": 1602605793507,
"success": true
}