# Create an APD Task Creates a new Automated Patch Deployment (APD) task. ## Endpoint **POST** `/api/1.4/patch/createAPDTask` ## Request URL `https://{server-hostname}:8383/api/1.4/patch/createAPDTask` ## Scope `PatchMgmt.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Body **Content type:** `application/json` - **settings** `string` — **Mandatory** - APD task configuration object ## Sample Request ```curl curl --request POST \ --url https://appdomain/api/1.4/patch/createAPDTask \ --header 'Authorization: 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 content type:** `application/json` - **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" } ``` ## API Rate Limit **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.