Back

endpoint URL query

  • 0
  • REST API
  • Web
  • Cloud
Jeremy
30 Mar, 2025, 01:11

Hello, I have my headers set properly, but when I add a query to the url, it gives me a syntax failure.

This example works: https://cloud.appwrite.io/v1/databases/[DATABASE_ID]/collections/[COLLECTION_ID]/documents This example doesn't: https://cloud.appwrite.io/v1/databases/[DATABASE_ID]/collections/[COLLECTION_ID]/documents?queries[]=orderDesc("$createdAt")

I'm new to working with backend services, so simplified explanations would be greatly appreciated.

TL;DR
- Developer facing issue with query syntax in URL for REST call - Provided valid and invalid URL examples - Shared link to documentation for reference: https://appwrite.io/docs/apis/rest#queries-string-format - Requested simplified explanations for assistance
Kenny
30 Mar, 2025, 01:32

That’s now how queries work in rest calls. check out the docs and lmk if you have any issues

https://appwrite.io/docs/apis/rest#queries-string-format

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more