This documentation and the Cisco Observability Platform functionalities it describes are subject to change. Data saved on the platform may disappear and APIs may change without notice.
Update a Knowledge Object
To update a knowledge object, you need the following information:
- The ID of the knowledge object you want to update. The object ID can be obtained by using the
fsoc knowledge getcommand. - A JSON or YAML file containing the knowledge object data fields (and respective values) that you want to update.
HTTP PUT is used internally to update knowledge objects. All updates must adhere to the HTTP PUT RFC.
To update an existing knowledge object, run the following command:
fsoc knowledge update --type <fully-qualified-typename>
--object-id <object-id>
--object-file <fully-qualified-path>
--layer-type <ACCOUNT|GLOBALUSER|TENANT|LOCALUSER>
--layer-id <layer-id>
Limitation: The ACCOUNT and GLOBALUSER layers are not currently supported.
The following table describes the attributes used in the command:
| Attribute | Data Type | Description |
|---|---|---|
--layer-id |
String | The layer-id of the knowledge object to update. Optional for TENANT and SOLUTION layers. |
--layer-type |
String | The layer-type of the knowledge object to update. |
--object-file |
String | The fully qualified path to the file containing the updated knowledge object data definition. |
--object-id |
String | The ID of the knowledge object to update. |
--type |
String | The fully qualified type name of the knowledge object to update. |