# Modifies the packages published in an existing SSP group Updates the list of packages published in a self service portal group. Requires the collection ID from the existing published configuration. ## Endpoints **POST** `/dcapi/swDeployment/publishGroup/modify` ## Request URL `https://{server-hostname}:8383/dcapi/swDeployment/publishGroup/modify` ## Scope `SWDeployment.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory**: `application/modifyPackageGroup.v1+json` - **Accept** `string` — **Mandatory**: `application/modifyPackageGroup.v1+json` ### Request Body `application/json` - `JSON Object` - **groupResourceId** `string` — Optional Resource ID of the target custom group. Obtain from the `groupResourceId` field in the response of the [List SSP Publish Groups](https://www.manageengine.com/products/desktop-central/help/api/onpremise/self-service-portal-list-publish-groups.html) API. - **configType** `integer` — Optional Configuration type: `1=Computer`, `2=User` - **collectionId** `string` — Optional Collection ID of the existing SSP configuration. Obtain from the `collectionId` field in the response of the [Check Custom Group Published](https://www.manageengine.com/products/desktop-central/help/api/onpremise/self-service-portal-check-custom-group-published.html) API. - **packageDetails** `JSON Array` — Optional Array of package publish detail objects ## Sample Request ```curl curl --request POST \ --url https://appdomain/dcapi/swDeployment/publishGroup/modify \ --header 'Accept: application/modifyPackageGroup.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/modifyPackageGroup.v1+json' \ --data '{"packageDetails":[{"packageId":10001,"packageApproval":0},{"packageId":10004,"packageApproval":1}],"configType":1,"collectionId":"5001","groupResourceId":"301"}' ``` ## Sample Request Body ### Replace packages in SSP group ```json { "packageDetails": [ { "packageId": 10001, "packageApproval": 0 }, { "packageId": 10004, "packageApproval": 1 } ], "configType": 1, "collectionId": "5001", "groupResourceId": "301" } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **statusMsg** `string` Localized message describing the publish result. Contains success confirmation, archived package warning, or invalid package error. ### HTTP Code 401 Response Body — `application/json` - `JSON Object` - **errorCode** `long` Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required) - **errorMsg** `string` Authentication failure reason ### HTTP Code 500 Response Body — `application/json` - `JSON Object` - **errorCode** `string` `INTERNAL_ERROR` for publish/modify failures, `SW_INTERNAL_ERROR` for SSP configuration errors - **errorMessage** `string` Internal server error with details about the SSP publish or group operation failure ## Possible Response Codes - **200** — HTTP code - **401** — HTTP code - **500** — HTTP code ## Sample Response: HTTP 200 ### Modified successfully ```json { "statusMsg": "Packages published for the Group (Engineering Workstations)" } ``` ## Sample Response: HTTP 401 ### No access to modify ```json { "errorMessage": "The user has no access to modify published group.", "errorCode": "ACCESS_DENIED" } ``` ## Sample Response: HTTP 500 ### Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "INTERNAL_ERROR" } ``` ## Rate Limit ![](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.