Storing domain redirect
To store domain redirect data, use POST method:
POST Method
curl -u username:password -X POST \
--data '{"campaign_id":"662963", "creative_id":"10231320", "domain":"testdomain.com", "supportsHTTPS":false"}' \
https://platform.oddbytes.com/api/v1/15110/redirectDomains
Removing domain redirect
To delete domain redirect data, use DELETE method:
DELETE Method
curl -u username:password -X DELETE \
--data '{"campaign_id":"662963", "creative_id":"10231320", "domain":"testdomain.com", "supportsHTTPS":"false"}' \
https://platform.oddbytes.com/api/v1/15110/redirectDomains
Updating domain redirect
To change domain redirect data, use PUT method (change supportsHTTPS
to true or false):
PUT Method
curl -u username:password -X PUT \
--data '{"domain":"testdomain.com", "supportsHTTPS":"true/false"}' \
https://platform.oddbytes.com/api/v1/15110/redirectDomains
Fetching domain redirect
To fetch domain redirect data, use GET method:
GET Method
curl -u username:password -X GET \
https://platform.oddbytes.com/api/v1/15110/redirectDomains