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).

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.

Parameters

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.

Parameters

Returns

The created DataConstraint. Requires super admin.

update_constraint

Update an existing constraint. Only provided fields are updated.

Parameters

Returns

The updated DataConstraint. Requires super admin.

delete_constraint

Delete a constraint.

Parameters

Returns

A confirmation message. Requires super admin.