- URL:
- https://<kgserveradmin_datamodel_constraintRules-url>/update
- Methods:
POST- Version Introduced:
- 11.3
Description
The update operation is available for a knowledge graph service data model's administrative constraint rules resource. The update operation can be used to modify an existing constraint rule in the data model. Identify the constraint rule you want to modify by specifying the constraint rule name. Use the data model query operation to learn more about the constraint rules that are defined in the schema.
Each set of relationship exclusion rules can be assigned SET or SET type category. The type category cannot be updated for a set of named types that comprise the relationship exclusion rule. As a result, add and remove behave differently depending on the type category of a set of relationship exclusion rules.
If SET is used:
addadds types to the complement, effectively removing them from the actual set._named _types removeremoves types from the complement, effectively adding them to the actual set._named _types - Removing all named types means the actual set contains all possible named types.
If SET is used:
adddirectly adds types to the set._named _types removedirectly removes types from the set._named _types - Removing all named types means the set becomes empty.
Requests and responses
This operation can only be performed by sending a Protocolbuffer Binary Format (PBF)-formatted request and receiving a PBF-formatted response. Details of the request and response parameters are provided in the appropriate .proto files.
PBF request
Create a PBF-formatted request to perform this operation based on the Update file.
PBF response
Create a PBF-formatted response to get feedback from the operation based on the Update file.