# Pause a running deployment task Pauses a running deployment task; the remaining time is captured via the `timeLeft` query parameter so the task can resume from the same point. ## Endpoints `PUT /emsapi/osdeployer/tasks/{taskId}/pause` ## Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/emsapi/osdeployer/tasks/{taskId}/pause` ## Scope `DesktopCentralCloud.OSDTask.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` **Mandatory**: `application/deploymentTaskPausedStatus.v1+json` ### Path Parameters - **taskId** `string` **Mandatory**: ID of the OS Deployment task ### Query Parameters - **timeLeft** `long` **Mandatory**: Remaining broadcast window in milliseconds at the moment of pause (e.g., `600000 = 10 minutes`). Mandatory; the server stores this value and uses it when resuming the task. ## Sample Request ```curl curl --request PUT \ --url 'https://appdomains/emsapi/osdeployer/tasks/{taskId}/pause?timeLeft=SOME_INTEGER_VALUE' \ --header 'Accept: application/deploymentTaskPausedStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 Response Body: `application/deploymentTaskPausedStatus.v1+json` - `JSON Object` - **isTaskPaused** `boolean`: True if the task was successfully paused. ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 Task paused with 300000 milliseconds (5 minutes) remaining ```json { "isTaskPaused": true } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 50 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.