Add Collection
post
/mobile/tools/1.0/collections
Creates a storage collection in the asset catalog.
Request
Supported Media Types
- application/json
Body Parameter
The storage collection representation for POST requests.
Root Schema : mosCollectionCreate
Type:
objectThe storage collection representation for POST requests.
-
Type:
objectassetCreateAdditional Properties Allowed:The asset representation for POST requests. -
Type:
objectmosCollectionCreate-allOf[1]Additional Properties Allowed:
Nested Schema : assetCreate
Type:
objectThe asset representation for POST requests.
-
Type:
objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
objectassetCreate-allOf[1]Additional Properties Allowed:
Nested Schema : mosCollectionCreate-allOf[1]
- syncControl
-
Type:
boolean - userIsolated
-
Type:
boolean
Nested Schema : assetUpdate
Type:
objectThe asset representation for PUT requests.
- actionComment
-
Type:
string - desc
-
Type:
stringMaximum Length:100 - max
-
Type:
booleanDefault Value:false - name
-
Type:
stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$ - namespace
-
Type:
stringApplicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
stringMaximum Length:255 - version
-
Type:
stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
Nested Schema : assetCreate-allOf[1]
- max
-
Type:
booleanDefault Value:false
Response
Supported Media Types
- application/json
201 Response
The collection was created, and the metadata for the new collection was returned.
Headers
- ETag
-
Type:
stringThe 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. - Location
-
Type:
stringURL to get to get the details about the new storage collection.
Body
The storage collection representation for GET requests.
Root Schema : mosCollectionGet
Type:
objectThe storage collection representation for GET requests.
-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectmosCollectionGet-allOf[1]Additional Properties Allowed:
Nested Schema : assetGet
Type:
objectThe asset representation for GET requests.
-
Type:
objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
objectassetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values. -
Type:
objecttrashAdditional Properties Allowed:Indicator of whether the asset is in the trash. -
Type:
objectassetGet-allOf[3]Additional Properties Allowed:
Nested Schema : mosCollectionGet-allOf[1]
- guid
-
Type:
string - syncControl
-
Type:
boolean - userIsolated
-
Type:
boolean
Nested Schema : assetUpdate
Type:
objectThe asset representation for PUT requests.
- actionComment
-
Type:
string - desc
-
Type:
stringMaximum Length:100 - max
-
Type:
booleanDefault Value:false - name
-
Type:
stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$ - namespace
-
Type:
stringApplicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
stringMaximum Length:255 - version
-
Type:
stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
Nested Schema : assetIdEtag
Type:
objectThe asset ID and entity tag (ETag) values.
- etag
-
Type:
stringThe asset entity tag (ETag) value, which you can use to detect concurrent modification. - id
-
Type:
stringRequired:true
Nested Schema : trash
Nested Schema : assetGet-allOf[3]
- createdOn
-
Type:
string - deletedBy
-
Type:
string - deletedOn
-
Type:
string - links
-
Type:
arrayentityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0An array of links for an entity's metadata. - modifiedBy
-
Type:
string - modifiedOn
-
Type:
string - published
-
Type:
booleanAn asset draft or published status representation.
Nested Schema : entityLinksArray
Nested Schema : items
Type:
objectLink to the entity's metadata.
- href
-
Type:
stringRequired:trueLink value. - rel
-
Required:
trueAllowed Values:[ "self", "canonical" ]Link type.
400 Response
The storage collection specification is missing.
Body
Root Schema : error
Type:
object- detail
-
Type:
stringRequired:trueMessage that provides the error details. - o:ecid
-
Type:
stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components. - o:errorCode
-
Type:
stringRequired:trueThe service's error code. - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
stringRequired:trueThe relative point in the API path where the error occurred. - status
-
Type:
integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type:
object- detail
-
Type:
stringRequired:true - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
409 Response
A storage collection with the same name already exists.
Body
Root Schema : error
Type:
object- detail
-
Type:
stringRequired:trueMessage that provides the error details. - o:ecid
-
Type:
stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components. - o:errorCode
-
Type:
stringRequired:trueThe service's error code. - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
stringRequired:trueThe relative point in the API path where the error occurred. - status
-
Type:
integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type:
object- detail
-
Type:
stringRequired:true - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.