- URL:
- https://[root]/content/users/[userName]/items/[itemID]/updateResources
- Methods:
POST
Example usage
URL for Update Resources
https://www.arcgis.com/sharing/rest/content/users/jsmith/items/0c66beb52dff4994be67937cdadbdb1f/updateResources
Description
The update
operation allows you to update an item's existing file resources. File resources use storage space from your quota and are scanned for viruses. The item size is updated to include the size of updated resource files. There is a limit of 1,000 files per item (except Style items). A maximum of 50 files can be added for each request. Each file should be no more than 50 Mb. The maximum size of all of the file resources for an item is 10 GB. The operation is only available to the item owner, organization administrator and members of the group with item update capability.
This operation supports the following file formats:
- .json
- .xml
- .txt
- .png
- .pbf
- .zip
- .jpeg
- .jpg
- .gif
- .bmp
- .gz
- .svg
- .svgz
- .geodatabase
File resources must be uploaded in an https multipart request pursuant to IETF RFC1867.
Request parameters
Parameter | Details |
---|---|
| For a complete listing, see Common parameters. |
(Optional) | Multipart https parameter containing the binary file to upload. |
(Optional) | Folder name used as a prefix of existing file resources to be updated. Resources prefix has to match that of the existing file resources to The updated file resources can be accessed either by:
or
|
(Optional) | File name used to rename one uploaded For example, you can use |
(Optional) | Text input to update an existing text resource, used together with |
(Optional) | Set file resource to be private regardless of the item Supported values: |
| The response format. The default format is html. Values: |
Response properties
Property | Details |
---|---|
| Indicates whether the operation was successful. |
| The ID of the item that file resources were added to. |
| The owner of the item. |
| The ID of the folder where the item is; |
JSON Response syntax
{
"success": true,
"itemId": "<item id>",
"owner": "<owner username>",
"folder": "<folder id>"
}
JSON Response example
{
"success": true,
"itemId": "0c66beb52dff4994be67937cdadbdb1f",
"owner": "jsmith",
"folder": null
}