Create/Update multiple contacts/users via REST API for a meeting

I am trying to add contacts/users to a created meeting as follows

POST call to https://demo.sugarcrm.com/rest/v11/Meetings/<record_id>/link/
body

{ "link_name": "contacts",
  "ids": [{"id": "<id of contact>", "accept_status_meetings": "accepted"}, {"id": "<id of    contact>","accept_status_meetings": "declined"}]
}

NOTE: In the above example I didn't add users to link with existing meeting. I have no idea how to add both users and contacts with its "accept_status_meetings"


Updated: Only ids of the contacts gets associated to the  particular meeting without meetings status.


Unable to add with multiple 
contacts and users with their accept_status_meetings. Any help is much appreciated! I've spent hours trying to figure this out. Thanks in advance for any insight / direction on how to handle this.

  • did you already check what happens if you add a new person to a meeting in the UI using developer tools of your browser? 

    also what does not work? Do you get an error? No response at all? If a response what sort of response?    

  • Jeroen Somhorst The response returns the contacts, added to the meeting without updating accept_status_meetings. the accept_status_meetings is "" for the added contacts
    I am not sure how to add users as well along with contacts in body.

    body
    { "link_name": "contacts",
      "ids": [{"id": "<id of contact>", "accept_status_meetings": "accepted"}, {"id": "<id of    contact>","accept_status_meetings": "declined"}]
    }

  • There's an "invitees" collection field that's part of the Meeting record that you can use to add additional invitees/attendees to the meeting.  Collection fields are used when a relationship could have multiple modules (Users, Contacts, Leads, etc.) They behave a bit differently from standard relationships. 

    GET /Meetings/:record/collection/invitees

    A PUT/POST on that endpoint will allow you to update the list. You can check out the HTTP request behavior in the browser when you add meeting invitees on a Meeting in the Sugar UI to get some concrete examples.

    App Ecosystem @ SugarCRM

  • To accept or decline you normally use some "vintage" calls  like

    https://<sugarinstance>/index.php?entryPoint=acceptDecline&module=Meetings&contact_id=<contactid>&record=<meetingid>&accept_status=decline

    with values decline, accept or tentative as accept_status.

    This is helpful to support links in emails which should be able to give feedback without any authentication. 

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  •  Thank you. It works for the individual contact, Is it possible to do via Rest API call as bulk (for contacts, leads, users)