LogoRecal

Update Unified Event

Update an event by metaId for a user across all their calendars

PUT
/v1/users/{userId}/calendar/events/meta/{metaId}

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Request Body

application/jsonRequired
eventRequiredobject

Path Parameters

userIdRequiredstring
metaIdRequiredstring

Query Parameters

timeZonestring
Default: "UTC"
providerstring | array<unknown>

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

idRequiredstring
metaIdstring
subjectstring
descriptionstring
startDate | string | number
endDate | string | number
locationstring
attendeesRequiredarray<Any properties in object,object>
originalRequiredunknown

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
curl -X PUT "https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "event": {
      "metaId": "string",
      "subject": "string",
      "description": "string",
      "start": "1970-01-01T00:00:00.000Z",
      "end": "1970-01-01T00:00:00.000Z",
      "location": "string",
      "attendees": [
        {
          "email": "string"
        }
      ],
      "sendNotificationsFor": [
        "google"
      ],
      "meeting": true
    }
  }'
const body = JSON.stringify({
  "event": {
    "metaId": "string",
    "subject": "string",
    "description": "string",
    "start": "1970-01-01T00:00:00.000Z",
    "end": "1970-01-01T00:00:00.000Z",
    "location": "string",
    "attendees": [
      {
        "email": "string"
      }
    ],
    "sendNotificationsFor": [
      "google"
    ],
    "meeting": true
  }
})

fetch("https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google", {
  headers: {
    "Authorization": "Bearer <token>"
  },
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google"
  body := strings.NewReader(`{
    "event": {
      "metaId": "string",
      "subject": "string",
      "description": "string",
      "start": "1970-01-01T00:00:00.000Z",
      "end": "1970-01-01T00:00:00.000Z",
      "location": "string",
      "attendees": [
        {
          "email": "string"
        }
      ],
      "sendNotificationsFor": [
        "google"
      ],
      "meeting": true
    }
  }`)
  req, _ := http.NewRequest("PUT", url, body)
  req.Header.Add("Authorization", "Bearer <token>")
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google"
body = {
  "event": {
    "metaId": "string",
    "subject": "string",
    "description": "string",
    "start": "1970-01-01T00:00:00.000Z",
    "end": "1970-01-01T00:00:00.000Z",
    "location": "string",
    "attendees": [
      {
        "email": "string"
      }
    ],
    "sendNotificationsFor": [
      "google"
    ],
    "meeting": true
  }
}
response = requests.request("PUT", url, json = body, headers = {
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
})

print(response.text)
{
  "id": "string",
  "metaId": "string",
  "subject": "string",
  "description": "string",
  "start": "1970-01-01T00:00:00.000Z",
  "end": "1970-01-01T00:00:00.000Z",
  "location": "string",
  "attendees": [
    {
      "email": "string",
      "responseStatus": "needsAction"
    }
  ],
  "original": null
}
"User has not the needed calendars connected"
"Organization not found"