Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5935,12 +5935,23 @@ paths:
Reusable dropdown field definitions. Each has a type:
- **Identity** — for Beneficiary Categories (Contact Bio Forms)
- **Progress** — for Scale Indicators

Pass `search` to find Dropdowns the way the search box on Manage Dropdowns does: it matches a Dropdown's
name, its answer choices, or a place it is used (Contact Bio Forms, Project Templates and Event Forms in your
organisations, choice trackers built on it, and the Surveys those trackers are in), ignoring case.
operationId: listRatioSets
security: [{tokenAuth: []}]
parameters:
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- $ref: '#/components/parameters/LastSyncDatetime'
- name: search
in: query
required: false
description: Text to look for in the Dropdown's name, answer choices or places used
schema:
type: string
example: housing
responses:
"200":
description: Paginated list of Ratio Sets
Expand Down
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4500,6 +4500,7 @@ function buildDocsPage() {
</div>
<div class="endpoint-list">
${endpointCard("GET", "/ratio_sets", "List all Ratio Sets", true, [
{ name: "search", type: "string", required: false, desc: "Finds Dropdowns whose name, answer choices or places used (Contact Bio Forms, Project Templates, Event Forms, choice trackers and their Surveys) contain this text, ignoring case" },
{ name: "page", type: "integer", required: false, desc: "Page number" },
{ name: "per_page", type: "integer", required: false, desc: "Records per page" }
], [{ code: "200", cls: "response-2xx", desc: "Paginated list — type: identity (Contact Bio Forms) or progress (Scale Indicators)" }])}
Expand Down
Loading