API Post via http request

Hello Friends,

I’m trying to upload a file to an application using API key:

I had the API key, and the json part is:

{
“name”: “Créer documents”,
“request”: {
“method”: “POST”,
“header”: [
{
“key”: “xxx-Transaction-Timeout”,
“value”: “300”,
“type”: “text”,
“disabled”: true
}
],
“body”: {
“mode”: “formdata”,
“formdata”: [
{
“key”: “fichier”,
“description”: “rib”,
“type”: “file”,
“src”: “xxxxxxxxx.pdf”
},
{
“key”: “metadonnees”,
“value”: “{\n "yyy": "zzzzzz",\n "nature": "Mutation-affectation/Mutation_ou_Affectation",\n "format": "numerique"\n}”,
“description”: “json”,
“type”: “text”
}
]
},
“url”: {
“raw”: “http://apim-wwwwwwwwwwww/documents/documents”,
“protocol”: “http”,
“host”: [
“apim-wwwww”,
“ttttt”,
“in”,
“aaa”,
“education”,
“gouv”,
“fr”
],
“path”: [
“ged-f”,
“documents”,
“documents”
]
}
},
“response”:
},

How can i put the parameters of the “http request”:

1 Like

Hey @abdel

You are doing it right, does that help ?

Thanks
#nK