create_document
Create documents in IBM FileNet Content Manager by specifying properties, content, and folder location. Requires calling determine_class and get_class_property_descriptions tools first to identify valid document classes and properties.
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.
:param classIdentifier: The class identifier for the document. If not provided, defaults to "Document". :param id: The unique GUID for the document. If not provided, a new GUID with curly braces will be generated. :param documentProperties: Properties for the document including name, content, mimeType, etc. :param fileInFolderIdentifier: The identifier or path of the folder to file the document in. This always starts with "/". :param checkinAction: Check-in action parameters. CheckinMinorVersion should always be included. :param file_paths: Optional list of file paths to upload as the document's content.
:returns: If successful, returns a Document object with its properties. If unsuccessful, returns a ToolError with details about the failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_identifier | No | ||
| id | No | ||
| document_properties | No | ||
| file_in_folder_identifier | No | ||
| checkin_action | No | ||
| file_paths | No |