rfranco
New Contributor II

Hello @Andolina1,

try to send your payload like:

body = {

'curr_working_user': f'{parameters}'

}

response = requests.post(url, headers=headers, json=body)

the pipeline's parameter should be named curr_working_user. With these changes your setup should work correctly.

If you have more than 1 parameter you can:

  1. Create a string parameter in the pipeline named for ex. "request_body"
  2. You send your payload like

    body = {

    'request_body': json.dumps(parameters) # if parameters is a json/dictonary

    }

    response = requests.post(url, headers=headers, json=body)

  3. get your payload as a string with @pipeline().parameters.request_bod
  4. if you need the json, de-serialize the string with @json(pipeline().parameters.request_body)

I hope this is gonna work for you as well, for me it did.

Kind regards,
RF