The method is not recommended, and you can use setOffer

1.1.1 Summary

Set up an offer on overall CAP and each affiliate CAP information.
 

1.1.2 Request

Request Method: POST
Parameters:

Parameter Description Type Data Range
key Network API Key;
*Required
string  

      POST Parameters:

Parameter Description Type Data Range
id Offer ID
*Required
Int Single Value
has_cap_limit Enable/Disable CAP for the Offer
CAP is not required when the value is ‘0’
*Required
int 1: enable
0: disable
cap_type Budget or Conversion
*Required
String Budget
Conversion
cap_overall_limit Offer Overall CAP
*Required
Number > 0
-1: unlimited
cap_interval The cap interval of Offer
*Required
String Daily
Weekly
Monthly
cap_interval_limit Limit value of cap interval of Offer
*Required
Number > 0
-1: unlimited
cap_affiliate_overall_limit Offer’s total cap for a single Affiliate
*Required
Number > 0
-1: unlimited
cap_affiliate_interval Offer’s cap interval for a single Affiliate
*Required
String Daily
Weekly
Monthly
cap_affiliate_interval_limit limit value of cap interval of Offer for a single Affiliate
*Required
Number > 0
-1: unlimited
 

1.1.3 Response

 
Header:

HTTP Status Object Description Error Code
202   Success 0
400 Parameter Invalid Parameter 63XX
 
Content Format: JSON

1.1.4 Example

Sample Request URL:
http://{Your_Network_Domain}/api/v1/setOfferCapInfo?key=603E3F0E3266
(POST DATA)
 
Response sample:  Same as API “getOfferById”.