Skip to content

Commit

Permalink
Merge pull request #150 from goodintheory/patch-1
Browse files Browse the repository at this point in the history
Update data-sources.md
  • Loading branch information
gigazelle committed Jan 30, 2024
2 parents db873f2 + 163368f commit 71fa2c6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/pages/guides/data-sources.md
Expand Up @@ -90,7 +90,18 @@ curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=DataSources.GetJob
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportSuiteID": "examplersid","dataSourceID":10}'
-d '{
"reportSuiteID": "examplersid",
"dataSourceID": 1,
"filters": {
"name": [
"name1",
"name2"
],
"state": "success",
"lookback": 10
}
}'
```

#### Response
Expand Down Expand Up @@ -130,6 +141,7 @@ The request requires both of the following parameters:
| --- | --- | --- |
| **`reportSuiteID`** | `string` | The report suite ID. |
| **`dataSourceID`** | `int` | The data source ID to get jobs for. |
| **`filters`** | `object` | (Optional) Filters returned data. Elements include: <br/>`name`: A `string[]` array that filters by job name. <br/>`state`: Filter by the job's current status. Valid values include `uploaded`, `processing`, `cache`, `success`, `failure`, `deleted`.<br/>`lookback`: The number of days to look back from the current day. |

The response returns an array of data source jobs containing the following elements:

Expand Down

0 comments on commit 71fa2c6

Please sign in to comment.