Skip to main content

Hi


I’m trying to configure the multipart request to fetch the data from Redcap which I think only support POST multipart request with FormData. Here is the sample Method log which I want to configure in skuid rest data source.


Request URL: https://redcap.domain.org/api/

Request Method: POST

Request Header:

content-type: multipart/form-data; boundary=----WebKitFormBoundaryKAzVPFkqfpiJUJ7n

Request Payload:

Content-Disposition: form-data; name=“token”


xyz
------WebKitFormBoundaryKAzVPFkqfpiJUJ7n
Content-Disposition: form-data; name="report_id"

123
------WebKitFormBoundaryKAzVPFkqfpiJUJ7n
Content-Disposition: form-data; name="content"

report
------WebKitFormBoundaryKAzVPFkqfpiJUJ7n
Content-Disposition: form-data; name="format"

json
------WebKitFormBoundaryKAzVPFkqfpiJUJ7n
Content-Disposition: form-data; name="type"

flat
------WebKitFormBoundaryKAzVPFkqfpiJUJ7n
Content-Disposition: form-data; name="returnFormat"

json
------WebKitFormBoundaryKAzVPFkqfpiJUJ7n--

This request will return the json response.

How can I configure this kind of request in Skuid model using rest data source.

Thanks in advance.

Be the first to reply!

Reply