# Checks whether a custom group is already published in SSP Determines if a custom group has packages published in the self service portal. Returns the collection ID and group details when published, which are needed for modify and delete operations. ## Endpoints **GET** `/dcapi/swDeployment/ssp/customGroupPublished` ## Request URL `https://{serverurl}/dcapi/swDeployment/ssp/customGroupPublished` ## Scope `DesktopCentralCloud.SWDeployment.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/customGroupPublished.v1+json` ### Query Parameters - **groupResourceId** (`long`, Mandatory): Custom group resource ID. Obtain from the `groupResourceId` field in the response of the [List SSP Publish Groups](https://www.manageengine.com/products/desktop-central/help/api/cloud/self-service-portal-list-publish-groups.html) API. ## Sample Request ```curl curl --request GET \ --url 'https://appdomains/dcapi/swDeployment/ssp/customGroupPublished?groupResourceId=SOME_INTEGER_VALUE' \ --header 'Accept: application/customGroupPublished.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` **JSON Object** - **cgSelected** (`integer`): 0 indicates NOT published, 1 indicates IS published in SSP - **groupType** (`integer`): Group type: 1=Computer, 2=User. Present only when cgSelected=1. - **resourceId** (`long`): Resource ID of the custom group. Present only when cgSelected=1. - **groupName** (`string`): Display name of the custom group. Present only when cgSelected=1. - **collectionId** (`long`): Collection ID of the published SSP configuration. Present only when cgSelected=1. - **groupCategory** (`integer`): Group category: 1=Static, 2=Dynamic. Present only when cgSelected=1. ### 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 - **500**: HTTP code ## Sample Response: HTTP 200 ### Group Not Published Group not published — only `cgSelected` is returned, other fields are absent. ```json { "cgSelected": 0 } ``` ### Group Is Published With Full Details ```json { "cgSelected": 1, "groupType": 1, "resourceId": 301, "groupName": "Engineering Workstations", "groupCategory": 1, "collectionId": 5001 } ``` ## Sample Response: HTTP 500 ### Server Error ```json { "errorMessage": "Internal Server Error", "errorCode": "SW_INTERNAL_ERROR" } ``` ![ ](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.