<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Changes a test's name, goal or role. Send only the fields you want to change. Send role as null to clear it, so Base44 picks a role from the test's name or goal again.

Each edit raises the test's revision by 1. You can't edit a test while it has a run going, so cancel the run or wait for it to end first.

This is limited to 300 requests per minute per caller for each app. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. Read-only keys and workspace API keys are refused.</Note>

patch/api/apps/{app_id}/testing-agent/flows/{flow_id}

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/testing-agent/flows/{flow_id}
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app.

flow_idstring required

ID of the test to update.

Request body

namestring nullable

New name for the test.

goalstring nullable

New goal for the test, in plain language.

rolestring nullable

Role to run the test as. Send null to clear it, so Base44 picks one from the name or goal again.

Example request

{
  "name": "Create a project",
  "goal": "Sign up, create a project called Launch, and check that it appears on the dashboard.",
  "role": "admin"
}

Response

The updated test.

idstring required

ID of the test.

app_idstring required

ID of the app the test belongs to.

namestring required

Short name of the test.

goalstring required

What the testing agent tries to do, in plain language.

rolestring nullable

Role set on the test, or null when none is set. A test without one can still run as a role its name or goal names. The run's flow_role shows the role actually used.

sourcestring required

manual for a test you created, app_context for one Base44 generated from the app.

revisioninteger required

Starts at 1 and goes up each time the test is edited.

created_datestring required

When the test was created, as an ISO 8601 UTC timestamp.

updated_datestring required

When the test last changed, as an ISO 8601 UTC timestamp.

Example response

{
  "id": "68a1c2e4f0b3d9001a7e5c21",
  "app_id": "6820f3a4e7b91d003c45a1f2",
  "name": "Create a project",
  "goal": "Sign up, create a project called Launch, and check that it appears on the dashboard.",
  "role": "admin",
  "source": "manual",
  "revision": 1,
  "created_date": "2026-09-28T10:15:00+00:00",
  "updated_date": "2026-09-28T10:15:00+00:00"
}

Changes