Skip to content

Commit

Permalink
Updated Report.Validate API
Browse files Browse the repository at this point in the history
  • Loading branch information
ridmaur committed Oct 25, 2023
1 parent 80f84ad commit 9f430df
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/pages/guides/reporting/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,22 @@ curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Validate" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportDescription":{"reportSuiteID": "examplersid"}}'
-d '{
"reportDescription": {
"reportSuiteID": "examplersid",
"source": "standard",
"dateFrom": "now",
"dateTo": "noon",
"metrics": [
{
"id": "pageviews"
}
],
"locale": "en_US",
"dateGranularity": "minute:30",
"currentData": false
}
}'
```

#### Response
Expand All @@ -470,4 +485,8 @@ curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Validate" \
This method requires a `reportDescription` JSON object, which contains the desired reporting parameters. See [reportDescription JSON object reference](report-description/index.md) for details.

* If the `reportDescription` JSON object is valid, the response contains `"valid": true`.
* If the `reportDescription` JSON object is invalid, the API returns an error outlining the issue. See [Troubleshooting](troubleshooting.md) for details.
* If the `reportDescription` JSON object is invalid, the API returns an error outlining the issue. See [Troubleshooting](troubleshooting.md) for details.
* If `source` is set to `realtime`, ensure either `currentData` is set to `false` or `currentData` is not part of the request, otherwise a 500 - Internal Server Error is returned.



0 comments on commit 9f430df

Please sign in to comment.