Create asset
create_assetCreate an asset (image, logo, video). By reference: body.url is kept as a pointer and fetched when a sync needs the bytes, so it must stay reachable. By bytes: body.data (base64) — or body.url with body.store true — stores the file in Growomat; upload_asset is the simpler door for that. Every response carries previewUrl, a link you can open. Returns the full updated/created object. 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 |
|---|---|---|---|
| body | Yes | Request body matching the AssetCreate schema. Fields below; see the OpenAPI spec for nested object shapes. | |
| 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. |