tools/views.py
def execute_template(request):
    """
    Executes an automation template, you must supply at least a template_id or template_name
    If the automation template requires input parameters or action options, those must also be supplied as well

    :param request: HTTPRequest
    :return: json object of the form:
        {"output": "output of the automation template", "status": "0 or 1 for success or failure"
    """
    post_vars = request.POST.dict()

    response = aframe_utils.execute_template(post_vars)
    return HttpResponse(json.dumps(response), content_type="application/json")

    Executes an automation template, you must supply at least a template_id or template_name
    If the automation template requires input parameters or action options, those must also be supplied as well

    :param request: HTTPRequest
    :return: json object of the form:
        {"output": "output of the automation template", "status": "0 or 1 for success or failure"
    
Executes an automation template, you must supply at least a template_id or template_name
If the automation template requires input parameters or action options, those must also be supplied as well
Executes an automation template you must supply at least a template_id or template_name If the automation template requires input parameters or action options those must also be supplied as well
def execute_template(request):
    post_vars = request.POST.dict()
    response = aframe_utils.execute_template(post_vars)
    return HttpResponse(json.dumps(response), content_type="application/json")
def execute_template ( request ) : post_vars = request . POST . dict ( ) response = aframe_utils . execute_template ( post_vars ) return HttpResponse ( json . dumps ( response ) , content_type = "application/json" )
Executes an automation template, you must supply at least a template_id or template_name
If the automation template requires input parameters or action options, those must also be supplied as well
Executes an automation template you must supply at least a template_id or template_name If the automation template requires input parameters or action options those must also be supplied as well
"""
    Executes an automation template, you must supply at least a template_id or template_name
    If the automation template requires input parameters or action options, those must also be supplied as well

    :param request: HTTPRequest
    :return: json object of the form:
        {"output": "output of the automation template", "status": "0 or 1 for success or failure"
    """
json object of the form:
{"output": "output of the automation template", "status": "0 or 1 for success or failure"
json object of the form : { " output " : " output of the automation template " " status " : " 0 or 1 for success or failure "
request
None