add-note Add Member Notearchive-note Archive Member Notelist-notes List Member Notesquery-enquiries Query Enquiriesupdate-note Update Member NoteAdds a committee note about one or more members of one site. Write it as if the member might read it one day: tie opinions to what happened, no labels, and no health information or other sensitive personal details. source records where it came from and is kept separately so it can be redacted. valid_from and expires (YYYY-MM-DD) bound when the note is current; after its expiry date it is archived, never deleted. Requires edit_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subject_user_ids | array of integer | Yes | User IDs of the members the note is about. | |
content | string | Yes | ||
type | string | Yes | One of: fact, opinion, availability, conduct. | |
source | string | No | Where the note came from, for example raised by a team captain. | |
valid_from | string | No | ||
expires | string | No | ||
related | array of object | No | Links to related things: objects with type (for example group, task, enquiry, email or url) and an id, url or label. | |
task_id | integer | No | Optional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it. | |
claim_token | string | No | Optional. The claim_token from claim-next-task for task_id. Required when task_id is given. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. | |
run_without_site_plugins | boolean | No | Optional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself. |
Archives a member note on one site straight away by setting its expiry to yesterday, unless it has already expired. Nothing is deleted. unarchive: true clears the expiry instead, making the note current again. Requires edit_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
note_id | integer | Yes | ||
unarchive | boolean | No | false | |
task_id | integer | No | Optional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it. | |
claim_token | string | No | Optional. The claim_token from claim-next-task for task_id. Required when task_id is given. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. | |
run_without_site_plugins | boolean | No | Optional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself. |
Lists the committee's notes about members on one site, newest first: content, type (fact, opinion, availability or conduct), the members it is about, author, source, valid-from and expiry dates, related links and whether it is archived. By default only current notes are returned (no expiry, or expiry today or later). active_on returns the notes current on a given day, counting valid-from and expiry, for example who is unavailable on a match day. Filter by subject_user_ids (any of) and type. Requires read_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subject_user_ids | array of integer | No | Only notes about any of these members. | |
type | string | No | One of: fact, opinion, availability, conduct. | |
include_archived | boolean | No | false | Also return archived notes. Ignored when active_on is given. |
active_on | string | No | YYYY-MM-DD: only notes current that day. | |
per_page | integer | No | 50 | |
page | integer | No | 1 | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. | |
run_without_site_plugins | boolean | No | Optional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself. |
Returns a paginated list of enquiries with the enquirer (author), status, parent form, date, and notes. Supports filtering by status, form, enquirer, and category. The enquirer is the person the enquiry is from, who may not be the account that created it. Requires install_plugins. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | No | Filter by status slug: new_enq, prog_enq, pending_enq, res_enq, clos_enq. Omit for all statuses. One of: new_enq, prog_enq, pending_enq, res_enq, clos_enq. | |
form_id | integer | No | Filter by parent contact form post ID. | |
author_id | integer | No | Filter by enquirer user ID: the person the enquiry is from, who may not be the account that created it. | |
category | string | No | Filter by enquiry category slug. | |
per_page | integer | No | Number of results per page. Default 20, max 100. | |
page | integer | No | Page number. Default 1. | |
search | string | No | Search string matched against enquiry title and content. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. | |
run_without_site_plugins | boolean | No | Optional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself. |
Changes a member note on one site. Only the fields given change. subject_user_ids and related replace the whole list. An empty string for source, valid_from or expires clears it. Each change is kept as a revision and logged in the audit trail. Requires edit_member_notes (committee roles); one site. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
note_id | integer | Yes | ||
subject_user_ids | array of integer | No | ||
content | string | No | ||
type | string | No | One of: fact, opinion, availability, conduct. | |
source | string | No | ||
valid_from | string | No | YYYY-MM-DD, or empty to clear. | |
expires | string | No | YYYY-MM-DD, or empty to clear. | |
related | array of object | No | Links to related things: objects with type (for example group, task, enquiry, email or url) and an id, url or label. | |
task_id | integer | No | Optional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it. | |
claim_token | string | No | Optional. The claim_token from claim-next-task for task_id. Required when task_id is given. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. | |
run_without_site_plugins | boolean | No | Optional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself. |