JohnGB
JohnGB

Reputation: 2026

In Paw, how can I use the response from a previous call, as a value in the body of another call?

I use parsed values from previous responses for parts of the URL, or as the key in a JSON object. However, I can't seem to be able to use them as the value of a field in a JSON object.

When I right click on the key, I have the option to do that,

enter image description here

but not when I right click on the value field.

enter image description here

I have tried following the instructions in the documentation, but the options listed in the documentation aren't available in the value portion of the JSON object in the body. Would someone please explain how to do this.

Upvotes: 2

Views: 314

Answers (1)

Micha Mazaheri
Micha Mazaheri

Reputation: 3481

Unfortunately, this is not possible because you're in a Number field. You can do this only on String fields for now. We're working on a fix for a future version, but it's not there yet.

The only alternative you can use is to format all your JSON, except this field, and convert to Text. The JSON structure will be preserved, and you can explicitly set the field inline with the text.

A quick screencast so show what I'm saying: http://cl.ly/141Y06380u2x

In this case you'll need to manually set a Content-Type: application/json header.

Upvotes: 3

Related Questions