API call to update a segment composition tree (SCT).
The user must be authenticated and have write permissions to the site group.
Request
The request object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
The id of the SCT to update. |
|
|
String |
No |
The site group identifier to store the SCT under. |
|
|
String |
No |
Max 250 characters. |
|
|
String |
No |
Max 250 characters. |
|
|
Boolean |
No |
Activate/deactivate the SCT. |
|
|
|
No |
The segment composition tree nodes the tree consists of. |
Response
The response object for a successful query has the following fields:
|
Name |
Type |
Description |
|---|---|---|
|
|
String |
The identifier for the SCT |
|
|
String |
The site group identifier to which this SCT belongs |
|
|
String |
The name of this SCT |
|
|
String |
A description for this SCT |
|
|
|
The segment composition tree nodes the tree consists of. |
Examples
$ /config/bin/cx.py /segment/composition-tree/update '{"siteGroupId":"1352607337759980390","id":"c1a91f31-b42f-4870-aa04-e136988b1de0","name":"test2","node":{"or":[{"and":[{"segmentId":"aa9o0y4vujjh"},{"segmentId":"aaki3g4izc5a"}]},{"segmentId":"aavlzlrn5j9b"}]}}'
{
"id": "c1a91f31-b42f-4870-aa04-e136988b1de0",
"name": "test2",
"siteGroupId": "1352607337759980390",
"node": {
"or": [
{
"and": [
{
"segmentId": "aa9o0y4vujjh"
},
{
"segmentId": "aaki3g4izc5a"
}
]
},
{
"segmentId": "aavlzlrn5j9b"
}
]
}
}