api.v2.uploads module

api.v2.uploads.attach_file_to_policy(**payload)[source]

Given a dictionary containing policy number, folder name, and file contents, attach file.

Parameters:
  • payload (dict) –
  • 'policy_number' ({) – ‘folder_name’: str, ‘attachment’: base64encoded file, ‘title’: str, ‘mime_type’ : str }
Returns:

  • success (bool) – True if completely successful, false if not
  • messages (list of str) – List of human-readable error messages
  • data (dict) – A dictionary containing the following:
    { ‘policy_number’: str, ‘policy_id’: UUID, ‘attachment_id’: UUID }