create_document
Creates a document in the content repository with specified properties, including class, metadata, and file attachments. Requires prior retrieval of class identifiers and property descriptions.
Instructions
PREREQUISITES IN ORDER: To use this tool, you MUST call two other tools first in a specific sequence.
determine_class tool to get the class_identifier.
get_class_property_descriptions to get a list of valid properties for the given class_identifier
Description: Creates a document in the content repository with specified properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_identifier | No | The class identifier for the document. If not provided, defaults to "Document". | |
| id | No | The unique GUID for the document. If not provided, a new GUID with curly braces will be generated. | |
| document_properties | No | Properties for the document including name, content, mimeType, etc. | |
| file_in_folder_identifier | No | The identifier or path of the folder to file the document in. This always starts with "/". | |
| checkin_action | No | Check-in action parameters. CheckinMinorVersion should always be included. | |
| file_paths | No | Optional list of file paths to upload as the document's content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |