Hi @jayceon,
The Error 400 (Bad Request) indicates that the Hexnode server received the request, but the syntax or data in the request is invalid.
Based on the API documentation, please verify the following common causes:
- Missing or Incorrect Headers
Ensure the header Authorization: is included exactly as required.
- Content-Type Header
Confirm that Content-Type: application/json is present in the Headers section.
- JSON Body Syntax
Check for trailing commas, missing quotes, or malformed JSON. Power Automate is very sensitive to JSON formatting.
Also ensure any dynamic content (variables) passed into the body does not contain special characters that could break the JSON string.
- Correct HTTP Method
Verify that you are using the appropriate method (GET, POST, PUT, etc.) for the endpoint.
- URL Formatting
Make sure the URL does not contain accidental double slashes (for example: …/api/v1//devices/).
Reviewing these items typically resolves most 400 errors in Power Automate. Please let us know if you have any further questions or require clarification.
Regards,
Sienna Carter
Hexnode UEM