[BUG] - Patching custom fields with type "object" or "multiple objects" upon changed data
netbox-sync tries to adjust or atleast modify the custom_fields upon patching for values for "vcsa_vm_summary". netbox-sync takes the complete exisiting api response for custom fields and tries to patch the adjusted values with the api response.
This does not work for custom fields which have type "object/multi-object" (relations to other netbox models). The api response for a custom field with one or more objects is the following:
{
"id": 1,
"url":"https://netbox/api/1/",
"display":"Custom Field Object",
"name":"Custom Field Object",
"description":""
}
This is a model representation of the related object set in a custom field, not the value it has to be upon patching different custom fields. This results in the following error
NetBox returned body: {'custom_fields': ["Cannot resolve keyword 'display' into field. [...]
This makes sense since a custom field with a object or multiple objects only have to set an array or an number of the related object ids.