Start asset upload
start_asset_uploadStart a two-step upload for a file you can PUT yourself (a script with the file on disk). Returns asset_id, upload_url, and the method and headers to PUT the bytes with; the asset is PROCESSING until complete_asset_upload. In a conversation, use upload_asset instead. Scoped to the active Space — see set_active_space to switch, or pass space_id to override for this one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name in the library. | |
| type | No | What the asset is used as. Default IMAGE. | |
| space_id | No | Override the active Space for this one call. Defaults to the active Space set via set_active_space (or GROWOMAT_SPACE_ID on the server). Pass to read/write a different Space without changing the session binding. | |
| file_name | Yes | The file's name. | |
| size_bytes | Yes | The file's size in bytes (10 MB at most). | |
| content_type | Yes | The file's type. |