code: def format_custom_fields(list_of_custom_fields):
          '''
              Custom fields formatting for submission
          '''
          output_payload = {}
          if list_of_custom_fields:
              # custom_field: {"name": value}
              for custom_field in list_of_custom_fields:
                  for key, value in custom_field.items():
                      output_payload["custom_fields[" + key + "]"] = value
          return output_payloaf format_custom_fields(list_of_custom_fields):
          '''
              Custom fields formatting for submission
          '''
          output_payload = {}
          if list_of_custom_fields:
              # custom_field: {"name": value}
              for custom_field in list_of_custom_fields:
                  for key, value in custom_field.items():
                      output_payload["custom_fields[" + key + "]"] = value
          return output_payload
docs: Custom fields formatting for submission