Create or update environment
qase_environment_upsertCreate or update a Qase environment—a named target like staging or production used to attribute test runs. Provide an ID to update an existing environment; omit it to create a new one.
Instructions
Create or update an environment — a named target such as staging or production that runs are attributed to. With id it updates, without it creates. Existing environments come back from qase_project_context. Cost: one API call, about 0.5s.
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": {
"code": "<code>",
"title": "<title>"
},
"name": "qase_environment_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Environment ID — if provided, updates; if omitted, creates | |
| code | Yes | Project code, e.g. DEMO | |
| host | No | Environment host/URL | |
| slug | No | URL-friendly identifier | |
| title | Yes | Environment title | |
| description | No | Free-form description of the environment |