I'm encountering an issue with the Variables API endpoint when attempting to export local variables. The endpoint returns all remote variables from shared files, making it impossible to export only local variables.
Current Behavior:
- The endpoint returns all remote variables from shared files
- Unable to filter or export only local variables
- Receiving a 400 error with "Request too large" message
Error Response:
{ "status": 400, "error": true, "message": "Request too large. If applicable, filter by query params." }
Technical Details:
- The error message suggests using query parameters for filtering
- However, the endpoint documentation doesn't list any available query parameters
- The endpoint lacks pagination capabilities
- This limitation makes the endpoint essentially unusable for files with many variables
Expected Behavior:
- Ability to export only local variables
- Support for filtering variables (local vs. remote)
- Pagination support for large variable sets
Impact: This issue significantly impacts workflow automation and variable management, especially in projects with multiple shared libraries and variable collections.
Suggested Solutions:
- Add query parameters for filtering variable types (local/remote)
- Implement pagination support
- Add ability to specify variable scope in the request
Let me know if you'd like me to modify any part of this bug report.