CXone Admin API: Bulk update agent skill proficiencies via REST

script to update the proficiency levels for a large group of agents using the CXone Admin API. The goal is to automate this process through Terraform local-exec provisioners, but we are running into issues with the bulk update endpoint.

The endpoint we are using is /api/v2/users/{userId}/proficiencies, and we are sending a POST request with the following JSON payload:

{
 "proficiencies": [
 {
 "skillId": "12345",
 "level": 5
 },
 {
 "skillId": "67890",
 "level": 3
 }
 ]
}

However, we are consistently receiving a 400 Bad Request error with the message “Invalid proficiency level.” We have verified that the skill IDs are correct and that the proficiency levels are within the valid range of 1 to 5. The issue seems to be specific to the bulk update functionality, as individual updates work without any problems.

We have also tried using the /api/v2/users/bulk/update endpoint, but it does not support proficiency updates. The documentation suggests using the /api/v2/users/{userId}/proficiencies endpoint for bulk updates, but we are unable to get it to work.

Has anyone encountered this issue before? We are using the CXone Python SDK for our implementation, and we have ensured that our API token has the necessary permissions to update user proficiencies. Any insights or workarounds would be greatly appreciated.