.taxonomy.create()

Function Example

/// Create instance
const connection = urchin(...config); 

// Create a new taxonomy
const connection.taxonomy.create([...TaxonomyCreateInput]);

Parameters for TaxonomyCreateInput

label/requireddescriptiontypedefaultvalid values

label*

name of taxonomy reference

string

length 1-24 characters

parent

reference to parent

PublicKey

Response Example

returns the payload to confirm what was just added to taxonomy

{
  label: "javascript",
  parent: null
}

Last updated