Skip to main content

update_feature

Update a feature's Gherkin and/or rename it. Body fields are optional — send what you want to change.

warning

Rejected with 409 conflict while the feature is generating. Updating the Gherkin does not regenerate tests — follow up with generate_feature.

Request​

PATCH /api/v1/ops/projects/{project}/features/{feature}
ParameterInTypeRequiredDescription
projectpathstringyesThe project's public id.
featurepathstringyesFeature id or name.
gherkinbodystringnoThe new Gherkin source.
namebodystringnoThe new feature name.
groupbodystringnoExisting group name or public id; empty string ungroups.
version_tagsbodystring[] or nullnoREST: replace tags; null or an empty array clears them. Read responses use versionTags.
curl -X PATCH -H "Authorization: Bearer $TESTVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Sign-in"}' \
"$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/features/12"

Response​

{ "ok": true }

Errors​

HTTPWhen
404 not_foundNo such feature in this project.
409 conflictThe feature is generating right now — wait or cancel first.

Comment-, tag-, and whitespace-only Gherkin edits preserve generation state. Semantic changes can make the saved spec out of date; inspect specStale and regenerate when behavior changes. Group and version-tag edits are metadata changes. testvibe features update <feature> --group "" ungroups a feature.