Skip to main content
PUT
/
collections
/
{collection}
/
taxonomy
/
{category}
Update a category
import requests

url = "http://api/apollo/collections/{collection}/taxonomy/{category}"

payload = {
    "id": "<string>",
    "label": "<string>",
    "version": "<string>",
    "parameters": [{}],
    "children": [{}],
    "parents": ["<string>"]
}
headers = {"Content-Type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
{
  "id": "<string>",
  "label": "<string>",
  "version": "<string>",
  "parameters": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "children": [
    {}
  ],
  "parents": [
    "<string>"
  ]
}

Path Parameters

collection
string
required

The name of a collection

category
string
required

The name of a category

Body

application/json

JSON-formatted category configuration

id
string
label
string
version
string
parameters
object[]
children
object[]
parents
string[]

Response

200 - application/json

successful operation

id
string
label
string
version
string
parameters
object[]
children
object[]
parents
string[]