Update Recommended Action
Changed onEdits the arguments of a ready action's steps before it runs. Send the action's workflow back with one entry for each step, in the same order. An entry with arguments replaces that step's arguments. An entry without them leaves the step as it is. Only arguments can change. Other step fields can be sent back only with the values the action has. Changing the kind of the createExperiment step rewrites the steps around it: beforeafter publishes the change before measuring it, and experiment tests it on a share of visitors.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
Recommended action ID, prefixed reca_.
Headers
Pins the request to a dated API version.
Request body
The action's workflow with the arguments to change.
Example request
{
"workflow": {
"steps": [
{
"arguments": {
"id": "plan_xxxxxxxxxxxxxx",
"visibility": "visible"
},
"operation": "updatePlan",
"status": "pending",
"title": "Offer the Interior Deep Clean package on the website"
}
]
}
}Response
Action updated
The account the action is for, prefixed biz_.
When the action was created, as an ISO 8601 timestamp.
The experiment measuring the action's outcome, prefixed expt_. null when there is none.
Recommended action ID, prefixed reca_.
The website change a recommended action makes when it runs. type picks the shape. New types can be added, so skip a preview whose type you do not know.
Why Whop recommends the action, written for the account owner.
The user who ran the action, prefixed user_. null until the action runs.
When the run ended, as an ISO 8601 timestamp. null until the run ends.
When the run started, as an ISO 8601 timestamp. null until the action runs.
Where the action is. preparing while its work is built, and it cannot run yet. ready when it can run. running while its steps are sent. executed when every step succeeded. failed when the run ended before every step succeeded. dismissed when the owner chose not to run it. superseded when Whop retired it, such as for a newer action.
What the action does, written for the account owner.
What kind of change the action makes. New values can be added, so skip an action whose type you do not know.
When the action was last updated, as an ISO 8601 timestamp.
Example response
{
"account_id": "biz_xxxxxxxxxxxxxx",
"created_at": "2026-01-01T12:00:00.000Z",
"id": "reca_xxxxxxxxxxxxxx",
"preview": {
"changed_resources": [
{
"id": "plan_xxxxxxxxxxxxxx",
"resource_type": "variant"
}
],
"type": "website_change"
},
"reasoning": "Visitors who reach your pricing section buy, but most leave the home page before they scroll to it.",
"run_by_user_id": "user_xxxxxxxxxxxxxx",
"run_started_at": "2026-01-01T12:00:00.000Z",
"status": "running",
"target_stats": [
{
"direction": "up",
"estimate": 1240,
"metric": "gross_revenue",
"params": {
"from": "2026-01-01",
"product": "prod_xxxxxxxxxxxxxx",
"to": "2026-01-01"
}
}
],
"title": "Lead your home page with before and after detailing photos",
"type": "improve_landing_page",
"updated_at": "2026-01-01T12:00:00.000Z",
"workflow": {
"api_version": "2026-01-01",
"steps": [
{
"arguments": {
"id": "plan_xxxxxxxxxxxxxx",
"visibility": "hidden"
},
"operation": "updatePlan",
"status": "pending",
"title": "Offer the Ceramic Coating Package on the website"
}
]
}
}Changes
- warning
added the new
create_message_automationenum value to thetyperesponse property for the response status - info
removed the
create_email_automationenum value from thetyperesponse property for the response status
- warning
- warning
added the new
promo_codeenum value to thepreview/oneOf[#/components/schemas/RecommendedActionPreview]/oneOf[#/components/schemas/RecommendedActionWebsiteAbTestPreview]/changed_resources/items/resource_typeresponse property for the response status
1 more change in this revision
- warning