Skip to content
v0.3

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 tool asset.create · SDK client.call('asset.create', …)
  • Events: none — The library has no public read — read.assets is 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.
{
"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"
}
{
"additionalProperties": false,
"properties": {
"asset_id": {
"type": "string"
}
},
"required": [
"asset_id"
],
"type": "object"
}

validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)