asset.create
Register a standalone library asset (image/document uploaded via the connector, or a video_external URL).
- Scope:
media.write - System: no
- Reachable from:
POST /v1/commands/asset.create(tenant credential) · MCP toolasset.create· SDKclient.call('asset.create', …) - Events: none — The library has no public read —
read.assetsis internal (operator token). Product imagery reaches the shelf through catalog.media.*, which emits catalog.product.updated; a standalone asset is admin-side inventory until something references it.
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "filename": { "type": "string" }, "kind": { "default": "image", "enum": [ "image", "document", "video_external" ], "type": "string" }, "mime": { "type": "string" }, "provider_key": { "minLength": 1, "type": "string" }, "size": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "required": [ "provider_key" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "asset_id": { "type": "string" } }, "required": [ "asset_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)