- URL:
- https://[root]/content/users/[userName]/export
- Methods:
- POST
Example Usage
URL for Export Item
https://www.arcgis.com/sharing/rest/content/users/jsmith/export
itemId=345313e619df46f387f9ededbe15ac56
title:"MyExportedFeatures"
exportFormat="Shapefile"
exportParameters={"layers": [ {"id" : 0 } ] }Description
Exports a service item (POST only) to the specified output format. Available only to users with an organizational subscription. Invokable only by the service item owner or an administrator.
Request Parameters
| Parameter | Details | 
|---|---|
| 
 | For a complete listing, see Common parameters. | 
| 
 | The ID of the item to be exported. Example:  | 
| 
 | The output format for the export. Values:  Example:  | 
| 
 | A JSON object describing the layers to be exported and the export parameters for each layer. Example:  | 
Export Parameters JSON Object
The export JSON object is described below.
| Property | Description | 
|---|---|
| 
 | (Required) An array of  | 
| 
 | The target spatial reference for the exported features. | 
Export Layer Info JSON Object
The export JSON object is described below.
| 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  | 
A sample export JSON object is as follows:
{
   "layers" :[ {"id" : 0 },
               {"id" : 1, "where" : "POP1999 > 100000"}
             ]
}Response Properties
The response object is described below.
| 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"
}