How to use Deployment.create?

Hello,
I have a question about posting data for a new deployment.
I read a request form about deployment/create at camunda docs. (Reference-Rest Api- Deployment - create)

So I tried it many times using Deployment.create in deployment.js(camunda-bpm-sdk-js), but it doesn’t work.
I want to make options.files at script level and post it to work well.
Which form is the correct options.files?

If there are any example code, it would be very helpful to me.

Thank you.

Can you re-explain? Happy to provide you a code snippet if you could explain a bit further.

Hi there,

The following example is for node.js but maybe it helps https://github.com/camunda/camunda-bpm-examples/blob/master/sdk-js/nodejs/index.js#L108

cheers,
Vale