delete_attachments
Code
delete_attachments › Request Body
attachment_idsThe ids of the files and folders.
_csrf_tokenThe session's CSRF token; a caller with an API key needs none.
delete_attachments › Responses
successIndicates if the request was successful
edit_attachment
Code
edit_attachment › Request Body
A File / attachment row. Marshmallow FileModel field names (snake_case). extra fields are ignored on deserialize; only title, description, code_value_type, and quick_code are persisted by edit_attachment.
reference_typeExpected owning entity type when hardening the edit. Must match the attachment's type.
reference_idExpected owning entity id when hardening the edit. Must match the attachment's reference_id.
claim_idLegacy claim ownership hint. Same as reference_id when the attachment belongs to a claim; ignored if reference_id is also supplied.
edit_attachment › Responses
A File / attachment row. Marshmallow FileModel field names (snake_case). extra fields are ignored on deserialize; only title, description, code_value_type, and quick_code are persisted by edit_attachment.
successIndicates if the request was successful
list_attachments
Code
list_attachments › Request Body
reference_typeThe record kind the attachments belong to.
reference_idThe record's id; null for lines and reports.
folder_idThe folder to list; null for the root folder.
search_stringMatches the title, the description and the file type.
list_viewEvery file of the record, without folders.
display_original_print_stateKeep the stored print state of a lone print or email copy.
pagepage_sizeCapped at 100.
order_byA column of domain.file.ATTACHMENT_SORT_COLUMNS, in either spelling.
ascendingskip_reference_id_filterWith no reference_id, list every file of the kind. policy_types and reports only.
date_added_startMM/DD/YYYY
date_added_endMM/DD/YYYY
print_date_startMM/DD/YYYY
print_date_endMM/DD/YYYY
_csrf_tokenThe session's CSRF token.
list_attachments › Responses
successIndicates if the request was successful
move_attachments
Code
move_attachments › Request Body
attachment_idsThe ids of the files and folders.
folder_idA live folder of their record to move them into; null for the root folder. A folder cannot go into itself or into a folder inside it.
_csrf_tokenThe session's CSRF token; a caller with an API key needs none.
move_attachments › Responses
successIndicates if the request was successful
new_folder
Code
new_folder › Request Body
reference_typeThe record kind the attachments belong to.
folder_nameThe folder's name.
reference_idThe record's id; null for lines and reports.
parent_folder_idA live folder of the record to create it in; null for the root folder.
_csrf_tokenThe session's CSRF token; a caller with an API key needs none.
new_folder › Responses
successIndicates if the request was successful
retrieve_attachments
Code
retrieve_attachments › Request Body
reference_idreference_typefolder_idsearch_stringlist_viewdisplay_original_print_statepagepage_sizeorder_byascendingretrieve_attachments › Responses
successmessagedataretrieve_folder_tree
Code
retrieve_folder_tree › Request Body
reference_typeThe record kind the attachments belong to.
reference_idThe record's id.
retrieve_folder_tree › Responses
One Root Folder node (id null) with the folders under it.
successIndicates if the request was successful
toggle_attachments_privacy
Code
toggle_attachments_privacy › Request Body
attachment_idsThe ids of the files and folders.
_csrf_tokenThe session's CSRF token; a caller with an API key needs none.
toggle_attachments_privacy › Responses
successIndicates if the request was successful
update_attachments_print_states
Code
update_attachments_print_states › Request Body
attachment_idsThe ids of the files and folders.
print_state_csrf_tokenThe session's CSRF token; a caller with an API key needs none.
update_attachments_print_states › Responses
successIndicates if the request was successful
upload_attachments
Code
upload_attachments › Request Body
reference_typeThe record kind the attachments belong to.
filesThe files.
reference_idThe record's id; null for lines and reports.
folder_idA live folder of the record to upload into; null for the root folder.
detailsJSON list, one object per file: fileName (the part it describes), name (the title), description, code_value_type and quick_code.
from_brite_quoteThe upload comes from the agent portal's quote.
_csrf_tokenThe session's CSRF token; a caller with an API key needs none.
upload_attachments › Responses
successIndicates if the request was successful
