{ "code": 0, "data": { "jobId": "job-cm3ikdeuj02zk01l1yeuirt77", "blocks": [ { "type": "CODE", "content": "```python\n\nimport pandas as pd\n\ndef invoke(input_0: pd.DataFrame) -> pd.DataFrame:\n '''\n input_0: pd.DataFrame makeovermonday-a-century-of-global-deaths-from-disasters_decadal-deaths-disasters-type.csv\n '''\n # Group by 'Year' and sum the deaths for each type of disaster\n aggregated_data = input_0.groupby('Year').sum().reset_index()\n \n # Select only the columns related to deaths\n death_columns = [\n 'Deaths - Drought (decadal)', 'Deaths - Flood (decadal)', \n 'Deaths - Earthquake (decadal)', 'Deaths - Extreme weather (decadal)', \n 'Deaths - Extreme temperature (decadal)', 'Deaths - Volcanic activity (decadal)', \n 'Deaths - Wildfire (decadal)', 'Deaths - Glacial lake outburst flood (decadal)', \n 'Deaths - Dry mass movement (decadal)', 'Deaths - Wet mass movement (decadal)', \n 'Deaths - Fog (decadal)'\n ]\n \n # Create a new DataFrame with the aggregated results\n output = aggregated_data[['Year'] + death_columns]\n \n # Rename columns to be more descriptive\n output.columns = ['Decade'] + [col.replace('Deaths - ', '').replace(' (decadal)', '') for col in death_columns]\n \n return output\n\n```", "groupId": "33063572-6e88-4912-8e2d-4166bcc8caee", "groupName": "Analyze the dataset to observe the trend of deaths caused by different types of natural disasters over the past century. This involves aggregating the data by decade and calculating the total number of deaths for each type of disaster to identify any changes in trends.", "stage": "Analyze" }, { "type": "TABLE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/e24b6a5f-fdb8-48ca-ae35-dc91ac8e8ef7.csv", "name": "trend_data.csv", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "33063572-6e88-4912-8e2d-4166bcc8caee", "groupName": "Analyze the dataset to observe the trend of deaths caused by different types of natural disasters over the past century. This involves aggregating the data by decade and calculating the total number of deaths for each type of disaster to identify any changes in trends.", "stage": "Analyze" }, { "type": "IMAGE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/81b75a33-a223-4954-9680-9f397872c8ad.png", "name": "Trend of Deaths from Natural Disasters Over the Century", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "7501680b-5879-441b-bd96-f58b1029ae17", "groupName": "Visualize the trend data to show how the number of deaths from different types of natural disasters has changed over the past century. Use line charts to represent the trends for each disaster type, which will help in understanding the impact of measures and technological advancements on reducing deaths.", "stage": "Analyze" }, { "type": "MESSAGE", "content": "\n\n`Analyzing Conclusions` \n\n### 自然灾害死亡人数变化趋势分析\n\n#### 数据分析\n\n", "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "TABLE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/e24b6a5f-fdb8-48ca-ae35-dc91ac8e8ef7.csv", "name": "trend_data.csv", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "MESSAGE", "content": "\n\n- **Droughts and Floods**: In the early 20th century, droughts and floods caused extremely high death tolls, particularly during the 1920s and 1930s.\n- **Earthquakes and Extreme Weather**: Earthquakes and extreme weather also led to significant death tolls throughout the century, especially in the 1970s and 1990s.\n- **Extreme Temperatures and Volcanic Activity**: These disasters had relatively lower death tolls, but in certain decades, such as the 2000s, deaths caused by extreme temperatures increased.\n\n#### Trend Visualization\n\n", "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "IMAGE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/81b75a33-a223-4954-9680-9f397872c8ad.png", "name": "Trend of Deaths from Natural Disasters Over the Century", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "MESSAGE", "content": "\n\n- **Overall Trend**: The chart shows that although certain decades experienced spikes in death tolls caused by natural disasters, the overall trend is declining.\n- **Impact of Technology and Measures**: Over time, advancements in technology and the implementation of disaster prevention measures are likely key factors in reducing death tolls.\n\n#### Conclusions and Insights\n- **Technological Advancements**: Modern technological progress, such as improved early warning systems and better construction techniques, may have reduced the fatalities caused by earthquakes and extreme weather.\n- **Disaster Prevention Measures**: The enhancement of disaster prevention measures and emergency response capabilities on a global scale has likely contributed to the decreased fatality rates of natural disasters.", "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "SOURCES", "content": [ { "source": "makeovermonday-a-century-of-global-deaths-from-disasters_decadal-deaths-disasters-type.csv", "datasourceId": "clxin6l9200oo01l1457bolx3", "datasetId": "clxin6l8400ok01l1ff2m0s25", "fileType": "csv" } ], "groupId": "", "groupName": "", "stage": "Respond" }, { "type": "QUESTIONS", "content": [ "Analyze the trends in death tolls from different types of natural disasters over the past century and explore which disaster types have shown the most significant reduction in fatalities.", "Study the technological advancements and measures in responding to natural disasters across different regions globally, and analyze how these differences have influenced changes in death tolls in each region.", "Explore how future technological advancements and policy measures could further reduce fatalities caused by natural disasters, and assess their feasibility and potential impacts." ], "groupId": "-1", "stage": "Respond" } ] }}
{
"code": 210020,
"msg": "Something went wrong during job execution. Please try again."
}
Jobs
Create job
Converses with your data. Ask any question you have about your data and get insights instantly.
On Powerdrill, a job refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: general jobs and data agent jobs. Currently, only general jobs are available, so make sure the x-pd-api-agent-id header is set to GENERAL.
For an in-depth explanation of jobs, see What Is Job?.
To quickly create and execute a job, see Quick Start.
{ "code": 0, "data": { "jobId": "job-cm3ikdeuj02zk01l1yeuirt77", "blocks": [ { "type": "CODE", "content": "```python\n\nimport pandas as pd\n\ndef invoke(input_0: pd.DataFrame) -> pd.DataFrame:\n '''\n input_0: pd.DataFrame makeovermonday-a-century-of-global-deaths-from-disasters_decadal-deaths-disasters-type.csv\n '''\n # Group by 'Year' and sum the deaths for each type of disaster\n aggregated_data = input_0.groupby('Year').sum().reset_index()\n \n # Select only the columns related to deaths\n death_columns = [\n 'Deaths - Drought (decadal)', 'Deaths - Flood (decadal)', \n 'Deaths - Earthquake (decadal)', 'Deaths - Extreme weather (decadal)', \n 'Deaths - Extreme temperature (decadal)', 'Deaths - Volcanic activity (decadal)', \n 'Deaths - Wildfire (decadal)', 'Deaths - Glacial lake outburst flood (decadal)', \n 'Deaths - Dry mass movement (decadal)', 'Deaths - Wet mass movement (decadal)', \n 'Deaths - Fog (decadal)'\n ]\n \n # Create a new DataFrame with the aggregated results\n output = aggregated_data[['Year'] + death_columns]\n \n # Rename columns to be more descriptive\n output.columns = ['Decade'] + [col.replace('Deaths - ', '').replace(' (decadal)', '') for col in death_columns]\n \n return output\n\n```", "groupId": "33063572-6e88-4912-8e2d-4166bcc8caee", "groupName": "Analyze the dataset to observe the trend of deaths caused by different types of natural disasters over the past century. This involves aggregating the data by decade and calculating the total number of deaths for each type of disaster to identify any changes in trends.", "stage": "Analyze" }, { "type": "TABLE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/e24b6a5f-fdb8-48ca-ae35-dc91ac8e8ef7.csv", "name": "trend_data.csv", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "33063572-6e88-4912-8e2d-4166bcc8caee", "groupName": "Analyze the dataset to observe the trend of deaths caused by different types of natural disasters over the past century. This involves aggregating the data by decade and calculating the total number of deaths for each type of disaster to identify any changes in trends.", "stage": "Analyze" }, { "type": "IMAGE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/81b75a33-a223-4954-9680-9f397872c8ad.png", "name": "Trend of Deaths from Natural Disasters Over the Century", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "7501680b-5879-441b-bd96-f58b1029ae17", "groupName": "Visualize the trend data to show how the number of deaths from different types of natural disasters has changed over the past century. Use line charts to represent the trends for each disaster type, which will help in understanding the impact of measures and technological advancements on reducing deaths.", "stage": "Analyze" }, { "type": "MESSAGE", "content": "\n\n`Analyzing Conclusions` \n\n### 自然灾害死亡人数变化趋势分析\n\n#### 数据分析\n\n", "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "TABLE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/e24b6a5f-fdb8-48ca-ae35-dc91ac8e8ef7.csv", "name": "trend_data.csv", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "MESSAGE", "content": "\n\n- **Droughts and Floods**: In the early 20th century, droughts and floods caused extremely high death tolls, particularly during the 1920s and 1930s.\n- **Earthquakes and Extreme Weather**: Earthquakes and extreme weather also led to significant death tolls throughout the century, especially in the 1970s and 1990s.\n- **Extreme Temperatures and Volcanic Activity**: These disasters had relatively lower death tolls, but in certain decades, such as the 2000s, deaths caused by extreme temperatures increased.\n\n#### Trend Visualization\n\n", "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "IMAGE", "content": { "url": "https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/81b75a33-a223-4954-9680-9f397872c8ad.png", "name": "Trend of Deaths from Natural Disasters Over the Century", "expiredAt": "2024-11-21T09:56:34.290544Z" }, "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "MESSAGE", "content": "\n\n- **Overall Trend**: The chart shows that although certain decades experienced spikes in death tolls caused by natural disasters, the overall trend is declining.\n- **Impact of Technology and Measures**: Over time, advancements in technology and the implementation of disaster prevention measures are likely key factors in reducing death tolls.\n\n#### Conclusions and Insights\n- **Technological Advancements**: Modern technological progress, such as improved early warning systems and better construction techniques, may have reduced the fatalities caused by earthquakes and extreme weather.\n- **Disaster Prevention Measures**: The enhancement of disaster prevention measures and emergency response capabilities on a global scale has likely contributed to the decreased fatality rates of natural disasters.", "groupId": "b842aca7-6fd5-4190-85fa-97085e473877", "groupName": "Conclusions", "stage": "Respond" }, { "type": "SOURCES", "content": [ { "source": "makeovermonday-a-century-of-global-deaths-from-disasters_decadal-deaths-disasters-type.csv", "datasourceId": "clxin6l9200oo01l1457bolx3", "datasetId": "clxin6l8400ok01l1ff2m0s25", "fileType": "csv" } ], "groupId": "", "groupName": "", "stage": "Respond" }, { "type": "QUESTIONS", "content": [ "Analyze the trends in death tolls from different types of natural disasters over the past century and explore which disaster types have shown the most significant reduction in fatalities.", "Study the technological advancements and measures in responding to natural disasters across different regions globally, and analyze how these differences have influenced changes in death tolls in each region.", "Explore how future technological advancements and policy measures could further reduce fatalities caused by natural disasters, and assess their feasibility and potential impacts." ], "groupId": "-1", "stage": "Respond" } ] }}
{
"code": 210020,
"msg": "Something went wrong during job execution. Please try again."
}
The Response section in this topic describes the structure of the response when stream is set to false. For an example of the response when stream is set to true and an explanation of how to interpret the streaming response, refer to Streaming.
Whether to use stream mode. If set to true, Powerdrill will send real-time updates to the client, delivering continuous data as it becomes available. If set to false, Powerdrill will return the full response only once the entire answer is ready.
If not specified, the default value false will be used.
For details about how to understand streaming responses, see "Content description" in Streaming.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Powerdrill","colors":{"primary":"#803FE2","light":"#9E6CE8","dark":"#803FE2"},"logo":{"light":"https://mintcdn.com/powerdrill-55/G5-71rSRmaWb4Deb/logo/light_old.svg?fit=max\u0026auto=format\u0026n=G5-71rSRmaWb4Deb\u0026q=85\u0026s=dc2f74f20167a362fea696e338f33414","dark":"https://mintcdn.com/powerdrill-55/G5-71rSRmaWb4Deb/logo/dark_old.svg?fit=max\u0026auto=format\u0026n=G5-71rSRmaWb4Deb\u0026q=85\u0026s=695f412bda840aa700144b31bb1ec4bb"},"favicon":"https://mintcdn.com/powerdrill-55/bBGveC8zr4vD5DAR/favicon.png?fit=max\u0026auto=format\u0026n=bBGveC8zr4vD5DAR\u0026q=85\u0026s=6f84811bf7e1eefae3b7cca21207dc09","background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/powerdrill-55/background.png"},"navbar":{"links":[{"href":"https://github.com/powerdrillai","label":"GitHub"}],"primary":{"type":"button","label":"Get Started","href":"https://powerdrill.ai"}},"footer":{"socials":{"github":"https://github.com/powerdrillai","youtube":"https://www.youtube.com/@powerdrill_ai","twitter":"https://twitter.com/powerdrillai","discord":"https://discord.gg/ZsyyD5ysRC","linkedin":"https://www.linkedin.com/company/powerdrill"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"powerdrill-55","hasAudioNarration":false,"actualSubdomain":"powerdrill-55","customDomains":["docs.powerdrill.ai"],"gitSource":{"type":"github","owner":"powerdrillai","repo":"powerdrill_docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a676e74b2a6a80119146f2c","collectionId":"16d59170-1e02-488c-bffd-27d8bdcf9eb3","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a676e74b2a6a80119146f2c"},"entitlements":{},"buildId":"6ae91925695ee6f94e417312:success","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"API Reference","count":54},{"language":"default","tag":"Open API V2","count":28},{"language":"default","tag":"Open API V1 (Deprecated)","count":26},{"language":"default","tag":"Documentation","count":14},{"language":"default","tag":"Data sources","count":12},{"language":"default","tag":"Datasets","count":12},{"language":"default","tag":"Sessions","count":12},{"language":"default","tag":"Enterprise","count":11},{"language":"default","tag":"Features","count":9},{"language":"default","tag":"Overview","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/create-job","slug":"/api-reference/create-job","pageMetadata":{"openapi":"post /v1/team/jobs","description":"Converses with your data. Ask any question you have about your data and get insights instantly. \nOn Powerdrill, a **job** refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: **general jobs** and **data agent jobs**. Currently, only general jobs are available, so make sure the **x-pd-api-agent-id** header is set to **GENERAL**. \n- For an in-depth explanation of **jobs**, see [What Is Job?](/enterprise/what-is-job). \n- To quickly create and execute a job, see [Quick Start](/api-reference/quick-start-for-general). ","title":"Create job","href":"/api-reference/create-job"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Converses with your data. Ask any question you have about your data and get insights instantly.\\nOn Powerdrill, a \", _jsx(_components.strong, {\n children: \"job\"\n }), \" refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: \", _jsx(_components.strong, {\n children: \"general jobs\"\n }), \" and \", _jsx(_components.strong, {\n children: \"data agent jobs\"\n }), \". Currently, only general jobs are available, so make sure the \", _jsx(_components.strong, {\n children: \"x-pd-api-agent-id\"\n }), \" header is set to \", _jsx(_components.strong, {\n children: \"GENERAL\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"For an in-depth explanation of \", _jsx(_components.strong, {\n children: \"jobs\"\n }), \", see \", _jsx(_components.a, {\n href: \"/enterprise/what-is-job\",\n children: \"What Is Job?\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"To quickly create and execute a job, see \", _jsx(_components.a, {\n href: \"/api-reference/quick-start-for-general\",\n children: \"Quick Start\"\n }), \".\"]\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Tip}=_components;if(!Tip)_missingMdxReference(`Tip`,true);return _jsx(Tip,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Response`}),` section in this topic describes the structure of the response when `,_jsx(_components.code,{children:`stream`}),` is set to `,_jsx(_components.code,{children:`false`}),`. For an example of the response when `,_jsx(_components.code,{children:`stream`}),` is set to `,_jsx(_components.code,{children:`true`}),` and an explanation of how to interpret the streaming response, refer to `,_jsx(_components.a,{href:`/api-reference/streaming`,children:`Streaming`}),`.`]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v1/team/jobs","description":"Converses with your data. Ask any question you have about your data and get insights instantly. \nOn Powerdrill, a **job** refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: **general jobs** and **data agent jobs**. Currently, only general jobs are available, so make sure the **x-pd-api-agent-id** header is set to **GENERAL**. \n- For an in-depth explanation of **jobs**, see [What Is Job?](/enterprise/what-is-job). \n- To quickly create and execute a job, see [Quick Start](/api-reference/quick-start-for-general). ","title":"Create job","href":"/api-reference/create-job"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create job","deprecated":false,"description":"Converses with your data. Ask any question you have about your data and get insights instantly. \nOn Powerdrill, a **job** refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: **general jobs** and **data agent jobs**. Currently, only general jobs are available, so make sure the **x-pd-api-agent-id** header is set to **GENERAL**. \n- For an in-depth explanation of **jobs**, see [What Is Job?](/enterprise/what-is-job). \n- To quickly create and execute a job, see [Quick Start](/api-reference/quick-start-for-general). ","tags":["Job"],"parameters":["9e223869-3031-4a32-b775-7b2e0f01561e","07ff2e6c-0fe8-4125-9c1c-a1e55be98392"],"requestBody":"496b7e7f-e50c-4639-98d7-8fafd63f654b","responses":{"200":"c59362a8-8947-48fb-8e68-0d577425b4ed","400":"a282cf39-9757-40e2-b310-eac150899634","403":"3f520613-de43-4a26-b188-3e2378544e02","500":"9c00f37d-eec3-471d-8eba-07551a4652d8"},"security":["ad79ad1b-92b8-4a2a-8b3d-feabdbef6d22"],"method":"post","type":"path","servers":["e5ca796a-a461-4adb-b512-a5252aea46fd"],"path":"/v1/team/jobs","baseUrlOptions":["https://ai.data.cloud/api"],"title":"Create job","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"9e223869-3031-4a32-b775-7b2e0f01561e":{"name":"userId","in":"query","description":"Your user ID.\n\nHow to obtain your user ID: Sign in to Powerdrill Enterprise, click **Users** in the top navigation bar, and find your user ID in the list of users.","required":true,"schema":{"type":"string","isRequired":true,"description":"Your user ID.\n\nHow to obtain your user ID: Sign in to Powerdrill Enterprise, click **Users** in the top navigation bar, and find your user ID in the list of users.","uniqueKey":"","typeLabel":"string"}},"07ff2e6c-0fe8-4125-9c1c-a1e55be98392":{"name":"x-pd-external-trace-id","in":"header","description":"The external trace ID. The length ranges from 0 to 128 characters.","required":false,"example":"","schema":{"type":"string","isRequired":false,"description":"The external trace ID. The length ranges from 0 to 128 characters.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"The session ID.","isRequired":true,"uniqueKey":"sessionId","typeLabel":"string"},"question":{"type":"string","description":"The question you want Powerdrill to answer.","isRequired":true,"uniqueKey":"question","typeLabel":"string"},"stream":{"type":"boolean","description":"Whether to use stream mode. If set to `true`, Powerdrill will send real-time updates to the client, delivering continuous data as it becomes available. If set to `false`, Powerdrill will return the full response only once the entire answer is ready.\n\nIf not specified, the default value `false` will be used.\n\nFor details about how to understand streaming responses, see \"Content description\" in [Streaming](/api-reference/streaming#content-description).","default":false,"uniqueKey":"stream","typeLabel":"boolean"},"datasetId":{"type":"string","description":"The ID of the dataset to attach to the session. If not specified, the job will run without being associated with any dataset.","uniqueKey":"datasetId","typeLabel":"string"},"datasourceIdList":{"type":"array","items":{"type":"string","uniqueKey":"datasourceIdList.items.[INDEX]","typeLabel":"string"},"description":"Specifies the IDs of the data sources to use in the conversation, rather than the entire dataset. You can specify up to 1,000 data sources.","uniqueKey":"datasourceIdList","typeLabel":"string[]"},"languageType":{"type":"string","description":"The language in which the output is generated. Possible values are:\n- `AUTO`: adaptive recognition\n- `EN`: English\n- `ES`: Spanish\n- `AR`: Arabic\n- `PT`: Portuguese\n- `ID`: Indonesian\n- `JA`: Japanese\n- `RU`: Russian\n- `HI`: Hindi\n- `FR`: French\n- `DE`: German\n- `VI`: Vietnamese\n- `TR`: Turkish\n- `PL`: Polish\n- `IT`: Italian\n- `KO`: Korean\n- `ZH-CN`: Simplified Chinese\n- `ZH-TW`: Traditional Chinese","enum":["AUTO","EN","ES","AR","PT","ID","JA","RU","HI","FR","DE","VI","TR","PL","IT","KO","ZH-CN","ZH-TW"],"default":"AUTO","uniqueKey":"languageType","typeLabel":"enum\u003cstring>"},"jobMode":{"type":"string","description":"Job mode. Possible values are:\n- `AUTO`: Powerdrill automatically detects your intent and selects the appropriate job mode from data analysis and information retrieval.\n- `DATA_ANALYTICS`: Powerdrill focuses specifically on data analysis.","enum":["AUTO","DATA_ANALYTICS"],"default":"AUTO","uniqueKey":"jobMode","typeLabel":"enum\u003cstring>"},"answerConfig":{"type":"object","properties":{"modelGroup":{"type":"string","description":"The model used for generating responses, for example, **default**.\n\n","enum":["default"],"isRequired":true,"uniqueKey":"answerConfig.modelGroup","typeLabel":"enum\u003cstring>"},"temperature":{"type":"number","description":"Specifies the level of randomness in the AI model's responses, ranging from **0** (safer choices) to **1** (more exploratory choices). The default value is **0**.","uniqueKey":"answerConfig.temperature","typeLabel":"number"}},"required":["modelGroup"],"uniqueKey":"answerConfig","typeLabel":"object"}},"required":["question","sessionId"],"uniqueKey":"","typeLabel":"object"},"example":{"datasetId":"cm1gjmg8e0057r3x22v1fdu8m","datasourceIdList":["cm1gjmmoo0001h0x24uk1xgu9"],"languageType":"EN","question":"Hello World","sessionId":"5534f591-1520-4e74-b753-b87615b2c57a","stream":false},"examples":{"Example":{"title":"Example","value":{"datasetId":"cm1gjmg8e0057r3x22v1fdu8m","datasourceIdList":["cm1gjmmoo0001h0x24uk1xgu9"],"languageType":"EN","question":"Hello World","sessionId":"5534f591-1520-4e74-b753-b87615b2c57a","stream":false}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"c59362a8-8947-48fb-8e68-0d577425b4ed":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Status code. **0** indicates that the operation is successful. Otherwise, the operation fails. Possible error codes include: \n\n- **100112:** The `modelGroup` parameter must be set to its default value.\n- **1003:** Authentication failed. Please check if the API key is correct.\n- **210020:** An error occurred during job execution. Please try again.\n- **210021:** Job quota exceeded. Please review your usage limits.\n- **210022:** The question is too long. Please shorten it and try again.\n- **210023:** The selected data sources are not yet ready. Only data sources in the **Synched** state are available for use.\n- **210024:** The text is too long for the text-to-speech service. The maximum allowed length is 5000 characters.\n- **210025:** Too many data sources selected. You can select up to 1,000 data sources.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"data":{"type":"object","properties":{"jobId":{"type":"string","description":"The job ID.","isRequired":true,"uniqueKey":"data.jobId","typeLabel":"string"},"blocks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["MESSAGE","CODE","TABLE","IMAGE","SOURCES","QUESTIONS"],"description":"The block type.","isRequired":true,"uniqueKey":"data.blocks.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"The block content.","isRequired":true,"uniqueKey":"data.blocks.items.[INDEX].content","typeLabel":"string"},"groupId":{"type":"string","description":"The ID of the group containing the block.","isRequired":true,"uniqueKey":"data.blocks.items.[INDEX].groupId","typeLabel":"string"},"groupName":{"type":"string","description":"The name of the group containing the block.","isRequired":true,"uniqueKey":"data.blocks.items.[INDEX].groupName","typeLabel":"string"},"stage":{"type":"string","enum":["Analyze","Respond"],"description":"The stage of the block.","isRequired":true,"uniqueKey":"data.blocks.items.[INDEX].stage","typeLabel":"enum\u003cstring>"}},"required":["type","content","groupId","groupName","stage"],"uniqueKey":"data.blocks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.blocks","typeLabel":"object[]"}},"required":["jobId","blocks"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["data","code"],"uniqueKey":"","typeLabel":"object"},"examples":{"1":{"title":"1","value":{"code":0,"data":{"jobId":"job-cm3ikdeuj02zk01l1yeuirt77","blocks":[{"type":"CODE","content":"```python\n\nimport pandas as pd\n\ndef invoke(input_0: pd.DataFrame) -> pd.DataFrame:\n '''\n input_0: pd.DataFrame makeovermonday-a-century-of-global-deaths-from-disasters_decadal-deaths-disasters-type.csv\n '''\n # Group by 'Year' and sum the deaths for each type of disaster\n aggregated_data = input_0.groupby('Year').sum().reset_index()\n \n # Select only the columns related to deaths\n death_columns = [\n 'Deaths - Drought (decadal)', 'Deaths - Flood (decadal)', \n 'Deaths - Earthquake (decadal)', 'Deaths - Extreme weather (decadal)', \n 'Deaths - Extreme temperature (decadal)', 'Deaths - Volcanic activity (decadal)', \n 'Deaths - Wildfire (decadal)', 'Deaths - Glacial lake outburst flood (decadal)', \n 'Deaths - Dry mass movement (decadal)', 'Deaths - Wet mass movement (decadal)', \n 'Deaths - Fog (decadal)'\n ]\n \n # Create a new DataFrame with the aggregated results\n output = aggregated_data[['Year'] + death_columns]\n \n # Rename columns to be more descriptive\n output.columns = ['Decade'] + [col.replace('Deaths - ', '').replace(' (decadal)', '') for col in death_columns]\n \n return output\n\n```","groupId":"33063572-6e88-4912-8e2d-4166bcc8caee","groupName":"Analyze the dataset to observe the trend of deaths caused by different types of natural disasters over the past century. This involves aggregating the data by decade and calculating the total number of deaths for each type of disaster to identify any changes in trends.","stage":"Analyze"},{"type":"TABLE","content":{"url":"https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/e24b6a5f-fdb8-48ca-ae35-dc91ac8e8ef7.csv","name":"trend_data.csv","expiredAt":"2024-11-21T09:56:34.290544Z"},"groupId":"33063572-6e88-4912-8e2d-4166bcc8caee","groupName":"Analyze the dataset to observe the trend of deaths caused by different types of natural disasters over the past century. This involves aggregating the data by decade and calculating the total number of deaths for each type of disaster to identify any changes in trends.","stage":"Analyze"},{"type":"IMAGE","content":{"url":"https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/81b75a33-a223-4954-9680-9f397872c8ad.png","name":"Trend of Deaths from Natural Disasters Over the Century","expiredAt":"2024-11-21T09:56:34.290544Z"},"groupId":"7501680b-5879-441b-bd96-f58b1029ae17","groupName":"Visualize the trend data to show how the number of deaths from different types of natural disasters has changed over the past century. Use line charts to represent the trends for each disaster type, which will help in understanding the impact of measures and technological advancements on reducing deaths.","stage":"Analyze"},{"type":"MESSAGE","content":"\n\n`Analyzing Conclusions` \n\n### 自然灾害死亡人数变化趋势分析\n\n#### 数据分析\n\n","groupId":"b842aca7-6fd5-4190-85fa-97085e473877","groupName":"Conclusions","stage":"Respond"},{"type":"TABLE","content":{"url":"https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/e24b6a5f-fdb8-48ca-ae35-dc91ac8e8ef7.csv","name":"trend_data.csv","expiredAt":"2024-11-21T09:56:34.290544Z"},"groupId":"b842aca7-6fd5-4190-85fa-97085e473877","groupName":"Conclusions","stage":"Respond"},{"type":"MESSAGE","content":"\n\n- **Droughts and Floods**: In the early 20th century, droughts and floods caused extremely high death tolls, particularly during the 1920s and 1930s.\n- **Earthquakes and Extreme Weather**: Earthquakes and extreme weather also led to significant death tolls throughout the century, especially in the 1970s and 1990s.\n- **Extreme Temperatures and Volcanic Activity**: These disasters had relatively lower death tolls, but in certain decades, such as the 2000s, deaths caused by extreme temperatures increased.\n\n#### Trend Visualization\n\n","groupId":"b842aca7-6fd5-4190-85fa-97085e473877","groupName":"Conclusions","stage":"Respond"},{"type":"IMAGE","content":{"url":"https://static.powerdrill.ai/tmp_datasource_cache/code_result/cm37bchx106e301l1v9yf67yc/81b75a33-a223-4954-9680-9f397872c8ad.png","name":"Trend of Deaths from Natural Disasters Over the Century","expiredAt":"2024-11-21T09:56:34.290544Z"},"groupId":"b842aca7-6fd5-4190-85fa-97085e473877","groupName":"Conclusions","stage":"Respond"},{"type":"MESSAGE","content":"\n\n- **Overall Trend**: The chart shows that although certain decades experienced spikes in death tolls caused by natural disasters, the overall trend is declining.\n- **Impact of Technology and Measures**: Over time, advancements in technology and the implementation of disaster prevention measures are likely key factors in reducing death tolls.\n\n#### Conclusions and Insights\n- **Technological Advancements**: Modern technological progress, such as improved early warning systems and better construction techniques, may have reduced the fatalities caused by earthquakes and extreme weather.\n- **Disaster Prevention Measures**: The enhancement of disaster prevention measures and emergency response capabilities on a global scale has likely contributed to the decreased fatality rates of natural disasters.","groupId":"b842aca7-6fd5-4190-85fa-97085e473877","groupName":"Conclusions","stage":"Respond"},{"type":"SOURCES","content":[{"source":"makeovermonday-a-century-of-global-deaths-from-disasters_decadal-deaths-disasters-type.csv","datasourceId":"clxin6l9200oo01l1457bolx3","datasetId":"clxin6l8400ok01l1ff2m0s25","fileType":"csv"}],"groupId":"","groupName":"","stage":"Respond"},{"type":"QUESTIONS","content":["Analyze the trends in death tolls from different types of natural disasters over the past century and explore which disaster types have shown the most significant reduction in fatalities.","Study the technological advancements and measures in responding to natural disasters across different regions globally, and analyze how these differences have influenced changes in death tolls in each region.","Explore how future technological advancements and policy measures could further reduce fatalities caused by natural disasters, and assess their feasibility and potential impacts."],"groupId":"-1","stage":"Respond"}]}}}},"exampleType":"examples"}},"headers":{"x-pd-trace-id":{"example":"","required":true,"description":"The trace ID of Powerdrill.","schema":{"type":"string"}}},"exampleType":"examples"},"a282cf39-9757-40e2-b310-eac150899634":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{},"uniqueKey":"","typeLabel":"object"},"examples":{"1":{"title":"1","value":{"code":210021,"msg":"Job quota exceeded"}}},"exampleType":"examples"}},"headers":{},"exampleType":"examples"},"3f520613-de43-4a26-b188-3e2378544e02":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{},"uniqueKey":"","typeLabel":"object"},"examples":{"1":{"title":"1","value":{"code":1003,"msg":"insufficient.authentication"}}},"exampleType":"examples"}},"headers":{},"exampleType":"examples"},"9c00f37d-eec3-471d-8eba-07551a4652d8":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{},"uniqueKey":"","typeLabel":"object"},"examples":{"1":{"title":"1","value":{"code":210020,"msg":"Something went wrong during job execution. Please try again."}}},"exampleType":"examples"}},"headers":{},"exampleType":"examples"}},"security":{"ad79ad1b-92b8-4a2a-8b3d-feabdbef6d22":{"apikey-header-x-pd-api-key":{"type":"apiKey","in":"header","name":"x-pd-api-key","scopes":[]}}},"servers":{"e5ca796a-a461-4adb-b512-a5252aea46fd":{"url":"https://ai.data.cloud/api","description":"体验环境"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-pd-api-key","scopes":[]},"schema":{"title":"x-pd-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apikey-header-x-pd-api-key","name":"x-pd-api-key"}],"title":"apikey-header-x-pd-api-key"}]},"originalFileLocation":"v1-openapi.json"},"subdomain":"powerdrill-55","siteName":"Powerdrill","title":"Create job - Powerdrill","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-18T02:00:39.168Z","originalFileLocation":"api-reference/create-job.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Converses with your data. Ask any question you have about your data and get insights instantly. On Powerdrill, a job refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: general jobs and data agent jobs. Currently, only general jobs are available, so make sure the x-pd-api-agent-id header is set to GENERAL. - For an in-depth explanation of jobs, see What Is Job?. - To quickly create and execute a job, see Quick Start.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Powerdrill\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create job - Powerdrill\">\u003cmeta data-mint-head property=\"og:description\" content=\"Converses with your data. Ask any question you have about your data and get insights instantly. On Powerdrill, a job refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: general jobs and data agent jobs. Currently, only general jobs are available, so make sure the x-pd-api-agent-id header is set to GENERAL. - For an in-depth explanation of jobs, see What Is Job?. - To quickly create and execute a job, see Quick Start.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Powerdrill\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.powerdrill.ai/api-reference/create-job\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://powerdrill-55.mintlify.app/_mintlify/api/og/v2?division=Jobs\u0026amp;title=Create+job\u0026amp;description=Converses+with+your+data.+Ask+any+question+you+have+about+your+data+and+get+insights+instantly.+%0AOn+Powerdrill%2C+a+**job**+refers+to+a+task+that+Powerdrill+perfo\u0026amp;theme=0c69e19070822010f03aecb8\u0026amp;signature=aec5acf1207518a13951aff11ef3a67f1fecfd7a6e4e21a38108d2a87ff06489\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create job - Powerdrill\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Converses with your data. Ask any question you have about your data and get insights instantly. On Powerdrill, a job refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: general jobs and data agent jobs. Currently, only general jobs are available, so make sure the x-pd-api-agent-id header is set to GENERAL. - For an in-depth explanation of jobs, see What Is Job?. - To quickly create and execute a job, see Quick Start.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://powerdrill-55.mintlify.app/_mintlify/api/og/v2?division=Jobs\u0026amp;title=Create+job\u0026amp;description=Converses+with+your+data.+Ask+any+question+you+have+about+your+data+and+get+insights+instantly.+%0AOn+Powerdrill%2C+a+**job**+refers+to+a+task+that+Powerdrill+perfo\u0026amp;theme=0c69e19070822010f03aecb8\u0026amp;signature=aec5acf1207518a13951aff11ef3a67f1fecfd7a6e4e21a38108d2a87ff06489\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/powerdrill-55/3_2Bh6rURdJwY8KX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Powerdrill\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#803FE2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.powerdrill.ai/api-reference/create-job\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-job.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.powerdrill.ai/#organization\",\"name\":\"Powerdrill\",\"url\":\"https://docs.powerdrill.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/powerdrill-55/G5-71rSRmaWb4Deb/logo/light_old.svg?fit=max\u0026auto=format\u0026n=G5-71rSRmaWb4Deb\u0026q=85\u0026s=dc2f74f20167a362fea696e338f33414\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.powerdrill.ai#website\",\"name\":\"Powerdrill\",\"url\":\"https://docs.powerdrill.ai\",\"publisher\":{\"@id\":\"https://docs.powerdrill.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.powerdrill.ai/api-reference/create-job#webpage\",\"url\":\"https://docs.powerdrill.ai/api-reference/create-job\",\"name\":\"Create job\",\"description\":\"Converses with your data. Ask any question you have about your data and get insights instantly. On Powerdrill, a job refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: general jobs and data agent jobs. Currently, only general jobs are available, so make sure the x-pd-api-agent-id header is set to GENERAL. - For an in-depth explanation of jobs, see What Is Job?. - To quickly create and execute a job, see Quick Start.\",\"dateModified\":\"2025-09-18T02:00:39.168Z\",\"isPartOf\":{\"@id\":\"https://docs.powerdrill.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.powerdrill.ai/api-reference/create-job#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.powerdrill.ai/api-reference/create-job#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Powerdrill\",\"item\":\"https://docs.powerdrill.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create job\",\"item\":\"https://docs.powerdrill.ai/api-reference/create-job\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.powerdrill.ai/api-reference/create-job#apireference\",\"headline\":\"Create job\",\"name\":\"Create job\",\"description\":\"Converses with your data. Ask any question you have about your data and get insights instantly. On Powerdrill, a job refers to a task that Powerdrill performs to generate a response based on your request (e.g., a prompt or other workflows). Powerdrill Enterprise supports two types of jobs: general jobs and data agent jobs. Currently, only general jobs are available, so make sure the x-pd-api-agent-id header is set to GENERAL. - For an in-depth explanation of jobs, see What Is Job?. - To quickly create and execute a job, see Quick Start.\",\"url\":\"https://docs.powerdrill.ai/api-reference/create-job\",\"mainEntityOfPage\":{\"@id\":\"https://docs.powerdrill.ai/api-reference/create-job#webpage\"},\"dateModified\":\"2025-09-18T02:00:39.168Z\",\"publisher\":{\"@id\":\"https://docs.powerdrill.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.powerdrill.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Powerdrill\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Powerdrill","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/get-started/introduction"}]},{"tab":"Enterprise","pages":[{"title":"Enterprise","href":"/enterprise/introduction"}]},{"tab":"API Reference","anchors":[{"anchor":"Open API V2","icon":"dice-two","pages":[{"title":"Open API V2","href":"/api-reference/v2/overview"}]},{"anchor":"Open API V1 (Deprecated)","icon":"dice-one","groups":[{"group":"Overview","pages":[{"title":"Overview","icon":"book","href":"/api-reference/overview"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Streaming","icon":"grip-lines","href":"/api-reference/streaming"},{"title":"Error Codes","icon":"screwdriver-wrench","href":"/api-reference/error-codes"}]},{"group":"Developer Guides","pages":[{"title":"Quick Start","icon":"rocket","href":"/developer-guides/quick-start"},{"title":"How to Upload Local Files","icon":"upload","href":"/developer-guides/upload-file"}]},{"group":"Datasets","pages":[{"openapi":"post /v1/team/datasets","title":"Create dataset","href":"/api-reference/create-dataset"},{"openapi":"get /v1/team/datasets/{datasetId}/status","title":"Get dataset status","href":"/api-reference/get-dataset-status"},{"openapi":"get /v1/team/datasets/{datasetId}/overview","title":"Get dataset overview","href":"/api-reference/get-dataset-overview"},{"openapi":"get /v1/team/datasets","title":"List datasets","href":"/api-reference/list-datasets"},{"openapi":"post /v1/team/datasets/{datasetId}","title":"Modify dataset","href":"/api-reference/modify-dataset"},{"openapi":"delete /v1/team/datasets/{datasetId}","title":"Delete dataset","href":"/api-reference/delete-dataset"}]},{"group":"Data sources","pages":[{"openapi":"post /v1/team/datasets/{datasetId}/datasources","title":"Create data source","href":"/api-reference/create-data-source"},{"openapi":"post /v1/team/datasources","title":"Create data source without specifying a dataset","href":"/api-reference/create-data-source-without-dataset"},{"openapi":"get /v1/team/datasets/{datasetId}/datasources/{datasourceId}","title":"Get data source","href":"/api-reference/get-data-source"},{"openapi":"get /v1/team/datasets/{datasetId}/datasources","title":"List data sources","href":"/api-reference/list-data-sources"},{"openapi":"delete /v1/team/datasets/{datasetId}/datasources/{datasourceId}","title":"Delete data source","href":"/api-reference/delete-data-source"},{"openapi":"post /v1/team/datasets/{datasetId}/datasources/{datasourceId}/presign","title":"Presign data source ","href":"/api-reference/presign-data-source"}]},{"group":"Files","pages":[{"openapi":"post /v1/team/file/upload_datasource","mode":"wide","title":null,"href":"/api-reference/upload-file"}]},{"group":"Sessions","pages":[{"openapi":"post /v1/team/sessions","title":"Create session","href":"/api-reference/create-session"},{"openapi":"get /v1/team/sessions/{sessionId}","title":"Get session","href":"/api-reference/get-session"},{"openapi":"get /v1/team/sessions/{sessionId}/history","title":"Get job history in session","href":"/api-reference/get-job-history"},{"openapi":"get /v1/team/sessions","title":"List sessions","href":"/api-reference/list-sessions"},{"openapi":"post /v1/team/sessions/{sessionId}","title":"Modify session","href":"/api-reference/modify-session"},{"openapi":"delete /v1/team/sessions/{sessionId}","title":"Delete session","description":"Deletes a session. Once deleted, both the session and its job history will be permanently removed and cannot be recovered.","href":"/api-reference/delete-session"}]},{"group":"Jobs","pages":[{"openapi":"post /v1/team/jobs","title":"Create job","href":"/api-reference/create-job"}]}]}]}]},"basePath":"","title":"Create job - Powerdrill","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}