Add Resource

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

[Common Parameters]

For a complete listing, see Common parameters.

key

The name the resource should be stored under.

Example: key=logo.png

file

Multipart HTTP parameter containing the binary file to upload.

text

Some text to be written (for example, JSON or JavaScript) directly to the resource from a web client.

Example: text={"City of Cloud Creek logo"}

Response Properties

Property

Details

success

Indicates if the operation was successful.

Example Usage

http://www.arcgis.com/sharing/rest/portals/fa019fbbfbb845d08cc9f0acde6dd8af/addresource
key:logo.png
text: { "test" : "content" }

JSON Response Syntax

{    
	"success": true | false    
}

JSON Response Example

{    
	"success": true
}

7/5/2017