# Create an APD Task Creates a new Automated Patch Deployment (APD) task. ## Endpoint `POST /api/1.4/patch/createAPDTask` ## Request URL `https://{serverurl}/api/1.4/patch/createAPDTask` `{serverurl}`: [OAuth authentication endpoint domain](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ## Scope `DesktopCentralCloud.PatchMgmt.CREATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Query Parameters - **customerid** `long` *(Optional)* ### Request Body `application/json` - `JSON Object` - **settings** `string` *(Mandatory)*: APD task configuration object ### Sample Request ```curl curl --request POST \ --url https://appdomains/api/1.4/patch/createAPDTask \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"settings":{"feature_packs":false,"platformFilter":["Windows"],"service_packs":false,"collections":[1,2,3],"definition_update":false,"severityFilter":["Critical","Important"],"description":"Automated patch deployment","thirdparty_update":true,"taskName":"My APD Task","non_security_update":false,"security_update":true,"rollups":false}}' ``` ### Sample Request Body Create APD task with security and third-party updates ```json { "settings": { "feature_packs": false, "platformFilter": [ "Windows" ], "service_packs": false, "collections": [ 1, 2, 3 ], "definition_update": false, "severityFilter": [ "Critical", "Important" ], "description": "Automated patch deployment", "thirdparty_update": true, "taskName": "My APD Task", "non_security_update": false, "security_update": true, "rollups": false } } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **message_type** `string`: Value: `createAPDTask` - **message_response** `JSON Object`: Task creation result with status message - **message_version** `string`: API version: `1.4` - **status** `string`: Operation status: `success` ## Possible Response Codes - **200** `HTTP code` ### Sample Response: HTTP 200 APD task created ```json { "message_type": "createAPDTask", "message_response": { "createapdtask": { "status": "windows create task task created successfully" } }, "message_version": "1.4", "status": "success" } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **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.