es gibt dazu 2 Möglichkeiten.
category.create
{
"jsonrpc": "2.0",
"method": "cmdb.category.save",
"params": {
"apikey": "apikey",
"language": "en",
"category": "C__CATG__CONTACT",
"object": 1122704399,
"data": {
"contact": 14,
"role": 1
}
},
"id": 1
}
object.create with categories
{
"id": 1,
"version": "2.0",
"method": "cmdb.object.create",
"params": {
"type": "C__OBJTYPE__SERVER",
"title": "MyLittleServer",
"categories": {
"C__CATG__CONTACT": [
{
"contact": 14,
"role": 1
}
],
"C__CATG__MODEL": [
{
"serial": "1337"
}
]
},
"apikey": "h3md6u3y",
"language": "en"
}
}