Update Affiliate Program
update_affiliate_programUpdate an affiliate program you own as a merchant. Only provided fields are changed. You can change the name, description, public/private listing, commission rates, and cookie duration. Requires Builder tier or higher.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"program_id": "<program_id>"
},
"name": "update_affiliate_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New program name (3–100 characters) | |
| cpa_rate | No | New cost-per-acquisition rate in USD (0–1000.00) | |
| cpc_rate | No | New cost-per-click rate in USD (0–10.00) | |
| is_public | No | Whether the program appears in the public discovery listing | |
| program_id | Yes | The program ID to update | |
| description | No | New public description (max 500 characters) | |
| cookie_duration_days | No | How many days the affiliate tracking cookie lasts (1–365) |