Skip to content
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_COMPLEMENT type category. The type category cannot be updated for a set of named types that comprise the relationship exclusion rule. As a result, add_named_types and remove_named_types behave differently depending on the type category of a set of relationship exclusion rules.

If SET_COMPLEMENT is used:

  • add_named_types adds types to the complement, effectively removing them from the actual set.
  • remove_named_types removes types from the complement, effectively adding them to the actual set.
  • Removing all named types means the actual set contains all possible named types.

If SET is used:

  • add_named_types directly adds types to the set.
  • remove_named_types directly removes types from the set.
  • 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 UpdateConstraintRulesRequest.proto file.

PBF response

Create a PBF-formatted response to get feedback from the operation based on the UpdateConstraintResponse.proto file.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.