- Moved GraphQL query samples into a new `docs/queries` directory for better organization. - Added new queries and mutations, including `createHost.graphql` and `GetApiVersion.graphql`. - Introduced `mcp-config.yaml` and updated `docker-compose.yml` for MCP integration. - Updated IntelliJ `.idea/workspace.xml` settings to reflect project changes. - Added new how-to guides (`docs/howtos`) for permissions, tags, MCP integration, and schema usage. - Enhanced tests by updating file paths and improving sample data locations. - Refined permissions and host group structures in `zabbix-hostgroups.ts` and `resolvers.ts`.
30 lines
493 B
GraphQL
30 lines
493 B
GraphQL
### Mutation
|
|
Use this mutation to delete template groups by their numeric IDs or by a name pattern.
|
|
|
|
```graphql
|
|
mutation DeleteTemplateGroups($groupids: [Int!], $name_pattern: String) {
|
|
deleteTemplateGroups(groupids: $groupids, name_pattern: $name_pattern) {
|
|
id
|
|
message
|
|
error {
|
|
message
|
|
code
|
|
data
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### Variables (by ID)
|
|
```json
|
|
{
|
|
"groupids": [201]
|
|
}
|
|
```
|
|
|
|
### Variables (by name pattern)
|
|
```json
|
|
{
|
|
"name_pattern": "Templates/Roadwork/%"
|
|
}
|
|
```
|