/createFolder: Create Folder

URL:
https://[root]/content/users/[userName]/createFolder
Methods:
POST

Example Usage

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /sharing/rest/content/users/jsmith/createFolder HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

title=Non-motorized trials&f=pjson

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/sharing/rest/content/users/jsmith/createFolder HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

title=Non-motorized trials&f=pjson

Description

The createFolder operation creates a folder in which items can be placed. Folders are only visible to a user and solely used for organizing content within that user's content space. Multilevel folders are not supported. The user provides the title for the folder, which must be unique to that user. The folder ID is generated by the system.

Request Parameters

ParameterDetails

title

The folder title. Two folders that belong to the same user cannot have the same title. The folder title is limited to 250 alphanumeric characters.

f

The response format. The default format is html.

Values: html | json | pjson

Response Properties

PropertyDetails

success

Indicates if the operation was successful.

folder

Folder JSON object that describes the folder just created. Contains the username of the person who created the folder, the ID of the folder, and the title of the folder.

JSON Response Syntax

Use dark colors for code blocksCopy
1
{ "success": true | false, "folder": { "username": "<username>", "id": "<folder id>", "title": "<folder title>" }}

JSON Response Example

Use dark colors for code blocksCopy
1
{ "success": true, "folder": { "username": "jsmith", "id": "0bffc1c3fe984a17bd9ae705b3ca7e22", "title": "Non-motorized trials" }}

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