Beispiel #1
0
def update_flow_field(auth_token, base_url, verbose, flow_name, locale,
                      field_name, field_config):
    flow_update_field_json = api_requests.put(
        auth_token, base_url, verbose,
        "flows/%s/locales/%s/fields/%s" % (flow_name, locale, field_name),
        field_config)
    return flow_update_field_json
Beispiel #2
0
def update_client_settings(auth_token, base_url, verbose, client_id,
                           settings_config):
    client_setting_update_json = api_requests.put(
        auth_token, base_url, verbose, "clients/%s/settings" % client_id,
        settings_config)
    return client_setting_update_json
Beispiel #3
0
def update_client(auth_token, base_url, verbose, client_id, update_config):
    client_update_json = api_requests.put(auth_token, base_url, verbose,
                                          "clients/%s" % client_id,
                                          update_config)
    return client_update_json
Beispiel #4
0
def create_attribute(auth_token, base_url, verbose, schema_name, schema_element_name, schema_element_json):
    schema_create_attribute_json = api_requests.put(
        auth_token, base_url, verbose, "schemas/%s/%s" % (schema_name, schema_element_name), schema_element_json
    )
    return schema_create_attribute_json
def update_settings(auth_token, base_url, verbose, update_settings):
    settings_update_json = api_requests.put(
        auth_token, base_url, verbose, "settings", update_settings
    )
    return settings_update_json
Beispiel #6
0
def create_flow_form(auth_token, base_url, verbose, flow_name, form_name,
                     form_data):
    flow_create_form_json = api_requests.put(
        auth_token, base_url, verbose,
        "flows/%s/forms/%s" % (flow_name, form_name), form_data)
    return flow_create_form_json
Beispiel #7
0
def update_form(auth_token, base_url, verbose, flow_name, form_name,
                form_config):
    update_form = api_requests.put(
        auth_token, base_url, verbose,
        "flows/%s/forms/%s" % (flow_name, form_name), form_config)
    return update_form
def update_template(auth_token, base_url, verbose, flow_name, flow_locale,
                    template_name, template_body):
    update_form = api_requests.put(
        auth_token, base_url, verbose, "flows/%s/locales/%s/mailTemplates/%s" %
        (flow_name, flow_locale, template_name), template_body)
    return update_form