Updating segment definition via Adobe Analytics API 2.0 Hi all, Has anyone successfully updated the segment definition via the AA API 2.0? I can update the name, description and owner but not the definition.I get an 400 response when trying the below JSON with "definition" added and a 200 response when removing "definition" and just having "container" : {...}. But the definition does not update. Request: PUT_URL = f'https://analytics.adobe.io/api/{GLOBAL_COMPANY_ID}/segments/{SEGMENTID}?locale=en_US&expansion=definition'
response = requests.put(url=PUT_URL, headers=HEADER, data=json.dumps(data)) Here's an example data JSON definition_update = {
"name": "Test Segment",
"description": "Test Segment description",
"definition": {
"container": {
"context": "visitors",
"func": "container",
"pred": {
"func": "exists",
"val": {
"func": "attr",
"name": "variables/page"
}