Schedule a meeting in Google Calendar
POST /meetings
/meetingsCreates an event with a start and end time in one of the user's own Google calendars, invites the guests you list, and links the meeting to the contacts, companies and opportunities you name. The write to Google happens during the request; the meeting appears in the CRM once Google confirms it. The response is a receipt (202), not the meeting.
When to use: To schedule a meeting with one or more contacts: a demo, a call, a follow-up. Take connection_uuid and calendar_id from list_meeting_calendars (an entry with writable: true).
When not to use: To change an existing meeting, use update_meeting; to cancel it, cancel_meeting. To only link records to a meeting that already exists, use replace_meeting_relations. All-day events cannot be created, and a meeting cannot be created without a contact. To let people book a slot themselves, use a booking page instead. For something to do without a time slot, use create_task.
Side effects: This reaches other people. Easymailing writes the event in the user's Google Calendar during the request (refreshing the Google access token if it expired), and Google, not Easymailing, sends the invitations: with send_updates all every address in attendees receives an email invitation from the connected Google account, which is the organizer; external_only limits that to guests who do not use Google Calendar; none sends no email (the guests are still on the event). With conference google_meet a Meet link is created and included in the invitation. Nobody is invited who is not in attendees. If Google does not answer clearly the receipt is uncertain: the event may already exist and the guests may already have been notified, and the confirmation continues in the background without writing again. Once confirmed, a meeting.scheduled entry appears in the activity of every related record, done by the person who owns the token (marked «via Maia» when Maia made the request), and guests who are not contacts yet may be created as contacts (and their companies) in the background, as the account's record creation settings dictate, with the owner of the Google connection as responsible. No automation or webhook fires (CRM webhook events do not exist yet).
Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Linking an opportunity also needs crm.opportunities.work and work access to its pipeline. The calendar must belong to the user who owns the token, be selected, be writable and have Calendar active on its Google connection.
Value for the X-Auth-Token header parameter.
In: header
The new MeetingWriteReceipt resource
TypeScript Definitions
Use the request body type in TypeScript.
get_meeting_write_receipt (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who
made the write, and the writes that answer it (202): create_meeting, update_meeting and cancel_meeting, which
write the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the
texts are the proposal's.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/meetings" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "client_request_id": "d3955698-d564-4249-a930-7f208849c52e", "connection_uuid": "064e6067-9daf-4991-a9e8-389d4e1f45a0", "calendar_id": "string", "title": "string", "description": "string", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "time_zone": "string", "location": "string", "conference": "none", "conference_url": "http://example.com", "attendees": [ { "email": "user@example.com", "name": "string" } ], "contacts": [ "string" ], "companies": [ "string" ], "opportunities": [ "string" ], "send_updates": "all" }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "action": "create_event", "state": "pending", "meeting": "/entity/1", "error_code": "permission_missing"}