Ask Your Question

HTTP Client - PATCH with Access Token

asked 2019-08-28 09:00:39 -0600

Bharath_Thatikonda gravatar image

updated 2019-08-28 23:31:04 -0600

metadaddy gravatar image

I have JSON which has 2 parameters:

  1. access token
  2. input to be passed to the API.

i need both parameters to be passed to HTTP Client.

However, when I call the API, I need to pass only the input, not access token.

The API uses PATCH method. Can you provide any suggestions?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-28 23:27:57 -0600

metadaddy gravatar image

updated 2019-08-28 23:29:15 -0600

You can copy the access token into a record header attribute called, for example, accessToken, using an Expression Evaluator:

image description

You can then remove it from the record with Field Remover:

image description

If you need to reference the access token, for example, using it in an HTTP header, you can do so with ${record:attribute('accessToken')}:

image description

Select PATCH as the HTTP Method:

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-08-28 09:00:39 -0600

Seen: 128 times

Last updated: Aug 28 '19