Remote Access API - Pass metadata

Hey,
I have a Jenkins job that described by jenkinsfile. (that run .js file inside via the command node script.js)

I want to trigger the jenkins job from my backend and pass params (metadata) via curl, like this:
https://my-jenkins.com/job/MY_JOB_NAME/buildWithParameters

Now my question is if i can pass any params that i want (and use it in the node script via process.env)? or just the params that describe in the jenkinsfile under parameters object?
Currently i can get the parameters that i send via the CURL in the node process.env object.

environment {
   FIELD1 = param.FIELD1
}

That’ll populate an environment variable called FIELD1 with the value of the parameter. (I’m guessing on the syntax as I’ve rarely used parameters)

Cool, thx i’ll try it.