ArcGIS REST API

Role

Description

This resource lists properties of a custom role.

Viewer is a pre-built custom role, thus it does not allow to be updated or deleted through the Update Role, Set Role Privileges, or Delete Role operations.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see common parameters.

Response Properties

PropertyDetails
id

The ID of the role.

name

The name of the role.

description

The description of the role.

created

The date the role was created. Shown in UNIX time in milliseconds.

modified

The date the role was last modified. Shown in UNIX time in milliseconds.

Example Usage

URL for Role

https://www.arcgis.com/sharing/rest/portals/LkFyxb9zDq7vAxxx/roles/2a5MU7lBcBWutf4S

JSON Response Syntax

{
  "id": "<role id>",
  "name": "<role name>",
  "description": "<role description>",
  "created": date created shown in UNIX time,
  "modified": date last modified shown in UNIX time
}

JSON Response Example

{
  "id": "Pi5ZcW4sddhtho45",
  "name": "Viewer",
  "description": "custom viewer",
  "created": 1472061811000,
  "modified": 1472061811000
}