Skip to main content
POST
/
api
/
v2
/
platform
/
taxons
Create a Taxon
curl --request POST \
  --url http://{defaultHost}/api/v2/platform/taxons \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "taxon": {
    "taxonomy_id": "<string>",
    "name": "<string>",
    "parent_id": "<string>",
    "public_metadata": {
      "ability_to_recycle": "90%"
    },
    "private_metadata": {
      "profitability": 2
    }
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "<string>",
    "attributes": {},
    "relationships": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

include
string

Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes

Body

application/json
taxon
object
required

Response

Record created

data
object
required