Пример #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
Пример #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
Пример #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
Пример #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
Пример #5
0
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
Пример #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
Пример #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
Пример #8
0
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