Call it
curl https://api.peume.com/v1/call/update-a-conversion-destination \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"destinationId": "your destinationId",
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-a-conversion-destination", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"destinationId": "your destinationId",
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-a-conversion-destination",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"destinationId": "your destinationId",
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: update-a-conversion-destination.
Parameters
destinationIdRequiredstringaccountIdRequiredstringThe connected ads account (SocialAccount ID).
adAccountIdRequiredstringnamestringenabledbooleanSetting `false` is equivalent to calling DELETE: the rule will appear as `inactive` afterwards.
attributionTypestringLAST_TOUCH_BY_CAMPAIGN · LAST_TOUCH_BY_CONVERSION
postClickAttributionWindowSizeinteger365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.
1 · 7 · 30 · 90 · 365
viewThroughAttributionWindowSizeinteger365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.
1 · 7 · 30 · 90 · 365
valueTypestringDYNAMIC · FIXED · NO_VALUE
valueobjectUsed when `valueType=FIXED`.
