/resources: User Item Resources

URL:
https://[root]/content/users/[userName]/items/[itemID]/resources
Methods:
GET

Example usage

URL for User item Resources

1
https://www.arcgis.com/sharing/rest/content/users/jsmith/items/0c66beb52dff4994be67937cdadbdb1f/resources

Description

All file resources of an existing item, private item resources are available to the item owner, organization administrators with
portal:admin:updateItems privilege as well as members of group with item update capability.

Request parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

[Paging Parameters]

For a complete list of paging parameters, see Paging parameters.

sortField

Field to sort by.

Supported sort field: size, created, resource

sortOrder

Applies when working with sortField. Describes whether the results return in ascending or descending order. Default is ascending.

Values: asc | desc

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

resources

A JSON array of resource objects along with the created and size information of each. Item resource access property is also available for item owner and organization administrators.

JSON Response syntax

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "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>,
  "resources": [
    {
      "resource": "<resource1>",
      "created": <resource1 created datetime>,
      "size": <resource1 size>
    },
    {
      "resource": "<resource2>",
      "created": <resource2 created datetime>,
      "size": <resource2 size>
    },
    {
      "resource": "<resource3>",
      "created": <resource3 created datetime>,
      "size": <resource3 size>
    }
  ]
}

JSON Response example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "total": 3,
  "start": 1,
  "num": 3,
  "nextStart": -1,
  "resources": [
    {
      "resource": "image/banner.jpg",
      "created": 1522711362000,
      "size": 56945
    },
    {
      "resource": "image/logo.jpg",
      "created": 1522711377000,
      "size": 4027
    },
    {
      "resource": "text/desc.txt",
      "created": 1522711400000,
      "size": 14
    }
  ]
}

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