URL:
https://<root>/portals/[portalID]/security/secureconfigs/[configID]/update
Methods:
POST
Version Introduced:
12.2

Example usage

The following is a sample POST request for the update operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/sharing/rest/portals/0123456789ABCDEF/security/secureconfigs/VLbEagHGpW3snTc9/update HTTP/1.1
Host: organization.example.com
Content-Type:  application/x-www-form-urlencoded
Content-Length: [ ]

name=G3DTiles Credentials&description=To be used for Google 3D Photorealistic Basemap&credentialType=AGOL_CREDENTIALS&usagePurpose=G3DTiles&status=active&configJson={"authenticationProperties": {"username":"userG3D","authenticationUrl":"https://www.arcgis.com/sharing/rest/generateToken"},"authenticationSecrets": {"password": "updatedPassword"}}&token=<token>

Description

The update operation can be used to modify aspects of a currently configured ArcGIS Online administrative credentials, such as the name, description, status, and account credentials. While this operation can be performed from the Portal Directory API, its recommended that these credentials are added to the organization from the portal site's organization settings page, under Map and scene.

Request parameters

ParameterDetails

name

(Required)

A user-specified name for the configuration.

Use dark colors for code blocksCopy
1
name=G3DTiles Credentials

description

(Optional)

An optional user-specified description for the configuration.

Use dark colors for code blocksCopy
1
description=To be used for Google 3D Photorealistic Basemap

credentialType

(Required)

The type of credentials being stored. At ArcGIS Enterprise 12.2, the only supported type is AGOL_CREDENTIALS.

Values: AGOL_CREDENTIALS

usagePurpose

(Required)

The organization feature the credentials are used for. At ArcGIS Enterprise 12.2, the only supported purpose is G3DTiles.

Values: G3DTiles

status

(Required)

The current status of the credentials, indicating whether they are actively being used or if they are inactive.

Values: active | unused

configJson

(Required)

A JSON object that contains the authentication properties needed to access the ArcGIS Online account, including the account's username and password as well as a URL that points to the specified authentication method for the ArcGIS Online account.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
configJson={
  "authenticationProperties": {
    "username":"<username>",
    "authenticationUrl":"<url>"
  },
  "authenticationSecrets": {
    "password": "<password>"
  }
}

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
  "authenticationProperties": {
    "username":"userG3D",
    "authenticationUrl":"https://www.arcgis.com/sharing/rest/generateToken"
  },
  "authenticationSecrets": {
    "password": "samplePassword"
  }
}

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