Rate limit keeps tripping anyway. The Retry-After header shows 120 seconds which kills the whole pipeline. The compliance export loops through agents to update routing skills but hits a 429 Too Many Requests after the third batch, and we’ve got a Python script calling PUT /api/v2/users/{id} with a two second sleep.
import requests
import time
headers = {"Authorization": f"Bearer {token}"}
for user in user_list:
res = requests.put(f"https://{org}.mypurecloud.com/api/v2/users/{user}", json=payload, headers=headers)
if res.status_code == 429:
wait = int(res.headers.get("Retry-After", 5))
time.sleep(wait)
res = requests.put(f"https://{org}.mypurecloud.com/api/v2/users/{user}", json=payload, headers=headers)