The code POSTs a JSON with a single body parameter. The Body constructor takes an arbitrary number of arguments, but only the first two are required. The embed argument indicates whether or not the body should be embedded in the response.
# POST a JSON having a single body parameter in FastAPI
@app.post("/do_something")
def do_something(process_id: int = Body(..., embed=True)):
return process_id