# Update a compliance profile Updates an existing compliance profile's name, description, or rules. ## Endpoint `PUT /bsp/api/v1/bmp/compliance/{compliance_id}/profiles` ## Request ### Request URL `https://{server-hostname}:8383/bsp/api/v1/bmp/compliance/{compliance_id}/profiles` ### Scope `BrowserManager.UPDATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** — string — **Mandatory**: `application/json` - **Accept** — string — **Mandatory**: `application/json` #### Path Parameters - **compliance_id** — string — **Mandatory** Compliance profile ID from [List Compliance Profiles](https://www.manageengine.com/products/desktop-central/help/api/onpremise/compliance-list-compliance-profiles.html) response (`profileid` field). #### Request Body `application/json` - JSON Object - **profile_name** — string — Optional Name of the compliance profile. Maximum 50 characters. - **profile_description** — string — Optional Description of the compliance profile. Maximum 100 characters. - **rule_ids** — array — Optional Compliance rule IDs from [List All Compliance Rules](https://www.manageengine.com/products/desktop-central/help/api/onpremise/compliance-list-all-compliance-rules.html) response (`rule_id` field) to attach to the profile. Accepts 1 to 50 rule IDs. ### Sample Request ```curl curl --request PUT \ --url https://appdomain/bsp/api/v1/bmp/compliance/{compliance_id}/profiles \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"profile_name":"Chrome Security Baseline","rule_ids":[351,357,362,367,377],"profile_description":"Baseline compliance for Chrome browsers"}' ``` ### Sample Request Body Modify profile with rule IDs from [List All Compliance Rules](https://www.manageengine.com/products/desktop-central/help/api/onpremise/Compliance_listAllComplianceRules) response (`rule_id` field). ```json { "profile_name": "Chrome Security Baseline", "rule_ids": [ 351, 357, 362, 367, 377 ], "profile_description": "Baseline compliance for Chrome browsers" } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - JSON Object - **collection_id** — string Collection ID associated with this profile version. - **profile_name** — string Name of the compliance profile. - **compliance_details** — JSON Object Compliance details including attached rule IDs and compliance ID. - **profile_type** — string Profile type code. `64500=Custom`, `64501=STIG`, `64502=CIS`. - **latest_version** — string Latest version number of this profile. - **is_moved_to_trash** — boolean Whether the profile has been moved to trash. `false` indicates active. - **profile_id** — string Unique identifier of the compliance profile. - **scope** — string Scope of the profile. `0` indicates organization-wide. - **latest_published_version** — string Latest published version number of this profile. - **profile_description** — string Description of the compliance profile. ### 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 403 Response Body — `application/json` - JSON Object - **errorCode** — long Forbidden error code returned when the authenticated user does not have the required uem-roles (for example, `DataEncryption_Admin` or `DataEncryptionRecoveryKey_Admin`). - **errorMsg** — string Message indicating insufficient privileges to access this resource. ### HTTP Code 429 Response Body — `application/json` - JSON Object - **errorCode** — long Rate limit error code returned when the API call threshold (configured via threshold/duration in security XML) is exceeded; client is locked out for lock-period minutes. - **errorMsg** — string Rate limit exceeded message with retry guidance. ### Possible Response Codes - **200** — HTTP code - **401** — HTTP code - **403** — HTTP code - **429** — HTTP code - **500** — HTTP code Returns 500 with no response body when an invalid `compliance_id` is provided. ### Sample Response: HTTP 200 Profile modified ```json { "collection_id": "222", "profile_name": "Chrome Security Baseline", "compliance_details": { "rule_ids": [ 351, 357, 362, 367, 377 ], "compliance_id": "303" }, "profile_type": "64500", "latest_version": "1", "is_moved_to_trash": false, "profile_id": "111", "scope": "0", "latest_published_version": "1", "profile_description": "Baseline compliance for Chrome browsers" } ``` ### Sample Response: HTTP 401 Unauthorized ```json { "errorCode": "UNAUTHORIZED", "errorMsg": "You are not authorized to perform this action" } ``` ### Sample Response: HTTP 403 Forbidden ```json { "errorCode": "FORBIDDEN", "errorMsg": "You do not have permission to access this resource" } ``` ### Sample Response: HTTP 429 Rate limit exceeded ```json { "errorCode": "RATE_LIMIT_EXCEEDED", "errorMsg": "You have exceeded the maximum number of API calls. Please try again later." } ``` ### Sample Response: HTTP 500 ```text 500 Returns 500 with no response body when an invalid compliance_id is provided. ``` ## Rate Limiting ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **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.