- URL:
- https://[root]/community/users/[userName]/addResource
- Methods:
POST
Example usage
Below is a sample ArcGIS Enterprise POST request for add:
POST /<context>/sharing/rest/community/users/jdoe/addResource HTTP/1.1
Host: organization.example.com
Content-Type: multipart/form-data; boundary=----boundary
Content-Length: []
----boundary
Content-Disposition: form-data; name="key"
logo.png
----boundary
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
<content of file>
----boundary
Content-Disposition: form-data; name="text"
City of Cloud Creek logo
----boundary
Content-Disposition: form-data; name="clientId"Description
The add user resource operation (POST only) allows a user or administrator to add a file resource, for example, a thumbnail. The resource is only available for use by the user. File resources use storage space from your quota and are scanned for viruses.
If the file resource is from a file, it must be uploaded in an HTTP multi-part request as per IETF RFC1867.
Request parameters
| Parameter | Details |
|---|---|
| The name the resource should be stored under. |
| Multipart HTTP parameter containing the binary file to upload. |
| Some text to be written (for example, JSON or JavaScript) directly to the resource from a web client. |
JSON Response example
{"success": true}