bulk_reassign_open_tasks
Move selected claim tasks, or one person's, as /api/v2/tasks/bulk_reassign_open_tasks with the Workbench's
rules. Refused like preview_bulk_task_reassignment.
bulk_reassign_open_tasks › Request Body
target_typereasonsource_user_idWhose open tasks move. Optional when task_ids names the tasks; with both, only the named tasks this person holds move.
task_idsThe tasks to move (a queue's selected rows), whoever holds them. One of source_user_id or task_ids is required. While the Claims Workbench is on, a task on a claim the new assignee may not open (they hold the Independent Claims Adjuster level and do not adjust it) cannot move and is reported unresolved.
task_definition_iddue_date_startdue_date_endtarget_user_idtarget_group_idworkbenchOpt-in narrowing the Claims Workbench sends (BC-24074 T6); a request without it is narrowed by nothing new. With it: only claim tasks move; without Book, the source person must be in the caller's Team scope (refused otherwise) and each named task's holder too (that task is reported unresolved); a caller limited to the claims they adjust moves only the tasks of those claims.
bulk_reassign_open_tasks › Responses
messagessuccesscreate_task_note
Write a note on a claim task, as /api/v2/tasks/create_task_note. Refused like retrieve_task.
create_task_note › Request Body
task_idThe id of the task the note belongs to.
contentsThe note body.
share_to_policyAlso publish the note to the task's policy, where it appears on the Notes tab. Needs no permission beyond this endpoint's own, but the task must be attached to a policy. Defaults to false and cannot be changed after the note is written.
create_task_note › Responses
successexport_tasks
The Claims Workbench queue as CSV, as /api/v2/tasks/export_tasks with the Workbench's rules: the same tasks
the list shows. Refused like retrieve_tasks.
export_tasks › Request Body
querySearch query for tasks. Matches task fields, claim number, policy number (including claim-attached tasks reached through the claim's policy), and named insureds.
viewNamed view applying server-side scoping. submissions = policy tasks whose latest revision is in submission; triage = open, unassigned tasks.
file_index0-based index of the file to build. Omitted or null, the response carries the plan only and builds no CSV. A file_index beyond the current file count is rejected rather than answered with an empty file: it means the filtered set shrank since the plan was made.
filename_timestamp^\d{8}-\d{6}$Site-local timestamp baked into the exported filenames, as YYYYMMDD-HHMMSS. Echo back the value the plan response returned so that every file of one export is named for the same instant and the filenames match the ones the preview listed; stamping per request instead would give a three-file export three different timestamps. Omitted, the service stamps the current time -- so a caller that ignores this field still gets a timestamped filename, it just cannot span files. Validated against exactly the shape the server emits, because it is interpolated into a filename.
group_by_policySend true when the queue is in By Policy mode. Keeps every task of a policy contiguous in the file, with unattached (triage) tasks in a leading bucket, since a CSV cannot express grouping. This is ORDERING ONLY -- unlike retrieve_tasks' group_by, it does not switch to group pagination, which would break the row-based file split. The screen's group ranking (unattached first, then overdue count desc, then top priority desc) is deliberately not reproduced: it would need an aggregate join on every export, and every column it derives from is already in the file. Must match between the plan request and each file request, or the files would be cut from a differently ordered result than the plan measured.
task_scopesWhether to return CLAIM work, POLICY work, or both. Omitted (the default) means both, so existing callers are unaffected. The Underwriting Workbench sends ["policy"]; claim work belongs to the Claims module's own task tab. An explicit list rather than something derived from view, because my_tasks / my_team / all_tasks are shared with the legacy Tasks Workbench, which lists every task on the site. THE RULE: the attachment decides when there is one, and the task's definition decides when there is not. policy = claimId IS NULL AND (policyId IS NOT NULL OR the task's definition is policy-scoped); claim is its exact complement. The two partition the table, so any subset selects a well-defined set of rows, and a task carrying BOTH columns is claim. Why the attachment wins where both could speak: task_definitions.scope was added NOT NULL DEFAULT 'claim' and backfilled every pre-existing definition, so a policy-attached task whose definition says 'claim' is ordinary legacy data and is still policy work. Why the definition decides an UNATTACHED task: it is binding, not advisory -- modify_task refuses to attach a claim-scoped task to a policy, so an unattached claim-scoped task can only ever become a claim task. The scope applies to the rows, to filter_counts / bucket_counts / view_counts and to group_by, so every number describes the rows returned. retrieve_task, modify_task and bulk_modify_tasks are unaffected and still serve both. An empty list is rejected.
workbenchWhich workbench the read comes from: "underwriting" or "claims". Omitted means the legacy rule: a request that sends task_scopes is the Underwriting Workbench, one that does not is the legacy Tasks Workbench. A named workbench lists only its own work (underwriting: policy, claims: claim); task_scopes defaults to it and is refused when it asks for anything else. "claims" applies the Claims Workbench's own visibility (BC-24074): the Workbench setting must be on, my_tasks needs the Work queue group, my_team the Supervisor and team group, all_tasks Team or Book; submissions and triage are refused. Each group is an exact grant on britecore/claims/workbench/
Filter criteria for tasks
Sorting parameters, applied server-side over the whole filtered set rather than the returned page. Nullable keys place missing values last regardless of direction; task number is the final tiebreaker, so paging cannot repeat or skip a row. An unrecognised sort_by leaves only that tiebreaker.
export_tasks › Responses
successWhether the request was successful
Any messages or errors related to the request
Response for /api/v2/tasks/export_tasks. The export plan is present on every response, whether or not a file was requested, so a client part-way through a multi-file export can compare total_count against the plan it started from and detect the filtered set changing underneath it. content/filename/file_index/row_count are present only when file_index was supplied.
modify_task
Change one claim task from the Workbench's task detail (complete, reassign, schedule, mark in progress,
escalate, cancel), as /api/v2/tasks/modify_task.
Code
modify_task › Request Body
idThe ID of the task to modify.
claim_idAttach an unattached (triage) task to this claim. Attach-only: rejected if the task already has a claim or policy, if policy_id is also supplied, or if the task definition is policy-scoped.
policy_idAttach an unattached (triage) task to this policy. Attach-only: rejected if the task already has a claim or policy, if claim_id is also supplied, or if the task definition is claim-scoped.
descriptionUpdated description of the task.
priorityUpdated priority level of the task.
due_dateUpdated due date for the task (must be greater than or equal to today).
assignee_idThe ID of the user to assign this task to.
statusUpdated status of the task.
mandatoryIndicates if the task is mandatory.
modify_task › Responses
successWhether the task modification was successful
preview_bulk_task_reassignment
Preview moving selected claim tasks, or one person's, as /api/v2/tasks/preview_bulk_task_reassignment with
the Workbench's rules: claim tasks only, people and holders in the caller's Team scope unless they hold Book, and
each task to someone who may open its claim. Refused like retrieve_tasks.
preview_bulk_task_reassignment › Request Body
target_typereasonsource_user_idWhose open tasks move. Optional when task_ids names the tasks; with both, only the named tasks this person holds move.
task_idsThe tasks to move (a queue's selected rows), whoever holds them. One of source_user_id or task_ids is required. While the Claims Workbench is on, a task on a claim the new assignee may not open (they hold the Independent Claims Adjuster level and do not adjust it) cannot move and is reported unresolved.
task_definition_iddue_date_startdue_date_endtarget_user_idtarget_group_idworkbenchOpt-in narrowing the Claims Workbench sends (BC-24074 T6); a request without it is narrowed by nothing new. With it: only claim tasks move; without Book, the source person must be in the caller's Team scope (refused otherwise) and each named task's holder too (that task is reported unresolved); a caller limited to the claims they adjust moves only the tasks of those claims.
preview_bulk_task_reassignment › Responses
messagessuccessretrieve_capabilities
What the caller may see in the Claims Workbench.
Code
retrieve_capabilities › Responses
successMessages or errors related to the request
rate_invalidatedPresent and true when this request invalidated the quote's stored rate: its premiums were cleared and it must be re-rated. Absent otherwise.
retrieve_filter_options
The Claims Workbench queue's filter options, as /api/v2/tasks/retrieve_filter_options with the Workbench's
rules. Refused like retrieve_tasks.
retrieve_filter_options › Request Body
viewThe queue tab the options are for: my_tasks needs the Work queue group, my_team the Supervisor and team group, all_tasks Team or Book with Work queue or Team, claim_tasks any widget group.
include_uw_optionsLeave out: the Claims Workbench shows no underwriting dropdowns.
task_scopesOnly claim; omitted means claim.
workbenchIgnored: this endpoint always applies the Claims Workbench's rules (claims).
retrieve_filter_options › Responses
successWhether the request was successful
retrieve_organization
The Organization page: the teams the caller may see, drawn as a forest.
Code
retrieve_organization › Responses
successMessages or errors related to the request
rate_invalidatedPresent and true when this request invalidated the quote's stored rate: its premiums were cleared and it must be re-rated. Absent otherwise.
retrieve_task
One claim task for the Workbench's task detail, as /api/v2/tasks/retrieve_task answers it.
Code
retrieve_task › Request Body
idThe id of the task to retrieve.
retrieve_task › Responses
successretrieve_task_documents
The documents on a claim task's claim, as /api/v2/tasks/retrieve_task_documents: {permitted, truncated, documents}. Refused like retrieve_task.
retrieve_task_documents › Request Body
idThe id of the task whose linked record's documents to retrieve.
retrieve_task_documents › Responses
Documents on the record the task is attached to, plus whether the caller may read them at all.
successretrieve_task_history
A claim task's history, as /api/v2/tasks/retrieve_task_history. Refused like retrieve_task.
retrieve_task_history › Request Body
idThe id of the task to retrieve history.
retrieve_task_history › Responses
successretrieve_task_notes
A claim task's notes, as /api/v2/tasks/retrieve_task_notes. Refused like retrieve_task.
retrieve_task_notes › Request Body
idThe id of the task whose notes are returned.
retrieve_task_notes › Responses
successretrieve_tasks
The Claims Workbench's task lists: My Tasks, All Tasks, a claim's tasks, with the tab totals.
Code
retrieve_tasks › Request Body
querySearch query for tasks. Matches task fields, claim number, policy number (including claim-attached tasks reached through the claim's policy), and named insureds.
viewNamed view applying server-side scoping. submissions = policy tasks whose latest revision is in submission; triage = open, unassigned tasks.
include_filter_countsWhen true, the response includes filter_counts (status quick-filter bucket totals over the full filtered set).
include_view_countsWhen true, the response includes view_counts: totals for the my_tasks / all_tasks / submissions / triage views in one aggregate, unfiltered by every queue control (including filters.bucket) so the tab numbers stay put as filters change.
include_bucket_countsWhen true, the response includes bucket_counts (per-lifecycle-bucket totals over the filtered set, computed before filters.bucket narrows it, so every bucket tab shows its own total). Only callers that render the admin bucket tabs request them.
group_byWhen set to 'policy', pagination counts whole policy groups instead of task rows: pagination.page/page_size select groups (unattached tasks form one bucket, sorted first; then overdue count desc, top priority desc), the response returns every task belonging to the page's groups (a policy's tasks never split across pages), and pagination carries total_groups. total_count still reports the task total. sorting orders the tasks WITHIN each group and does not reorder the groups, whose rank is an aggregate over their tasks; insured, agency and lob hold one value per group, so the queue offers only task-level keys in this mode. 'claim' does the same keyed on the task's claim (the Claims Workbench's By Claim): claim tasks on no claim form one bucket, sorted first, and total_groups counts claims.
suggestLightweight typeahead mode: returns only the LIMITed rows for the query, skipping the aggregate COUNT over the search predicate and the transaction-type enrichment. The response omits pagination in this mode.
task_scopesWhether to return CLAIM work, POLICY work, or both. Omitted (the default) means both, so existing callers are unaffected. The Underwriting Workbench sends ["policy"]; claim work belongs to the Claims module's own task tab. An explicit list rather than something derived from view, because my_tasks / my_team / all_tasks are shared with the legacy Tasks Workbench, which lists every task on the site. THE RULE: the attachment decides when there is one, and the task's definition decides when there is not. policy = claimId IS NULL AND (policyId IS NOT NULL OR the task's definition is policy-scoped); claim is its exact complement. The two partition the table, so any subset selects a well-defined set of rows, and a task carrying BOTH columns is claim. Why the attachment wins where both could speak: task_definitions.scope was added NOT NULL DEFAULT 'claim' and backfilled every pre-existing definition, so a policy-attached task whose definition says 'claim' is ordinary legacy data and is still policy work. Why the definition decides an UNATTACHED task: it is binding, not advisory -- modify_task refuses to attach a claim-scoped task to a policy, so an unattached claim-scoped task can only ever become a claim task. The scope applies to the rows, to filter_counts / bucket_counts / view_counts and to group_by, so every number describes the rows returned. retrieve_task, modify_task and bulk_modify_tasks are unaffected and still serve both. An empty list is rejected.
workbenchWhich workbench the read comes from: "underwriting" or "claims". Omitted means the legacy rule: a request that sends task_scopes is the Underwriting Workbench, one that does not is the legacy Tasks Workbench. A named workbench lists only its own work (underwriting: policy, claims: claim); task_scopes defaults to it and is refused when it asks for anything else. "claims" applies the Claims Workbench's own visibility (BC-24074): the Workbench setting must be on, my_tasks needs the Work queue group, my_team the Supervisor and team group, all_tasks Team or Book; submissions and triage are refused. Each group is an exact grant on britecore/claims/workbench/
Filter criteria for tasks
Pagination parameters
Sorting parameters, applied server-side over the whole filtered set rather than the returned page. Nullable keys place missing values last regardless of direction; task number is the final tiebreaker, so paging cannot repeat or skip a row. An unrecognised sort_by leaves only that tiebreaker.
retrieve_tasks › Responses
Any messages or errors related to the request
successWhether the request was successful
