diff --git a/openapi.yaml b/openapi.yaml index 9817fd9..3be5560 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14695,6 +14695,12 @@ paths: Category) id>" (a survey made with that Survey in any Project); or "shared::" (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: diff --git a/server.js b/server.js index 0ed3d40..7284ba6 100644 --- a/server.js +++ b/server.js @@ -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: "{data: [{action_type, name, criteria_keys, any_name, project_scopable}]}; any_name names the \"Any\" choice, e.g. \"Any relationship\" (criteria: {any: true}); project_scopable types can take only_this_project" } - ], "Criteria values are strings: IDs, or pairs such as project_states \"<project_id>:<state_id>\", project_event_categories \"<project_id>:<event_category_id>\", relationship_sides \"<category_id>:parent|child\" and survey_waves: \"<Survey Campaign id>:<Wave id, or 0>\" for that Survey Campaign, \"survey:<Survey id>\" for that Survey in any Project, or \"shared:<Survey id>:<Shared Wave id>\" for that Shared Interval of the Survey in any Project.")} + ], "Criteria values are strings: IDs, or pairs such as project_states \"<project_id>:<state_id>\", project_event_categories \"<project_id>:<event_category_id>\", relationship_sides \"<category_id>:parent|child\" and survey_waves: \"<Survey Campaign id>:<Wave id, or 0>\" for that Survey Campaign, \"survey:<Survey id>\" for that Survey in any Project, or \"shared:<Survey id>:<Shared Wave id>\" for that Shared Interval of the Survey in any Project. action_type values never change, so match on them; name, any_name and action_name are 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\"), send_email is \"Send an email to a contact\" (was \"Send an Email\") and receive_email 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" } ], [