Edit command

addMedia

Imports a probed file into the bin, minting an m id.

Fields

  • itemNewMediarequired

    The probed file, as described by the host.

Tip

You rarely need this. media.import probes and adds in one request. Use addMedia when you already have the probe, or inside a batch.

A path already in the bin is a no-op that mints nothing.