Creates the given @constraint_rule for the org sending the request. The @constraint_rule_sid and @skill_proficiency_sid (if one was created) of the new entities will be returned in the response. The @schedule_scenario_sid must match the scenario of the @parent_entity. If @rule_type is set to MIN_SKILL_LEVEL, the @member_target_entity field must be set with a skill proficiency and the @constraint_rule.target_sid will be ignored. If the @member_target_entity is for a skill proficiency, that skill proficiency will be created with the given @constraint_rule as parent. If @rule_type is NOT MIN_SKILL_LEVEL then the @target_sid must be that of a scheduling activity. The all other @member fields will be ignored since those cannot be created by this method and must be created by their respective create methods. Errors:
grpc.Invalid: one or more fields in the @constraint_rule have invalid values.
grpc.NotFound: the given @target_sid for the given @rule_type, or @parent_entity don't exist.
grpc.Internal: error occurs when creating the constraint rule.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.cbf.tcn.com/api/v1alpha1/wfm/createconstraintrule' \
--header'Content-Type: application/json' \
--data-raw''