Expand my Community achievements bar.

Join us LIVE in San Francisco on November 14th for Experience Makers The Skill Exchange. Don't miss out on this free learning event!

HTTP POST request: 400 Bad Request Error

Avatar

Level 4

Hi everyone,

 

I'm trying to make a HTTP POST request using Fusion to send data to another app.

I was trying to place request into body inserting it manually as well as using Aggregate to JSON/Create JSON modules.

 

I get 400 Bad Request Error and when I check the Fusion Dev Tool, it shows this in the body, not my request:

Viktoriia_1-1727963333639.png

 

The same request is working fine while testing in Postman:

{

    "name": "ML Analytics",
    "description": "The description",
    "external_project_id": "66e3577500495015ddd5f2f2df5fead9",
    "start_date": "2024-09-10",
    "end_date": "2024-10-29",
    "project_managers": [
        {
            "full_name": "James Charvat"
        }
    ],
    "use_cases": [],
    "status": {
        "name": "New"
    }
}
 
Any thoughts on how to fix it?
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 10

Hello Viktoriia,

 

the error message indicates, that the API of the 3rd party app is not able to process your request.

Without knowing any details about the requirements, I would suggest to check your request header settings.

As you are trying to send JSON it should at least contain:

Content-Type: application/json
Accept: application/json

 

Regards

Lars