Alter

URL:
https://<root>/<serviceName>/VersionManagementServer/versions/<versionGuid>/alter
Methods:
POST
Required Capability:
ArcGIS Advanced Editing user type extension license
Version Introduced:
10.6

Description

The alter operation allows you to change the ownerName, versionName, description, and accessPermission for a version.

Only the version owner or version administrator for the service can alter a version.

Request parameters

ParameterDetails

f

Specifies the output format of the response. The default response format is html.

Values: html | json | pjson

ownerName (Optional)

Specifies the new owner's name.

Example: ownerName = jwatson

versionName (Optional)

Specifies the new version name.

Example: versionName = newname

description (Optional)

Specifies a new description of the version.

Example: description = Modified version description details

accessPermission (Optional)

Specifies the new access permission for the altered version.

Values: private | public | protected

Example: accessPermission = public

JSON Response Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
  "success" : <true | false>,
  "error" : { // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}

Example usage

Set the accessPermission parameter to public for a named version using the alter operation.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versions/<versionGuid>/alter

Use dark colors for code blocksCopy
1
accessPermission=public

JSON response:

Use dark colors for code blocksCopy
1
2
3
{
 "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.