Easymailing
Meetings

Replace the records linked to a meeting

PUT /meetings/{uuid}/relations

PUT/meetings/{uuid}/relations

Sets the contacts, companies and opportunities a meeting is linked to, for this meeting or for its whole recurring series. You send the complete final lists and the difference is applied. It does not touch Google Calendar and invites nobody. The response is the updated meeting.

When to use: To attach a meeting to a company or opportunity, or to unlink a record that does not belong to it. Read the meeting first with get_meeting: the lists you send replace the current ones, so start from contacts, companies and opportunities as returned.

When not to use: To invite or remove people, use update_meeting with attendees. A contact who is a guest stays linked while they are a guest; remove them from the guests first, wait for the receipt to be confirmed, then unlink them. To change the time or title, use update_meeting.

Side effects: No email is sent to anyone and Google is not called. Linking a record to the meeting adds a meeting.scheduled entry to the activity of that record, done by the person who owns the token (marked «via Maia» when Maia made the request), once. Every change raises the version of the meeting (and of the series with scope series).

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. It does not require being the organizer or owning the calendar. Linking or unlinking an opportunity also needs the crm.opportunities.work capability and work access to its pipeline.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the meeting. Get it from list_meetings.

Formatuuid

Request Body

The updated Meeting resource

TypeScript Definitions

Use the request body type in TypeScript.

Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider before anything else, because API Platform evaluates security after the provider.

list_meetings has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and pages forward only by cursor (cursor[gt]): cursor is the opaque position API Platform copies into hydra:next, and {@see ForwardOnlyCursor} drops the hydra:previous it would also build. It is never published. The fields of the detail travel only in get_meeting; every field travels as null, never absent (skip_null_values: false).

status carries the text of the detail: the list only returns confirmed meetings, which its filters say. replace_meeting_relations answers the meeting as get_meeting does; the writes in Google answer a receipt ({@see MeetingWriteReceiptResource}).

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/meetings/5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74/relations" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expected_version": 1,    "scope": "occurrence",    "contacts": [      "string"    ],    "companies": [      "string"    ],    "opportunities": [      "string"    ]  }'
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "version": 0,  "status": "confirmed",  "title": "string",  "time_type": "timed",  "starts_at": "2019-08-24T14:15:22Z",  "ends_at": "2019-08-24T14:15:22Z",  "original_time_zone": "string",  "start_date": "2019-08-24",  "end_date_exclusive": "2019-08-24",  "location": "string",  "conference": {    "type": "google_meet",    "join_url": "string",    "code": "string",    "label": "string"  },  "organizer": {    "name": "string",    "email": "user@example.com",    "role": "organizer",    "response_status": "accepted",    "kind": "user",    "contact": "/entity/1",    "internal": true  },  "participant_count": 0,  "participant_preview": [    {      "name": "string",      "email": "string",      "contact": "/entity/1"    }  ],  "primary_relation": {    "iri": "/entity/1",    "label": "string",    "record_type": "company"  },  "series_uuid": "42b4f407-7ed4-4b5e-bd82-290260edfdcf",  "source": {    "connection_uuid": "064e6067-9daf-4991-a9e8-389d4e1f45a0",    "calendar_id": "string",    "calendar_name": "string",    "owned": true,    "writable": true  },  "description_html": "string",  "participants": [    {      "name": "string",      "email": "user@example.com",      "role": "organizer",      "response_status": "accepted",      "kind": "user",      "contact": "/entity/1",      "internal": true,      "removable": true    }  ],  "contacts": [    {      "iri": "/entity/1",      "label": "string",      "secondary": "string",      "removable": true    }  ],  "companies": [    {      "iri": "/entity/1",      "label": "string",      "secondary": "string",      "removable": true    }  ],  "opportunities": [    {      "iri": "/entity/1",      "label": "string",      "secondary": null,      "removable": true    }  ],  "web_url": "string",  "writable_sources": [    {      "connection_uuid": "064e6067-9daf-4991-a9e8-389d4e1f45a0",      "calendar_id": "string",      "calendar_name": "string",      "owned": true,      "writable": true    }  ],  "can_edit": true,  "can_cancel": true,  "can_change_relations": true,  "booking": {    "page_uuid": "fc1a36dc-3030-42b1-8804-507621c36992",    "page_title": "string",    "page_available": true,    "booked_at": "2019-08-24T14:15:22Z",    "email_confirmed": true,    "answers": [      {        "question": "string",        "answer": "string"      }    ]  }}