docs: Add check-if-room-exists pattern to query-rooms guide - #23352
Draft
nedi-app[bot] wants to merge 1 commit into
Draft
docs: Add check-if-room-exists pattern to query-rooms guide#23352nedi-app[bot] wants to merge 1 commit into
nedi-app[bot] wants to merge 1 commit into
Conversation
…the Common patterns section of query-rooms.md, placed after the existing find-by-name pattern. The pattern uses the documented GET /api/v2/spaces/$SPACE/rooms list endpoint via agents_query_cloud, pipes to jq -e with any(.id==$ID) for an exit-code-based existence check, and includes a one-line note that no single-room GET endpoint exists.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Add check-if-room-exists pattern to query-rooms guide. Files changed: docs/netdata-ai/skills/query-netdata-cloud/query-rooms.md.
User Request
how to get if a room exists in a space with space and room id
Prompt (English)
Check if a room exists in a space using Netdata Cloud REST API and the space/room IDs
Reason for Change
This change applies the specific user request using repository-truth evidence from the audit execution workspace.
Summary by cubic
Added a check-if-room-exists pattern to query-rooms.md to verify a room ID in a space using the Netdata Cloud rooms list endpoint with a jq-based existence check. Also notes that no single-room GET endpoint exists and includes a copy-paste command.
Written for commit dabcbd9. Summary will update on new commits.