- URL:
- https://[root]/content/users/[userName]/export
- Methods:
- POST
Example Usage
The following is a sample ArcGIS Online POST request for the export operation:
POST /sharing/rest/content/users/jsmith/export HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
itemId=345313e619df46f387f9ededbe15ac56&title=MyExportedFeatures&exportFormat=shapefile&exportParameters={"layers":[{"id":0}]}&f=pjsonThe following is a sample ArcGIS Enterprise POST request for the export operation:
POST /<context>/sharing/rest/content/users/jsmith/export HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
itemId=345313e619df46f387f9ededbe15ac56&title=MyExportedFeatures&exportFormat=shapefile&exportParameters={"layers":[{"id":0}]}&f=pjsonDescription
The export operation exports a hosted service item to a specified output format.
Request Parameters
| Parameter | Details | 
|---|---|
| 
 | The ID of the item to be exported. Example:  | 
| 
 | The output format for the export. Values:  | 
| 
 | A JSON object describing the layers to be exported and the export parameters for each layer.  If  Example:  | 
| 
 | The response format. The default format is  Values:  | 
Export Parameters JSON Object
| Property | Description | 
|---|---|
| 
 (Required) | An array of  | 
| 
 | The target spatial reference for the exported features. | 
Export Layer Info JSON Object
| Property | Description | 
|---|---|
| 
 (Required) | The ID of the layer within the service to be exported. | 
| 
 | A where clause used to filter features for the layer. | 
| 
 | Controls if feature geometries are included in the export results. The default is 'true'. | 
| 
 | Only applies to CSV  | 
| 
 | Only applies to CSV  | 
Response Properties
| Property | Details | 
|---|---|
| 
 | The type of the resulting item. | 
| 
 | The size of the resulting item. | 
| 
 | The job ID of the export job. | 
| 
 | The ID of the result item of the export. | 
| 
 | The ID of the service item that was exported. | 
| 
 | The format of the export. | 
JSON Response Syntax
{
    "type":<type of the exported  item>,
    "size":<size of the exported item>,
    "jobId":<jobId for the export job>
    "exportItemId":<id of the exported item that is created>,
    "serviceItemId": <id  of the hosted feature service item that was exported>,
    "exportFormat": <exportFormat>
}JSON Response Example
{
    "type" : "Shapefile",
    "size" : 656325,
    "jobId" : "340f0f98-a5d2-48c0-b8ab-a1b418529024",
    "exportItemId" : "4e37b0b8550a40709f02a695cd9fc4fc",
    "serviceItemId":"2e39b0b9550a40709f02a697cd9fc4fb",
    "exportFormat" : "Shapefile"
}