# How to have more than one body parameter within a REST connector

**URL:** <https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852>\
**Category:** Flow Classic\
**Created:** [January 21, 2025, 12:49am UTC](https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852 "2025-01-21T00:49:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keyhole](https://avatars.discourse-cdn.com/v4/letter/k/7C9FD7/32.png) [@Keyhole](https://forum.novacura.com/u/Keyhole)\
**Post date:** [January 21, 2025, 12:49am UTC](https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852/1 "2025-01-21T00:49:33Z")

</div>

I need to have 2 body parameters(clientId and clientSecret) to be able to get our accesstoken. Looks like Novacura only allows 1 body parameter. How can I make this happen?

---

<div class="post-metadata">

**Author:** ![Alluse](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/alluse/32/1013_2.png) [@Alluse](https://forum.novacura.com/u/Alluse)\
**Post date:** [January 21, 2025, 6:11am UTC](https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852/2 "2025-01-21T06:11:20Z")

</div>

Hi,

If the parameters are to be sent as a payload of a POST (or PUT/PATCH) you need to define a body parameter of type “Object”. That parameter will then reference a model (data structure).

Typically, these are generated for u if you import a swagger file. But you can also create them based on a JSON file or manually. So, if you don’t generate the operation from a API spec you first need to define the model and then when adding a body parameter to your operation, you choose body type “Model” and reference the model you just created. Models are used for both requests and responses.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/34fd751bc2f3c7e07dd261d83a5f784f1999fcd1.png)

Read more about models and how they are created here : [Models | Flow Help](https://help.novacuraflow.com/connectors/areas/communication/rest-service/rest-project-tool/models)

We also have a youtube video on the Rest connector. It’s a bit dated maybe but the basics are the same: [Tutorial: How to set up and use the Novacura Flow REST Connector - YouTube](https://www.youtube.com/watch?v=dGnmrHeiydg&t=783s)

Hope this is helpful 🙂

---

<div class="post-metadata">

**Author:** ![Keyhole](https://avatars.discourse-cdn.com/v4/letter/k/7C9FD7/32.png) [@Keyhole](https://forum.novacura.com/u/Keyhole)\
**Post date:** [January 21, 2025, 9:40pm UTC](https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852/3 "2025-01-21T21:40:40Z")

</div>

Hi,  
That worked great. I created a model with 2 data items of string.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/fad6de437ee92d4b874c5a2d5f685255a75881e1.png)  
Then within my operation, I created a new body parameter using the model I created manually.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/1ee4aba6fedcba0d7d530437b0d328a03bf4e810.png)  
For the outputs I created a model using the JSON from Postmans response and tied that model to the OK and Error outputs.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/a68596f1c5600eae60cc95368089e3268e802185.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/028abfe20795225872d94ffa8225cbd8333c0c79.png)  
Updated my flow with with the new parameters and executed it.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/9f5ce2e298b89069ed1a74edff389bb01ad7e755.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/00f6771db31d5d8918cc08aeaf459e1295c860b6.png)  
As you can see I have the Access and Refresh token now.

Thank you,  
Tim

---

<div class="post-metadata">

**Author:** ![Alluse](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/alluse/32/1013_2.png) [@Alluse](https://forum.novacura.com/u/Alluse)\
**Post date:** [January 22, 2025, 2:18pm UTC](https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852/4 "2025-01-22T14:18:24Z")

</div>

Nice! And a big thanks to you for documenting the setup and sharing it with the forum. Much appreciated 🙂

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/daniel/32/708_2.png) [@daniel](https://forum.novacura.com/u/daniel)\
**Post date:** [January 22, 2025, 10:15pm UTC](https://forum.novacura.com/t/how-to-have-more-than-one-body-parameter-within-a-rest-connector/852/5 "2025-01-22T22:15:54Z")

</div>

@Keyhole You have probably made a lot of progress on PortPro, but I had built out the API for 08.23.2023. You can use [this link to get a copy](https://dou.bet/jm) of that version if you’d like 🙂 . The link is good for one year.
