1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-23 02:06:12 +02:00
OpenIntegrations/docs/en/md/Google_Calendar/Event-management/Edit-event.md
2024-06-05 13:35:05 +03:00

2.2 KiB

sidebar_position
6

Edit event

Edits an existing event

Function EditEvent(Val Token, Val Calendar, Val EventDescription, Val Event) ExportReturn EventManagement(Token, Calendar, EventDescription, Event);EndFunction

Parameter CLI option Type Destination
Token --token String Token
Calendar --calendar String Calendar ID
EventDescription --props String New event description
Event --event String Event ID

Returns: Key-Value Pair - serialized JSON response from Google

	
 
 EventMatch = New Map;
 EventMatch.Insert("Description", "Test event description (change.)");
 
 Response = OPI_GoogleCalendar.EditEvent(Token, "55868c32be16935f0...", EventMatch, "j4nonfcc0m2...");
 Response = OPI_Tools.JSONString(Response);
 
 
	
 
 oint gcalendar EditEvent --token %token% --calendar %calendar% --props %props% --event %event%



{
 "eventType": "default",
 "attachments": [
 {
 "iconLink": "",
 "title": "Image2",
 "fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
 },
 {
 "iconLink": "",
 "title": "Image1",
 "fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
 }
 ],
 "reminders": {
 "useDefault": true
 },
 "sequence": 0,
 "start": {
 "timeZone": "Europe/Minsk",
 "dateTime": "2024-02-24T16:42:28+03:00"
 },
 "creator": {
 "self": true,
 "email": "bayselonarrend@gmail.com"
 },
 "end": {
 "timeZone": "Europe/Minsk",
 "dateTime": "2024-02-24T17:42:28+03:00"
 },
 "iCalUID": "7c2s6g3k6ib1mr2v1b7lnt9kfk@google.com",
 "description": "Test event description (change.)",
 "updated": "2024-02-24T10:42:42.401Z",
 "created": "2024-02-24T10:42:32.000Z",
 "htmlLink": "https://www.google.com/calendar/event?eid=N2MyczZnM2s2aWIxbXIydjFiN2xudDlrZmsgYmF5c2Vsb25hcnJlbmRAbQ",
 "location": "InOffice",
 "summary": "New event",
 "organizer": {
 "self": true,
 "email": "bayselonarrend@gmail.com"
 },
 "status": "confirmed",
 "id": "7c2s6g3k6ib1mr2v1b7lnt9kfk",
 "etag": "\"3417542724802000\"",
 "kind": "calendar#event"
 }