/resources: User App Resources

URL:
https://<root>/community/users/[userName]/resources
Methods:
GET

Example usage

URL for User App Resources

Use dark colors for code blocksCopy
1
https://www.arcgis.com/sharing/rest/community/users/jsmith/resources

Description

The /resources endpoint will provide access to all user app resources.

Request parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

Response properties

PropertyDetails

[Paging Properties]

The following paging properties are included in the response and they are described in Paging properties.

total, start, num, nextStart

userResources

A JSON array of resource objects along with the resource key, created and size information.

key

The resource key.

access

The type of access to user app resource.

Values: UserAppPrivate | AllOrgUsersPrivateApp | Public | UserPrivateAllApps

  • UserAppPrivate resource is available only to the user through the app from which the resource was uploaded.
  • AllOrgUsersPrivateApp resource is available to all members of the organization where the resource owner is part of and through the app where the resource was uploaded.
  • Public resource is available to everyone (including anonymous access) through any app.
  • UserPrivateAllApps resource is available through any app but only to the user that uploaded the resource.

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "total": <total number of resources on the item>,
  "start": <the first record index in the response>,
  "num": <the number of resources in the response>,
  "nextStart": <the next entry index>,
  "userResources": [
    {
      "key": "<resource key>",
      "clientId": "<app where the resource is uploaded>",
      "created": <resource created datetime>,
      "size": <resource size>,
      "access": "<user app access>
    },
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "total": 3,
  "start": 1,
  "num": 3,
  "nextStart": -1,
  "userResources": [
    {
      "key": "user_settings.json",
      "clientId": "arcgisonline",
      "created": 1522711362000,
      "size": 56945,
      "access": "userappprivate"
    },

  ]
}

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