Skip to content

conflict_resolution: Literal["raise", "retrieve"]="raise"


Adds a UseCase object to the catalog. A conflict could be triggered when the object being saved has violated a uniqueness check at the catalog. If uniqueness is violated, you can either raise an error or retrieve the object with the same name, depending on the conflict resolution parameter passed in. The default behavior is to raise an error.


  • conflict_resolution: Literal["raise", "retrieve"]
    default: "raise"
    "raise" will raise an error when we encounter a conflict error.
    "retrieve" will handle the conflict error by retrieving the object with the same name.


>>> use_case = UseCase(name="use_case", target_id=target_id, context_id=context_id)