Http Request question

Hello everyone
Can anyone Help me
I’m using POST as request method.
I have this endpoint (example) : https://server-ip/Api_yyy/v1/getxxx/
this is the body (example) :
{
“key_api” :“example@example”,
“code_client” :“tttttt”,
“msisdn” :“ssssss”,
“nom_signataire” :“xxxxx”,
“date_naiss”:“24-12-1989”,
“piece_identif”:“Cyyyy”,
“Code_ctr”:“yyyyyy.ADH.TIKTAK”,
“nom_ctr”:“Inscription a Tik Tak Cvvvvv”,
“posX_formulaire_adhé”:“45”,
“posY_formulaire_adhé”:“227”,
“posX_formulaire_bic”:“50”,
“posY_formulaire_bic”:“245”,
“posX_qr”:“5”,
“posY_qr”:“10”,
“taille_qr”:“25”,
“img_signataire”:“”,
“posX_Imgsign”:“150”,
“posY_Imgsign”:“219”,
“Largeur_img_signataire”:“30”,
“Hauteur_img_signataire”:“29”,

}

And lets suppose that this is the authorities : aaaaa

can anyone tell me exactly how can i use the http request in uipath to send the API knowing that “code_client” and “nom_signataire” are variables (relative to the item)

Hi @dhouha.cherif

Have a look on the video and docs

https://docs.uipath.com/activities/docs/http-client

Regards
Gokul

You can Assign code_client” and “nom_signataire” variables and then assign a new variable for BodyRequest.

You can store the BodyRequest into a Text file then read it and store its output to a new variable.

In the end, use the new variable as your Body.

Let us know if this helped.