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
6 changes: 6 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14695,6 +14695,12 @@ paths:
Category) id>" (a survey made with that Survey in any Project); or "shared:<Survey id>:<Shared Wave
id>" (a survey tagged to that Shared Wave (Shared Interval) of the Survey, in any Project). The "for a
relative" types take `relatives: [{relationship_side, beneficiary_category_ids | survey_waves}]`.

`action_type` values never change, so match on them. `name` and `any_name` (and `action_name`
elsewhere in the Checklists endpoints) are the on-screen wording and can change: since CP-9308,
`add_role` is "Add to an audience" (was "Add a role") with `any_name` "Any audience" (was "Any role"),
`send_email` is "Send an email to a contact" (was "Send an Email") and `receive_email` is
"Receive an email" (was "Receive an Email").
operationId: listChecklistActionTypes
security: [{tokenAuth: []}]
responses:
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3385,7 +3385,7 @@ function buildDocsPage() {
])}
${endpointCard("GET", "/checklists/action_types", "List the actions a Checklist can contain", true, [], [
{ code: "200", cls: "response-2xx", desc: "<code>{data: [{action_type, name, criteria_keys, any_name, project_scopable}]}</code>; <code>any_name</code> names the \"Any\" choice, e.g. \"Any relationship\" (<code>criteria: {any: true}</code>); <code>project_scopable</code> types can take <code>only_this_project</code>" }
], "Criteria values are strings: IDs, or pairs such as <code>project_states</code> \"&lt;project_id&gt;:&lt;state_id&gt;\", <code>project_event_categories</code> \"&lt;project_id&gt;:&lt;event_category_id&gt;\", <code>relationship_sides</code> \"&lt;category_id&gt;:parent|child\" and <code>survey_waves</code>: \"&lt;Survey Campaign id&gt;:&lt;Wave id, or 0&gt;\" for that Survey Campaign, \"survey:&lt;Survey id&gt;\" for that Survey in any Project, or \"shared:&lt;Survey id&gt;:&lt;Shared Wave id&gt;\" for that Shared Interval of the Survey in any Project.")}
], "Criteria values are strings: IDs, or pairs such as <code>project_states</code> \"&lt;project_id&gt;:&lt;state_id&gt;\", <code>project_event_categories</code> \"&lt;project_id&gt;:&lt;event_category_id&gt;\", <code>relationship_sides</code> \"&lt;category_id&gt;:parent|child\" and <code>survey_waves</code>: \"&lt;Survey Campaign id&gt;:&lt;Wave id, or 0&gt;\" for that Survey Campaign, \"survey:&lt;Survey id&gt;\" for that Survey in any Project, or \"shared:&lt;Survey id&gt;:&lt;Shared Wave id&gt;\" for that Shared Interval of the Survey in any Project. <code>action_type</code> values never change, so match on them; <code>name</code>, <code>any_name</code> and <code>action_name</code> are on-screen wording and can change. Since CP-9308, <code>add_role</code> is \"Add to an audience\" (was \"Add a role\", with <code>any_name</code> \"Any audience\"), <code>send_email</code> is \"Send an email to a contact\" (was \"Send an Email\") and <code>receive_email</code> is \"Receive an email\".")}
${endpointCard("GET", "/checklists/owner_options", "List the choices for who is responsible for an action", true, [
{ name: "charity_id", type: "integer", required: true, desc: "The Organisation ID" }
], [
Expand Down
Loading