SuiteCRM 8.3 API - Add a Meeting via API using Curl ruins the dashboard display

I can add a Meeting using API / curl and I have no issues viewing the result on the web interface / meeting configuration page.

However, when I go to my dashboard, it does not display well as seen on the screenshot.

If I edit this meeting on the web interface and save (without any changes to the information), it resolves the dashboard display problem.

I’m using a docker image by Bitnami. Below is the curl command I use.

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer secret" \
-d '{
  "data": {
    "type": "Meeting",
    "attributes": {
      "name": "Internal Meeting",
      "assigned_user_id": "b9366b16-f968-854e-9fbf-64ad5cdcf354",
      "location": "Room 101",
      "duration_hours": "1",
      "duration_minutes": "30",
      "date_start": "2023-07-18 07:00:00"
    }
  }
}' https://internal.domain.com:8443/legacy/Api/V8/module

SuiteCRM Dashboard Problem:

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer secret" \
-d '{
  "data": {
    "type": "Meeting",
    "attributes": {
      "name": "Internal Meeting",
      "assigned_user_id": "1",
      "location": "Room 101",
      "duration_hours": "1",
      "duration_minutes": "30",
      "date_start": "2023-07-18 07:00:00",
      "parent_type": "Accounts"
    }
  }
}' https://internal.domain.com:8443/legacy/Api/V8/module

That’s a bug when parent_type field is empty. When creating new entry manually this field will be set by default to Accounts.

1 Like

Thank you. Setting the parent_type fixed it. In my case, I set it to “Contacts”.