Skip to main content

Add Patch Operation

Description​

Adds patch operation via the web service.

Function Signature:​

def add_patch_operation(operation_list: List[PatchOperation], field_name: str, value: str) -> None:

Parameters​

  • operation_list (List[PatchOperation]): Input value for operation_list.
  • field_name (str): Input value for field_name.
  • value (str): Input value for value.

Returns​

  • None: The function does not return a value.

Example Usage​

# Example usage
operation_list = []
field_name = "example"
value = "example"
result = add_patch_operation(operation_list, field_name, value)
print(result)

Behavior​

  • Sends a signed request to the web service.
  • On success, returns the computed value or result object.

Error Handling​

  • Exceptions set the result code to -1 and include an error message when implemented.