Skip to main content
POST
/
metadata_taxonomies
/
{namespace}
/
{taxonomy_key}
/
nodes
cURL
curl --request POST \
  --url https://api.box.com/2.0/metadata_taxonomies/{namespace}/{taxonomy_key}/nodes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "France",
  "level": 1,
  "parentId": "99df4513-7102-4896-8228-94635ee9d330"
}
'
{
  "id": "14d3d433-c77f-49c5-b146-9dea370f6e32",
  "displayName": "France",
  "level": 2,
  "parentId": "99df4513-7102-4896-8228-94635ee9d330",
  "nodePath": [
    "99df4513-7102-4896-8228-94635ee9d330"
  ],
  "ancestors": [
    {
      "id": "14d3d433-c77f-49c5-b146-9dea370f6e32",
      "displayName": "France",
      "level": 2
    }
  ]
}
This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.Learn more about Box SDK versioning strategy.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

namespace
string
required

The namespace of the metadata taxonomy.

taxonomy_key
string
required

The key of the metadata taxonomy.

Body

application/json
displayName
string
required

The display name of the taxonomy node.

Example:

"France"

level
integer
required

The level of the taxonomy node.

Example:

1

parentId
string

The identifier of the parent taxonomy node. Omit this field for root-level nodes.

Example:

"99df4513-7102-4896-8228-94635ee9d330"

Response

The schema representing the taxonomy node created.

A node object for metadata taxonomy that can be used in metadata templates.

id
string
required

A unique identifier of the metadata taxonomy node.

Example:

"14d3d433-c77f-49c5-b146-9dea370f6e32"

displayName
string
required

The display name of the metadata taxonomy node.

Example:

"France"

level
integer
required

An index of the level to which the node belongs.

Example:

2

parentId
string

The identifier of the parent node.

Example:

"99df4513-7102-4896-8228-94635ee9d330"

nodePath
string[]

An array of identifiers for all ancestor nodes.
Not returned for root-level nodes.

Example:
["99df4513-7102-4896-8228-94635ee9d330"]
ancestors
Metadata taxonomy ancestor · object[]

An array of objects for all ancestor nodes.
Not returned for root-level nodes.