Create Folder

URL:
https://<root>/services/createFolder
Methods:
POST
Required Capability:
Access allowed with any authorized privilege
Version Introduced:
10.1

Description

The createFolder operation creates a sub-folder underneath the root folder. ArcGIS Server supports only a single level hierarchy of folders and hence this operation is only supported on the root folder. A new folder inherits the permissions of the root folder during creation time. You can change the permissions on the folder by using the Permissions resource on the created folder resource.

Request parameters

ParameterDetails

folderName

The name of the folder. The name must be unique.

Example
Use dark colors for code blocksCopy
1
folderName=Maps

description

(Optional)

An description for the folder.

Example
Use dark colors for code blocksCopy
1
description=A folder for map services

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the createFolder operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /webadaptor/admin/services/createFolder HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

folderName=Maps&description=A folder for map services&f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.