-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
CLI Version: dev
TeamCity Server Version: 2026.2
Operating System: macOS
What happened?
tc api '/app/rest/server' -f 'key=value' silently ignores the --field flag on GET requests. The flag builds a JSON request body, which is meaningless for GET.
$ tc api '/app/rest/server' -f 'key=value'
{ ... normal server response ... }
Expected behavior
Should warn or error when --field is used with GET (the default method), e.g.:
Warning: --field is ignored for GET requests. Use -X POST to send a request body.
Steps to reproduce
- Run
tc api '/app/rest/server' -f 'key=value' - Observe no warning — the field is silently discarded
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working