| FRAMES | NO FRAMES | Description | Parameters | Example |
| URL: | http://server:port/arcgis/admin/system/directories/register |
|---|---|
| HTTP Method: | POST |
| Parent Resource: | Server Directories |
| Required Privileges: | Administrator |
Registers a new server directory. While registering the server directory, you can also
specify the directory's cleanup parameters.
Note:-
| Parameter | Description |
|---|---|
| name | The name of the server directory |
| physicalPath | The absolute physical path of the server directory |
| directoryType | The type of the server directory |
| cleanupMode | Defines if files in the server directory needs to be cleaned up. The default is NONE. |
| maxFileAge | Defines how long a file in the directory needs to be kept before it is deleted |
| description | An optional description for the server directory |
| f | The response format. The default response format is html. Values: html | json |
http://server:port/arcgis/admin/system/directories/register name=arcgisoutput physicalPath=\\server\arcgisserver\arcgisoutput directoryType=OUTPUT description=an output directory cleanupMode=TIME_ELAPSED_SINCE_LAST_MODIFIED maxFileAge=360