import requests import json import pandas as pd from pandas import json_normalize import time workflowId = '65252cf1f9387296fc189f84' payload = { "questions":[ { "name": "Date (4)", "value": "2015-10-10" }, { "name": "Date (5)", "value": "2016-10-10" }, { "name": "Text Box (16)", "value": "East" }, { "name": "Numeric Up Down (21)", "value": "7" }, { "name": "Check Box (26)", "value": "True" }, { "name": "List Box (10)", "type": "QuestionListBox", "description": "Columns", "value": "Row ID,Order ID", "multiple" : True, "priority":"string" } ] } common_url = "http://localhost/webapi" endpoint = f'/v1/workflows/{workflowId}/jobs' url = common_url + endpoint headers = { 'Accept': 'application/json', 'Authorization': Authorization } response = requests.request("POST", url, headers=headers, json=payload) response_data = response.text parsed_data = json.loads(response_data) job_run_status = pd.DataFrame([parsed_data]) job_run_status