HTTP POST request: 400 Bad Request Error | Adobe Higher Education
Skip to main content
Level 4
October 3, 2024
質問

HTTP POST request: 400 Bad Request Error

  • October 3, 2024
  • 1 の返信
  • 978 ビュー

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?
このトピックへの返信は締め切られました。

1 の返信

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