Edit an ATC (full replace of steps and assertions)
Changed onBearer atc:write (or cookie session). PUT-style full replace — omitted children are cleared, and so are omitted technique / priority (BK-399: an omitted key stores null = not specified, it does not preserve the previous value). An empty body is a 200 no-op (no version bump, no event). user_story_id, module_id, and slug are immutable. BK-21: edits propagate automatically to every Test that chains the ATC (Tests reference it by id, never copy its content), visible on the Test's next read. The response reports affected_test_count (DISTINCT chaining Tests — a Test that chains the ATC at multiple positions counts once; 0 for a no-op). Emits an atc.updated event carrying the in-transaction affected_test_ids.
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/api/v1/atcs/{id}
- Auth: one of:
- API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
- HTTP bearer
Path parameters
Headers
Current version for optimistic locking. A mismatch returns 409. Uses a custom header instead of RFC 7232 If-Match because the Vercel edge intercepts If-Match and rewrites the response to 412 (BK-96); If-Match is still accepted as a fallback on non-Vercel deployments.
Request body
Response
ATC updated (or no-op for an empty body).
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- info
- warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status
- warning