update_cmdb_object
Modifies selected fields of an existing FortiGate CMDB configuration object via the REST API, leaving other fields unchanged. Use it to update interfaces, policies, or other objects by path and key.
Instructions
Change fields of an existing configuration object (PUT /api/v2/cmdb/{path}/{key}).
Only the fields in data change. Example: path "system/interface", key "vlan60-guest", data {"description": "Guest Wi-Fi"}.
Parameters:
device_id: Identifier of the FortiGate device
path: cmdb table path
key: Object key
data: Fields to change as JSON
vdom: Virtual Domain name (optional)
Returns:
Update status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key | |
| data | Yes | Fields to change | |
| path | Yes | cmdb table path | |
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |