# How to send class object as FormParam

**URL:** <https://community.postman.com/t/how-to-send-class-object-as-formparam/13003>\
**Category:** Help Hub\
**Tags:** json, url-params\
**Created:** [May 31, 2020, 11:02am UTC](https://community.postman.com/t/how-to-send-class-object-as-formparam/13003 "2020-05-31T11:02:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pooja2107](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pooja2107](https://community.postman.com/u/pooja2107)\
**Post date:** [May 31, 2020, 11:02am UTC](https://community.postman.com/t/how-to-send-class-object-as-formparam/13003/1 "2020-05-31T11:02:06Z")

</div>

Dear Support,

I am using postman to test Openmeetings REST apis.  
There i need to send qurystring and two class objects as @FormParam.

Please help.

---

<div class="post-metadata">

**Author:** ![pooja2107](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pooja2107](https://community.postman.com/u/pooja2107)\
**Post date:** [June 1, 2020, 4:42pm UTC](https://community.postman.com/t/how-to-send-class-object-as-formparam/13003/2 "2020-06-01T16:42:30Z")

</div>

Please respond as i am stuck with this.  
Openmeetings is using FormParam for class object.

---

<div class="post-metadata">

**Author:** ![kinlane](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kinlane/32/347_2.png) [@kinlane](https://community.postman.com/u/kinlane)\
**Post date:** [June 1, 2020, 8:26pm UTC](https://community.postman.com/t/how-to-send-class-object-as-formparam/13003/3 "2020-06-01T20:26:58Z")

</div>

Hey there. I am thinking we will need some more detail before we can help.

1. Form Parameters could be as form-data, x-www-form-urlencoded, or raw JSON.
2. In these three types class won’t apply, with different ways to submit an object.

Any additional examples or details would help your questions get tackled.

---

<div class="post-metadata">

**Author:** ![pooja2107](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pooja2107](https://community.postman.com/u/pooja2107)\
**Post date:** [June 2, 2020, 9:12am UTC](https://community.postman.com/t/how-to-send-class-object-as-formparam/13003/4 "2020-06-02T09:12:06Z")

</div>

public ServiceResult getRoomHash​(@QueryParam(“sid”) String sid, @FormParam(“user”) ExternalUserDTO user, @FormParam(“options”) RoomOptionsDTO options)  
[https://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html](https://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html)

---

<div class="post-metadata">

**Author:** ![kinlane](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kinlane/32/347_2.png) [@kinlane](https://community.postman.com/u/kinlane)\
**Post date:** [June 3, 2020, 3:31pm UTC](https://community.postman.com/t/how-to-send-class-object-as-formparam/13003/5 "2020-06-03T15:31:21Z")

</div>

I would simple choose form-data for the body of your request and enter sid, user, and options as three key / values. That should get you your desired results.
