Hi All,
Facing error in updating accessprofile with entitlements and governance group using PATCH API
v2024/access-profiles/{id
I am using python script for this.
Can someone help with their insights?
Error: Access profile update failed. Status code: 415 {“timestamp”:“2025-06-18T13:22:13.596+00:00”,“status”:415,“error”:“Unsupported Media Type”,“path”:“/access-profiles/eab146821c1146948f4aa691502cf502”}
payload = json.dumps({
"op": "add",
"path": "/entitlements/0",
"value": {
"id": get_entitlement_id(entitlement_name, env_var),
"type": "ENTITLEMENT",
"name": "testgroup"
},
"owner": {
"type": "IDENTITY",
"id": "XXXXX"
},
"source": {
"id": "XXX"
"type": "SOURCE"
},
"requestable": True,
"accessRequestConfig": {
"commentsRequired": True,
"denialCommentsRequired": True,
"approvalSchemes": [
{
"approverType": "MANAGER"
},
{
"approverType": "GOVERNANCE_GROUP",
"approverId": "XXXX"
}
]
}
})