Create Folder

Description

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.

The create user folder operation (POST only) is available only on the user's root folder. 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

Parameter

Details

[Common Parameters]

For a complete listing, see Common parameters.

title

The folder title. Two folders that belong to the same user cannot have the same title.

Response Properties

Property

Details

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.

Example Usage

URL for Create Folder

http://www.arcgis.com/sharing/rest/content/users/jsmith/createFolder
title=Non-motorized trials

JSON Response Syntax

{  "success": true |false,  "folder": {    "username": "<username>",    "id": "<folder id>",    "title": "<folder title>"  }}

JSON Response Example

{  "success": true,  "folder": {    "username": "jsmith",    "id": "0bffc1c3fe984a17bd9ae705b3ca7e22",    "title": "Non-motorized trials"  }}

3/3/2017