Jump to content

REST Connector and hierarchical data


Ryan Clark

Recommended Posts

Hey everyone,

I'm trying to use the REST connector to do some simple PUT/POST updates. This is working great until I attempt to load a value that's an object. Here's a sample PUT that works in Postman:

{

"name":"update",

"address_line1":"1234SomeStreet",

"address_line2":"Suite111",

"city":"Chicago",

"zip":"60610",

"state":{"initials":"IL"}

}

The Scribe REST connector works too until I try to map the State field, then I get an error returned. I must be missing something fundamental but I'm blind to it right now. Any help/examples would be greatly appreciated.

Thanks,

Ryan

Link to comment
Share on other sites

  • 1 month later...

Hi Ryan,

 

I think using the HTTP and Mapper connector extensions will help you achieve your goal better.

https://help.scribesoft.com/scribe/en/index.htm#sol/conn/conn_ext.htm%3F...

 

Basically you use the the mapper connector to build out the json example and use the HTTP connector to send that request (post/get etc) to your rest endpoint

 

thanks

Nick

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...