Skip to main content

get_constraint_list

Get all constraints for this tenant. Constraints define field-level validation rules on items (mutual exclusion between field values).
Property
Read-onlyYes

Parameters

None.

Returns

A list of DataConstraint objects with constraint details including source field, target field, target mode (Include/Exclude), and associated containers.

get_constraints_for_container

Get all constraints that belong to a specific container.
Property
Read-onlyYes

Parameters

ParameterTypeRequiredDescription
containerIdstringYesContainer ID. Use get_containers.

Returns

A list of DataConstraint objects for the specified container.

create_constraint

Create a new constraint. Constraints define: when sourceFieldId has value sourceFieldDataId, then targetFieldId is constrained to targetFieldDataId values.
Property
Read-onlyNo

Parameters

ParameterTypeRequiredDefaultDescription
namestringYesConstraint name.
sourceFieldIdstringYesThe trigger field ID. Use get_custom_field_list.
sourceFieldDataIdstringYesThe trigger field value ID.
targetFieldIdstringYesThe constrained field ID.
targetFieldDataIdstring[]No[]Target field value IDs.
targetModestringNoIncludeInclude or Exclude — whether target values are allowed or disallowed.
containerIdsstring[]No[]Container IDs this constraint applies to.

Returns

The created DataConstraint. Requires super admin.

update_constraint

Update an existing constraint. Only provided fields are updated.
Property
Read-onlyNo

Parameters

ParameterTypeRequiredDescription
constraintIdstringYesThe constraint ID. Use get_constraint_list.
namestringNoNew constraint name.
targetFieldDataIdstring[]NoNew target field value IDs.
targetModestringNoInclude or Exclude.

Returns

The updated DataConstraint. Requires super admin.

delete_constraint

Delete a constraint.
Property
Read-onlyNo

Parameters

ParameterTypeRequiredDescription
constraintIdstringYesThe constraint ID. Use get_constraint_list.

Returns

A confirmation message. Requires super admin.