- URL:https://<portal-url>/assignUserCredits(POST only)
Description
The Assign User Credits operation (POST only) allows organization administrators to allocate credits for organizational users in ArcGIS Online.
Request Parameters
Parameter | Details |
---|---|
[Common Parameters] | For a complete listing, see Common parameters. |
userAssignments | A JSON array of objects, each contains a pair of user name and the number of credits to designate to that user. A maximum of 100 users can be assigned all together in each request. Example:
|
Response Properties
Property | Details |
---|---|
success | Indicates if the operation was successful. |
notAssignedUsers | A JSON array of user names representing a subset of users whose credits were not assigned successfully. Used when success is true. Example:
|
Example Usage
URL for Assign User Credits
https://www.arcgis.com/sharing/rest/portals/LkFyxb9zDq7vAxAm/assignUserCredits
JSON Response Syntax
{
"success": true | false,
"notAssignedUsers": ["<username1>", "<username2>"...]
}
JSON Response Example
{
"success": true,
"notAssignedUsers": ["user3", "user6"]
}