# Remote Access API - Pass metadata

**URL:** <https://community.jenkins.io/t/remote-access-api-pass-metadata/797>\
**Category:** Ask a question\
**Created:** [November 12, 2021, 5:27pm UTC](https://community.jenkins.io/t/remote-access-api-pass-metadata/797 "2021-11-12T17:27:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ballonura](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ballonura/32/554_2.png) [@ballonura](https://community.jenkins.io/u/ballonura)\
**Post date:** [November 12, 2021, 5:27pm UTC](https://community.jenkins.io/t/remote-access-api-pass-metadata/797/1 "2021-11-12T17:27:17Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [November 12, 2021, 6:34pm UTC](https://community.jenkins.io/t/remote-access-api-pass-metadata/797/2 "2021-11-12T18:34:09Z")

</div>

> [@ballonura](#):
>
> 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** objec

```auto
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)

---

<div class="post-metadata">

**Author:** ![ballonura](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ballonura/32/554_2.png) [@ballonura](https://community.jenkins.io/u/ballonura)\
**Post date:** [November 12, 2021, 7:07pm UTC](https://community.jenkins.io/t/remote-access-api-pass-metadata/797/3 "2021-11-12T19:07:10Z")

</div>

Cool, thx i’ll try it.
