Skip To Content
ArcGIS Developers
Dashboard

Update Role

Description

This operation updates a role in the role store with new information. This operation is available only when the role store is a read-write store such as the default ArcGIS Server store.

Request parameters

ParameterDescription
rolename

The name of the role. The name must be unique in the role store.

Example

rolename=editors
description

An optional field to add comments or a description for the role.

Example

description=Group of users that can edit maps
f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample POST request for update:

POST /webadaptor/admin/security/roles/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

rolename=editors&description=Group of users that can edit maps&f=json

The operation parameters can also be provided in JSON format and submitted as a value of the role parameter.

role={
  "rolename": "<rolename>",
  "description": "<description>"
}

JSON Response example

{"status": "success"}