Add Collection

post

/mobile/tools/1.0/collections

Creates a storage collection in the asset catalog.

Request

Supported Media Types
Body ()
The storage collection representation for POST requests.
Root Schema : mosCollectionCreate
Type: object
The storage collection representation for POST requests.
Match All
Show Source
Nested Schema : assetCreate
Type: object
The asset representation for POST requests.
Match All
Show Source
Nested Schema : mosCollectionCreate-allOf[1]
Type: object
Show Source
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Show Source
Nested Schema : assetCreate-allOf[1]
Type: object
Show Source

Response

Supported Media Types

201 Response

The collection was created, and the metadata for the new collection was returned.
Headers
  • The ETag corresponds to the state of the collection (that is, the value increments by one on each change operation). You can use this ETag with the `If-Match` HTTP header on a request.
  • URL to get to get the details about the new storage collection.
Body ()
The storage collection representation for GET requests.
Root Schema : mosCollectionGet
Type: object
The storage collection representation for GET requests.
Match All
Show Source
Nested Schema : assetGet
Type: object
The asset representation for GET requests.
Match All
Show Source
Nested Schema : mosCollectionGet-allOf[1]
Type: object
Show Source
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Show Source
Nested Schema : assetIdEtag
Type: object
The asset ID and entity tag (ETag) values.
Show Source
Nested Schema : trash
Type: object
Indicator of whether the asset is in the trash.
Show Source
Nested Schema : assetGet-allOf[3]
Type: object
Show Source
Nested Schema : entityLinksArray
Type: array
Minimum Number of Items: 0
An array of links for an entity's metadata.
Show Source
Nested Schema : items
Type: object
Link to the entity's metadata.
Show Source

400 Response

The storage collection specification is missing.
Body ()
Root Schema : error
Type: object
Show Source
Nested Schema : errorDetails
Type: object
Show Source

409 Response

A storage collection with the same name already exists.
Body ()
Root Schema : error
Type: object
Show Source
Nested Schema : errorDetails
Type: object
Show Source