- URL:
- https://[root]/community/users/[userName]/addResource
- Methods:
POST
Example usage
Below is a sample ArcGIS Enterprise POST request for add
:
POST /webadaptor/sharing/rest/community/users/jdoe/addResource HTTP/1.1
Host: machine.domain.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 resource operation (POST only) allows the administrator to add a file resource, for example, the organization's logo or custom banner. The resource can be used by any member of the organization. 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}