Create a new node (option for a fixed list field)

Variable Description Data type Default value
$ref * The ID of the node to update. If creating a new node set to 'NULL' integer
$resource_type_field * The ID of the related metadata field. integer
$name *
The name of the node. This can be an multi-language string in ResourceSpace's supported syntax - see 'Creating Multi-lingual Custom Field Names, Resource Type Names, Field Values' on the following page:
$parent Optional
Used in Category tree fields. The ID of the parent node (field option). If using the API test tool set to 'NULL'
string ""
$order_by Optional
The order of the node in relation to other nodes for the same field.
integer 0
$returnexisting Optional
Return the existing ID of a node with this value. Used if the existing options are not known
boolean false

Return values

The ID of the newly created (or existing) node .