JS API batch keyword

Hmm, that’s strange, does sound like a bug. WHat version of Matrix are you using?

Alternatively, you could run it as 2 separate calls as a workaround. Run editmetadataschema after the batch has completed.

Second option is to use a trigger to apply it, or maybe apply the metadata schema to the parent location of where the asset is getting created so it automatically inherits the schema?