- URL:
- https://[root]/content/users/[userName]/items/[itemID]/addPart
- Methods:
POST
Example usage
https://www.arcgis.com/sharing/rest/content/users/jsmith/items/49bf5db6340e4bccaceca5af3b2bec4b/addPart
Description
The add
operation is used when performing the Add Item or Update Item operations in multipart mode to upload file parts. When performing the operation, the part being uploaded is given a part number that indicates its position amongst the other uploaded parts.
Each part can be uploaded at any time, in any order, and can even be uploaded simultaneously.
Each file part must be uploaded in an HTTP multipart request pursuant to IETF RFC1867.
Request parameters
Parameter | Details |
---|---|
| For a complete listing, see Common parameters. |
| The file to be uploaded. |
| Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely identifies a part and also defines its position within the object being created. If you upload a new part using the same part number that was used with a previous part, the previously uploaded part is overwritten. Example:
|
Response properties
Property | Details |
---|---|
| Indicates if the operation was successful. |
| The ID of the item containing the part. |
JSON response syntax
{
"success": true | false,
"id": "<item id>",
}
JSON response example
{
"success": true,
"id": "49bf5db6340e4bccaceca5af3b2bec4b",
}