Upload a reference file
traceable_library_uploadUpload a file (a standard, a manual, a report: any type) to the Reference Library of the document's project, and by default add it to the document's references in the same call. Pass the file as base64 in content with its name; title sets the name shown in the library (defaults to the file name) and number its designation, e.g. "ISO 13485:2016". At most 3 MB; upload a larger file in the app. Returns the REF code, and the referenceId a citation uses: label. Its text is indexed straight away where the type has text, so traceable_library_search finds it. Calling it twice files the file twice; to reference a file already in the library, use traceable_library_add_reference. In an organisation under controlled releases this tool works once an admin turns it on in Org settings > Releases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The file name, with its extension, e.g. "quality-manual.pdf" | |
| title | No | The name shown in the library; defaults to the file name | |
| number | No | The reference's own designation, e.g. "ISO 13485:2016" | |
| content | Yes | The file, base64-encoded (a data: URL prefix is accepted) | |
| documentId | Yes | A document of the project whose library receives the file | |
| addToDocument | No | Add it to the document's references (default true) |