CashflowGroup::replaceGoalRevenueGroupsForGoal Method

Sets all the goal revenue groups for an goal, purging any previous groups that were set for the goal, updating
any existing ones which are passed with an id, and creating new ones that lack an id.

NameTypeDescription
NetworkId UrlNetwork ID
NetworkToken String Network token
Target String This calls action target
Method String This calls action method
goal_id IntegerID of Goal object whose payout groups are being set
goal_revenue_groups_json String A JSON-encoded array of goal payout groups

Examples of JSON Values

Adding two RPA revenue groups

goal_revenue_groups_json: [{"cashflow_group_id":"51","rate":"150.00"},{"cashflow_group_id":"59","rate":"120.00"}]

Adding two RPS revenue groups

goal_revenue_groups_json: [{"cashflow_group_id":"51","percent":"100.00"},{"cashflow_group_id":"59","percent":"80.00"}]

GET Response Notes

Return response will be in the following format: void.

API Call Builder

Javascript is required to use the API Call Builder.
Have a Question? Please contact support@tune.com for technical support.