Issue Creating Account via REST API - "Value not provided" Error 400

Issue Creating Account via REST API - "Value not provided" Error 400

Dears,

I am encountering an issue while attempting to create a new account in our ServiceDesk Plus MSP instance using the REST API. I am making an HTTP POST request to the /api/v3/accounts endpoint via Postman.

Authentication via the authtoken header appears to be working correctly, as I can successfully make GET requests to same API endpoint. I am also ensuring that the body of my POST request contains the fields that appear to be mandatory based on the user interface ("name" and "default_site").

Despite these attempts, the POST request consistently fails with the following response:
JSON

{
  "response_status": {
    "status_code": 4000,
    "messages": [
      {
        "status_code": 4001,
        "field": "input_data",
        "type": "failed",
        "message": "Value not provided"
      }
    ],
    "status": "failed"
  }
}

This is the raw json body
{
    "account": {
        "name": "New Account",
        "default_site": {
            "name": "Common Site"
        }
    }
}

Could someone help me?

Thank you for your time and assistance


                  New to ADSelfService Plus?