Create node | Copy a node

POST {{baseUrl}}/v1/nodes

Creates a node OR Copies a node.

NOTE: The 'body' parameter must be used. This 'body' parameter contains a JSON string, and must be specified in the Body as a key-value pair where the key is 'body' and the value is the JSON string. See the [IMPLEMENTATION NOTES] for more details.

The following examples will assume that there is are two categories available:

Category1 (ID 9830)

  • TextField (Attribute ID 2)
  • Set (Attribute ID 3) with two rows. The Set has a multi-value Textfield (Set Attribute ID 4) that can have a maximum of 3 values
Category2 (ID 6228)
  • TextField (Attribute ID 2)

Create a Folder:

{type:0, parent_id:2000, name:New Folder}

Create a Folder with Category1 and Category2 and use the default attribute values for both categories:

{type:0, parent_id:2000, name:New Folder, roles:{categories:{9830:{9830_1:{}}, 6228:{6228_1:{}}}}}

Create a Folder with Category1 and Category2. Category1's Set Textfield on the second row has 'aaa' in the Set Textfield's third value; Category2's Textfield is 'bbb':

{type:0, parent_id:2000, name:New Folder, roles:{categories:{9830:{9830_3_2_4:[,,aaa]}, 6228:{6228_2:bbb}}}}


Copy a node 12345 to a folder 5678 (which doesn't have any categories):

{original_id:12345, parent_id:5678}

Copy a node 12345 to a folder 5678 (which doesn't have any categories) while applying Category2 with default values:

{original_id:12345, parent_id:5678, roles:{categories:{6228:{6228_1:{}}}}}


Create a node - required fields: type, name, parent_id

Copy a node - required fields: originalid, parentid - NOTE: originalid is the ID of the node to copy, parentid is the ID of the node to copy original_id to


The parameters for creating nodes of a specific subtype are listed below:


Create category - required fields: type, parent_id, name - defaults: type = 131

Create channel - required fields: type, parent_id, name - defaults: type = 207

Create document - required fields: type, parent_id, name, file - defaults: type = 144

Create compound document - required fields: type, parent_id, name - defaults: type = 136

Create folder - required fields: type, parent_id, name - defaults: type = 0

Create news - required fields: type, parent_id, name - defaults: type = 208

Create project - required fields: type, parent_id, name - defaults: type = 202

Create shortcut - required fields: type, parent_id, name - defaults: type = 1

Create generation - required fields: type, parent_id, name - defaults: type = 2

Create task - required fields: type, parent_id, name - defaults: type = 206

Create task group - required fields: type, parent_id, name - defaults: type = 205

Create task list - required fields: type, parent_id, name - defaults: type = 204

Create task milestone - required fields: type, parent_id, name - defaults: type = 212

Create URL - required fields: type, parent_id, name - defaults: type = 140

Create virtual folder - required fields: type, parent_id, name - defaults: type = 899

Request Body

[{"name"=>"type", "value"=>"87523786", "datatype"=>"number"}, {"name"=>"parent_id", "value"=>"6832", "datatype"=>"number"}, {"name"=>"name", "value"=>"incididunt", "datatype"=>"string"}, {"name"=>"description", "value"=>"eiusmod Duis aliqua", "datatype"=>"string"}, {"name"=>"external_create_date", "value"=>"2022-01-07", "datatype"=>"string"}, {"name"=>"external_modify_date", "value"=>"1968-06-29", "datatype"=>"string"}, {"name"=>"external_source", "value"=>"ftp", "datatype"=>"string"}, {"name"=>"external_identity", "value"=>"ex ut ", "datatype"=>"string"}, {"name"=>"external_identity_type", "value"=>"email_address", "datatype"=>"string"}, {"name"=>"original_id", "value"=>"28872453", "datatype"=>"number"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":20726901}