Skip to content

Docs / All tools / Loop III: Assistant

apple_calendar.update_event

Update an Apple Calendar event.

5 credits. Per event changed. 0 when cancelled.

Example prompt

Send this to your AI app when Heelo is connected:

Move my 3pm meeting tomorrow to 4pm

Input fields

FieldTypeDescription
querystringNatural-language change request.
event_idstringTarget CalDAV href; skips lookup.
timezonestringIANA timezone override.
session_idstringMulti-turn session id.
messagestringFollow-up answer in a multi-turn session.

Output fields

The fields in data when status is success.

FieldTypeDescription
updatedbooleanWhether the event was updated.
eventobjectUpdated event.
beforeobjectEvent before the update.
timezone_notestringSet when the event's zone is a fallback: tell the user.

Code

The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/apple_calendar.update_event/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "Move my 3pm meeting tomorrow to 4pm",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())