Skip to content

Commit 8b975d2

Browse files
docs(aidbox-search): add POST with body params example for AidboxQuery
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e365887 commit 8b975d2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/api/rest-api/aidbox-search.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ GET /fhir/Encounter?_query=daily-report&date=2013-06-08
169169

170170
When called via `/fhir/<ResourceType>`, the `{{resourceType}}` variable is available in the query context and resolves to the resource type from the URL.
171171

172+
If the query parameters are too long to fit in the URL, you can use `POST` and pass parameters in the request body instead:
173+
174+
```http
175+
POST /$query/daily-report
176+
Content-Type: application/json
177+
178+
{"params": {"date": "2013-06-08"}}
179+
```
180+
172181
### Query types <a href="#query-types" id="query-types"></a>
173182

174183
AidboxQuery has `type` field, which can be either `query` or `execute`. Default type is query. This means that _SELECT_ statement in query parameter is expected. If you want to make SQL query with execute statements e.g. _TRUNCATE_, use `execute` type.

0 commit comments

Comments
 (0)