Data sent must be properly UTF-8 URL-encoded. By default, browsers will properly encode POST
calls. However, if you are writing your own client, you will need to make sure to set the HTTP Content-Type header
to application/x-www-form-urlencoded
if you are form-encoding your request bodies or application/json
if you are JSON-encoding your request bodies. If you are uploading a file as part of your request, you will need to specify multipart/form-data
.
In some cases, clients do not support PUT
and DELETE
methods. In these cases, you can override the actual HTTP
method by appending the _method
parameter via a POST
request. Valid values are PUT
and DELETE
.
Unless otherwise stated, request parameters have the following restrictions:
URL Encoding
curl 'https://api.impact.com/Advertiser/<AccountSID>/Actions' \
-X POST \
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'OrderId=MyTestOrderId'
Method Overloading
curl 'https://api.impact.com/Advertiser/<AccountSID>/Actions/ActionId=1017.3295.188200' \
-d '_method=DELETE' \
-G