upload_file
Transfer files such as images and documents to the Emlog blog system via API, specifying the file path and resource category ID for efficient content management.
Instructions
Upload a file (image, document, etc.)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | Local path to the file to upload | |
sid | No | Resource category ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"file_path": {
"description": "Local path to the file to upload",
"type": "string"
},
"sid": {
"description": "Resource category ID",
"type": "number"
}
},
"required": [
"file_path"
],
"type": "object"
}