Requirements Update
requirements_updateUpdate a requirement. Content merges by key: send only changed content keys, using arrays for metadata, to preserve existing scalar/list values. PUT resets omitted from_description, subsystem_id, source_story_ids and source_requirement_ids; include their current values to preserve them. An omitted lock stays unchanged, and so does an omitted lifecycle unless content.implementation_status supplies a recognized status. Prefer requirements_patch for partial edits. A locked requirement refuses changes to its wording, and deletion, until a person unlocks it in Entalpa; its links, subsystem, lifecycle and implementation progress (implementation_status, implementation_notes, code_reference, test_reference, tests) can still be written, and labels_assign still labels it. lock: true locks the row; lock: false is ignored, since only a person unlocks, in Entalpa. The change is one step in the project's undo history, which projects_undo steps back through.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"requirement": "<requirement>",
"requirement_id": "<requirement_id>"
},
"name": "requirements_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project UUID (database id). | |
| requirement | Yes | Keep text, human label and metadata in content. Relationship fields alongside content accept UUIDs only. Omitted or null relationship lists preserve links in patches; [] clears them. subsystem_id:null clears the subsystem. | |
| requirement_id | Yes | Requirement UUID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lock | Yes | True when the row is locked: generation leaves it out, and what it says can't change, nor can it be deleted, until a person unlocks it in Entalpa. Its links, subsystem or endpoints, implementation progress and a requirement's lifecycle can still be updated. | |
| labels | Yes | Labels the item carries, by name. Set them with labels_assign and labels_unassign. | |
| content | Yes | Requirement content object returned by the server. | |
| lifecycle | Yes | Where the requirement stands. One of: draft, in_review, reviewed, in_progress, implemented, verified, blocked, rejected, superseded. The first six are a ladder from authored to tested; blocked, rejected and superseded are not progress. Writing content.implementation_status also moves this — in_progress, implemented, verified and blocked map across, while not_started is ignored rather than demoting a reviewed requirement. | |
| project_id | Yes | Project UUID (database id). | |
| subsystem_id | No | Subsystem UUID (database id). | |
| requirement_id | Yes | Requirement UUID (database id). | |
| from_description | No | True if this requirement originated from the project description. | |
| source_questions | No | The answers it states (source_question_ids), by human id; a withdrawn value is marked. | |
| source_story_ids | Yes | List of story UUIDs. | |
| suspect_story_ids | No | Source stories edited after this requirement was written from them. Non-empty means it may no longer say what the story asks: re-propagate the story (projects_propagate_stories), rewrite the requirement, or confirm it still holds (requirements_confirm_sources) before implementing it. | |
| source_question_ids | No | Answered questions whose answer this requirement states (a stakeholder's answer, or a value the team assumed). | |
| suspect_question_ids | No | Of source_question_ids, the answers changed after this requirement was found to state them: carry the change (projects_propagate_stories with chosen_question_ids), rewrite the requirement, or confirm it still holds (requirements_confirm_sources). | |
| source_requirement_ids | No | List of requirement UUIDs (database ids), not content.id. |