Update conversion cap
PUT
/api/v2/client/applications/{application_id}/conversion-caps/{conversionCap_id}
const url = 'https://app.affisemmp.com/api/v2/client/applications/12/conversion-caps/7';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Daily installs","limit_type":"cost","window":"week","limit_value":250.5,"interval_from":"2026-11-01T00:00:00Z","interval_to":"2026-12-01T00:00:00Z","action_mark":true,"action_no_postback":false,"action_zero_cost":true,"is_active":true,"filters":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://app.affisemmp.com/api/v2/client/applications/12/conversion-caps/7 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Daily installs", "limit_type": "cost", "window": "week", "limit_value": 250.5, "interval_from": "2026-11-01T00:00:00Z", "interval_to": "2026-12-01T00:00:00Z", "action_mark": true, "action_no_postback": false, "action_zero_cost": true, "is_active": true, "filters": {} }'Only the sent fields change; the rules are checked against the resulting cap. Changing limit_type, window, the interval or filters starts the counter over (reset_at moves); changing the limit, name, actions or is_active does not.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
12 conversionCap_id
required
integer
The ID of the conversion cap.
Example
7Request Body
Section titled “Request Body ” Media type application/json
object
name
Up to 255 characters.
string
Example
Daily installs limit_type
One of: count, cost.
string
Example
cost window
One of: hour, day, week, month, interval, total.
string
Example
week limit_value
Greater than 0, at most 8 decimal places; a whole number when limit_type is count.
number
Example
250.5 interval_from
Required when the resulting window is interval, prohibited otherwise.
string
Example
2026-11-01T00:00:00Z interval_to
Required when the resulting window is interval, prohibited otherwise.
string
Example
2026-12-01T00:00:00Z action_mark
boolean
Example
true action_no_postback
Requires action_mark in the resulting cap.
boolean
Example
false action_zero_cost
Requires action_mark in the resulting cap.
boolean
Example
true is_active
boolean
Example
true filters
Replaces the filters as a whole.
object
partner_ids
Array<integer>
Example
[ 34, 35] countries
Array<string>
Example
[ "DE"] conversion_types
Array<string>
Example
[ "install"]Example
{}Responses
Section titled “ Responses ” Media type application/json
object
data
object
id
integer
client_id
integer
application_id
integer
name
string
limit_type
string
window
string
limit_value
string
interval_from
string
interval_to
string
filters
object
countries
Array<string>
action_mark
boolean
action_no_postback
boolean
action_zero_cost
boolean
is_active
boolean
reset_at
string
created_at
string
updated_at
string
Example
{ "data": { "id": 7, "client_id": 3, "application_id": 12, "name": "Daily installs", "limit_type": "cost", "window": "week", "limit_value": "250.50000000", "interval_from": null, "interval_to": null, "filters": { "countries": [ "DE" ] }, "action_mark": true, "action_no_postback": false, "action_zero_cost": true, "is_active": true, "reset_at": "2026-11-05T12:30:00Z", "created_at": "2026-11-01T10:00:00Z", "updated_at": "2026-11-05T12:30:00Z" }}