--- title: "Job.SetProxy" slug: "jobsetproxy" updated: 2025-08-13T14:02:23Z published: 2025-08-13T14:02:23Z canonical: "help.mozenda.com/jobsetproxy" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Job.SetProxy ### Description Change a job's proxy pool when the job has paused or errored. ### URL parameters | Name | Required | Type | Description | | --- | --- | --- | --- | | `JobID` | numeric | string | Job ID number. | | `Job.ProxyPool` | True | string | Name of the proxy the jobs will be set to use. Note that the actual name of a proxy is the Display Name with dashes and spaces removed. | | `AgentID` | True | string | The ID of the agent associated with the job you want to update the proxy for. | #### Returns | Name | Type | Description | | --- | --- | --- | | `Success` | boolean | `True` if the specified job restarts successfully | | ErrorMessage | string | Explanation of the error. Might include: JobID doesn't exist, user doesn't have permission to modify the job, proxy doesn't exist, etc. | ### Sample request ``` curl -X GET 'https://api.mozenda.com/rest??WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=Job.SetParameter&ResponseFormat=JSON&JobID=1314&JobParameter.=123456789' ``` ### Sample responses #### XML **Success** ``` Success ``` **Error** ``` Error Incorrect agent Job 2148 is not a harvest job for agent 1017 ``` #### JSON (add `&ResponseFormat=JSON`) **Sucess** ``` { "JsonResult": { "Command": "Job.SetProxy", "AutoLoggedIn": false, "WebConsoleKey": "", "Result": "Success", "ErrorCode": "", "ErrorDescription": "", "ErrorList": [] } } ``` **Error** ``` { "JsonResult": { "Command": "Job.SetProxy", "AutoLoggedIn": false, "WebConsoleKey": "", "Result": "Error", "ErrorCode": "Missing parameter", "ErrorDescription": "'AgentID' parameter is not specified", "ErrorList": [] } } ```