updateRole

POST
1
/{orgId}/{itemId}/community/roles/{roleName}

Create or update a role

Create or update a role with new privileges and groups. The new input values will replace any existing values defined for the role. Privileges are associated to roles and then those roles are associated to groups in the organization. This association permits or restricts application functionality based on what groups a user is a members of. The adminAdvanced privilege is required.

Query parameters

NameTypeRequired

token

string

Body parameters

Supported content types: application/json

NameTypeRequiredDescription

A role object defining the role

body

A role object defining the role

Path parameters

NameTypeRequired

roleName

string

orgId

string

itemId

string

Examples

Request

1
2
3
4
5
6
# You can also use wget
curl -X POST /{orgId}/{itemId}/community/roles/{roleName} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  --data '{"roleName":"string","description":"string","privileges":["string"]}'

Response

StatusMeaningDescriptionSchema

200

OK

success

Success

400

Bad Request

invalid role

WorkflowJsonExceptionDTO

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close