Problem API V8 create acccount

Hi,

I’m trying create account using an example in https://docs.suitecrm.com/developer/api/developer-setup-guide/json-api/#_authentication, but I’m getting error

{
    "errors": {
    "status": 400,
    "title": null,
    "detail": "The required option \"data\" is missing."
  }
}

My request looks like this:

POST https://xxx/Api/V8/module
Authorization: Bearer XXX

    {
      "data": {
        "type": "Accounts",
        "attributes": {
          "name": "Test account"
        }
      }
    }

Does anyone know what I’m doing wrong?

Thank you

Just in case anyone comes across this in the future, issue was raised & investigated here: https://github.com/salesagility/SuiteCRM/issues/9048

Looks like the issue was a missing content-type header.

Thanks for getting in touch femoz! :slight_smile: