Platform Explorer / Nuxeo Platform LTS 2015 7.10

Operation Collection.Create

Create a collection

Description

Create a new collection. This is returning the document serialization of the created collection.
Operation id Collection.Create
AliasesCollection.CreateCollection
Category Document
Label Create a collection
Requires
Since

Parameters

Name Description Type Required Default value
name string yes  
description string no  

Signature

Inputs void, document
Outputs document, document

Implementation information

Implementation class org.nuxeo.ecm.collections.core.automation.CreateCollectionOperation
Contributing component org.nuxeo.collections.operations

JSON definition

{
  "id" : "Collection.Create",
  "aliases" : [ "Collection.CreateCollection" ],
  "label" : "Create a collection",
  "category" : "Document",
  "requires" : null,
  "description" : "Create a new collection. This is returning the document serialization of the created collection.",
  "url" : "Collection.Create",
  "signature" : [ "void", "document", "document", "document" ],
  "params" : [ {
    "name" : "name",
    "description" : "",
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "description",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}