HTTP POST request: 400 Bad Request Error | Community
Skip to main content
Level 4
October 3, 2024
Question

HTTP POST request: 400 Bad Request Error

  • October 3, 2024
  • 1 reply
  • 978 views

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:

 

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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

lgaertner
Level 9
October 4, 2024

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