Troubleshooting HTTP PUT Requests in Fibaro

Hey everyone, I’m trying to figure out why my HTTP PUT request isn’t working in Home Assistant. I’ve been using Fibaro for a while now, and I’ve got this simple formula that works perfectly there:

javascript
api.put(baseURL, { properties: { mode: “Cool” }})

But when I try to replicate this in Home Assistant using HTTP requests, I get a 400 Bad Request error. Here’s what my code looks like:

javascript
http.put(baseURL, { properties: { mode: ‘Cool’ }}, { auth: credentials})

I’ve double-checked the base URL and credentials, and they work fine for GET requests. I’m wondering if I’m formatting the body incorrectly or missing something else. Has anyone else encountered this issue or have any tips on how to fix it? I’d really appreciate any guidance you can offer!