Edit in GitHubLog an issue

Validate segments

Because report suites can have different configurations, variables, or metrics, one segment that is valid in one report suite may not be valid in another. To determine which segments to use in different report suites, you can use the validate endpoint. This endpoint allows you to POST a definition along with a target rsid. The validate endpoint responds with compatibility information on the segment.

The response shows validation for the segment, including its compatibility with supported products, supported schema, and supported features.

Copied to your clipboard
curl -X POST "https://analytics.adobe.io/api/examplersid/segments/validate" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{
"container": {
"func": "container",
"pred": {
"str": "",
"val": {
"func": "attr",
"name": "variables/evar7"
},
"func": "streq",
"description": "Custom Conversion 7"
},
"context": "hits"
},
"func": "segment",
"version": [
1,
0,
0
]
}'
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.