Commission rules
Update a commission rule
Send the whole rule. branches replaces the list: branches with an id are kept (and the commissions citing them keep pointing at them), the rest are created, omitted ones are deleted.
Scope: commissions:write (or write)
post/v1/rules/{id}
Request
- Base URL: https://api.affiliaterail.com
- URL: https://api.affiliaterail.com/v1/rules/{id}
- Auth: HTTP bearer
Path parameters
idstring required
Prefixed id (flw_…)
Example:flw_7uSyy9FqVLCFWrdPeZaK
Request body
Example request
{
"group_id": "grp_7uSyy9FqVLCFWrdPeZaK",
"partner_id": "part_7uSyy9FqVLCFWrdPeZaK",
"branches": [
{
"id": "flb_7uSyy9FqVLCFWrdPeZaK"
}
]
}Response
The updated rule
Example response
{
"id": "flw_7uSyy9FqVLCFWrdPeZaK",
"program_id": "prg_7uSyy9FqVLCFWrdPeZaK",
"group_id": "grp_7uSyy9FqVLCFWrdPeZaK",
"partner_id": "part_7uSyy9FqVLCFWrdPeZaK",
"switch_to_group_id": "grp_7uSyy9FqVLCFWrdPeZaK",
"branches": [
{
"id": "flb_7uSyy9FqVLCFWrdPeZaK",
"rule_id": "flw_7uSyy9FqVLCFWrdPeZaK",
"created_at": "2026-08-21T10:15:30.000Z",
"updated_at": "2026-08-21T10:15:30.000Z"
}
],
"created_at": "2026-08-21T10:15:30.000Z",
"updated_at": "2026-08-21T10:15:30.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.