We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Rest Json syntax

Questions and answers about Plum Fuse+

Moderators: admin, support

Post Reply
Alisa Backert
Posts: 3
Joined: Thu Sep 26, 2019 3:02 pm

Rest Json syntax

Post by Alisa Backert »

We're attempting to use our RESTful web service which accepts a JSON object for the body parameters. One of the parameters requires an array.

We've successfully used the REST module with a request type POST with single variables, but have been unsuccessful when using an array.

Alternately, we attempted using the REST module with the request type POST RAW but have been unsuccessful even with a single variable.

Example of POST RAW:

Code: Select all

{
  "credentials": {
    "1": "sample string 2",
    "3": "sample string 4"
  },
  "election": "aded1ff2-2943-4b7d-a868-7081c8fc98fa",
  "phase": "sample string 2"
}
https://imgur.com/a/Xbtt082

Example regular POST
https://imgur.com/a/PHqmisT

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Rest Json syntax

Post by support »

Hi Alisa,

Thank you for your patience- we've tried looking into your account for associated logs and testing things ourselves to recreate the issue but have been unsuccessful so far. Everything appears to be working as expected - can you kindly elaborate on what you mean by unsuccessful?

Thank you,
Plum Support

Alisa Backert
Posts: 3
Joined: Thu Sep 26, 2019 3:02 pm

Re: Rest Json syntax

Post by Alisa Backert »

Hi,

Sorry for the delay in responding. We figured it out. We just needed to set the header value to "Content-Type: application/json" and that resolved the issue.

Post Reply