Skip to main content

update_feature

Update a feature's Gherkin and/or rename it. Both 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.
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.