Retrieve a routing rule

Retrieve the object of an existing routing rule.

Parameters


No parameters.

Returns


Returns a routing rules object if a valid identifier is provided. Returns an error for invalid identifiers.

Example Request


curl 'https://api.impact.com/Advertisers/<AccountSID>/Programs/1000/BlockRedirectRules/50000' \
  -X GET \
  -u '<AccountSID>:<AuthToken>' \
  -H 'Accept: application/json'

Example Response


{
  "Id": "50000",
  "Name": "Redirect 4",
  "Condition": [
    {
      "SubConditions": [
        {
          "Variable": "COUNTRY",
          "Operator": "IN",
          "Values": [
            "US"
            ]
          }
        ]
      }
    ],
  "Action": "REDIRECT",
  "RedirectUrl": "http://impact.com",
  "Source": "GENERIC",
  "Rank": "HIGH",
  "State": "RUNNING",
  "DateCreated": "2019-10-28T17:53:01-04:00",
  "DateLastUpdated": "2019-10-28T17:53:01-04:00",
  "CreatedBy": "ACME Corp",
  "LastUpdatedBy": "ACME Corp",
  "Uri": "/Advertisers/<AccountSID>/Programs/1000/BlockRedirectRules/50000"
}