# Creating build with custom parameters

**URL:** <https://drone.discourse.group/t/creating-build-with-custom-parameters/10955>\
**Category:** Drone Support\
**Created:** [April 1, 2020, 4:46pm UTC](https://drone.discourse.group/t/creating-build-with-custom-parameters/10955 "2020-04-01T16:46:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dns](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/dns/32/5350_2.png) [@dns](https://drone.discourse.group/u/dns)\
**Post date:** [April 1, 2020, 4:46pm UTC](https://drone.discourse.group/t/creating-build-with-custom-parameters/10955/1 "2020-04-01T16:46:34Z")

</div>

Hello,

Per this post: [https://docs.drone.io/api/builds/build\_create/](https://docs.drone.io/api/builds/build_create/)

```auto
* Create a build with custom parameters. These parameters will be available to your pipeline steps as environment variables.

POST /api/repos/{namespace}/{name}/builds?branch={branch}&{key=value}

```

It’s possible to assign custom parameters, but it will be available to use these vars on drone templates?

For example:

```auto
POST /api/repos/{namespace}/{name}/builds?test_env=123

steps:
- name: deploy
  pull: always
  image: test/test
  settings:
    hostname:
      from_secret: gravitee_${TEST_ENV}_hostname

```

---

<div class="post-metadata">

**Author:** ![dns](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/dns/32/5350_2.png) [@dns](https://drone.discourse.group/u/dns)\
**Post date:** [April 2, 2020, 1:28pm UTC](https://drone.discourse.group/t/creating-build-with-custom-parameters/10955/2 "2020-04-02T13:28:49Z")

</div>

Uhm. I got what I was doing wrong. It’s case sensitive haha.

Ref.  
[http://discuss.harness.io/t/sending-environment-variables-to-builds-triggered-via-api/4598/13](http://discuss.harness.io/t/sending-environment-variables-to-builds-triggered-via-api/4598/13)

Thankss
