Feature Request: Submit Forms through V5 API

73 views
Skip to first unread message

Susan Vertrees

unread,
Jan 23, 2020, 6:20:44 PM1/23/20
to apidev
Hello - I was recently talking to support in the questions forum about something I'm doing in V2 of the API and they directed me over here. You can see that discussion here: https://userguide.rescuegroups.org/questions/65765390/how-to-submit-a-form-over-api

The bottom line is that I'd like to be able to create a form submission through the API. My use case is that I would like to use my own code to generate an adoption application on my rescue's Wordpress site and post the submissions into our RescueGroups account. I would like to control aspects of the form beyond formatting where I really don't want to go the iFrame'd form route. 

I understand you can manage forms through the V2 API and read/view submitted forms, but I would like to be able to create form responses/submissions via the API. Something like:

// token and stuff
"objectType" => "submittedforms",
"objectAction" => "add",
"add" => array (
       
"questions" => array({
 
"questionID" => "0324932",
 
"operation" => "equals",
 
"value" => "some text here"
 
},
 
{
 
"questionID" => "3928424",
 
"operation" => "equals",
 
"value" => "different text"
 
},
 
{
 
"questionID" => "234924",
 
"operation" => "equals",
 
"value" => "you get the idea"
 
}
       
)
 
"other stuff" => "here",
 
"i don't know what else" => "you would submit here"
 
),
// more JSON

My syntax isn't perfect and I'm open to change, but hopefully you get the picture.

Is this possible to work into V5? and would there be an ETA on getting it done?

Richard Saffell

unread,
Jan 24, 2020, 3:44:44 PM1/24/20
to apidev
Susan,

All features and data will be accessible in the v5 API.  I do not have an ETA for when that will be done.  To maintain expectations, I wouldn't expect it for a while, perhaps 6 months or more.  We'll be rolling out the private endpoints starting in the next few months.

Richard

Susan Vertrees

unread,
Jan 24, 2020, 4:00:19 PM1/24/20
to apidev
Awesome! Thanks for the quick response. 6 months is fine, change is hard for all-volunteer organizations :) 

One other question - is it possible to POST a form to the same location, formatted in the same way, as the current iFrame'd forms? 


Richard Saffell

unread,
Jan 25, 2020, 9:51:16 AM1/25/20
to apidev
Susan,

I'm not sure I understand your question.  When available, the API would receive POST data formatting as JSON, likely with question Ids and answer values.  I don't think it would work anything similar to the iFrame forms...  sorry if I'm not understanding your question.

Richard

Susan Vertrees

unread,
Jan 26, 2020, 7:43:00 AM1/26/20
to apidev
I'll upload a separate question on that shortly, I think it would distract from the purpose of this thread. 

Thanks! 

Susan Vertrees

unread,
Jan 26, 2020, 8:12:52 AM1/26/20
to apidev
Actually, I figured out my 2nd question - I think I was missing some headers which was causing the mock POST to fail. Thanks for letting me talk through that :) 
Reply all
Reply to author
Forward
0 new messages