Create a calendar event on a record.
POSThttps://secure-api.setshape.com/api/lead/add/calendar/event/{crmid}
Replace
{crmid} with your CRM ID, the Shape system ID that belongs to your API key. Send the standard headers on every request: Authorization: YOUR_API_AUTHORIZATION_KEY and Content-Type: application/json. See Authentication.Body parameters
| Field | Requirement | Description |
|---|---|---|
lead_id |
Required | Shape record ID. |
title |
Required | Event title. |
eventType |
Required | Event type title. If it’s left out, an uncategorized event is created and event-type triggers don’t run. |
date |
Required unless dateTime is used | Date, as MM-DD-YYYY. |
dateTime |
Alternative to date | A combined date and time. |
time |
Optional | Start time, such as 03:30 PM. A date without a time starts at midnight. |
endTime |
Optional | End time on the same date. |
timezone |
Optional | Time zone, such as America/New_York. Defaults to your system’s time zone. |
location |
Optional | Event location. |
description |
Optional | Event description or notes. |
assignTo |
Optional | Comma-separated Shape user email addresses. |
recurringSchedule |
Optional | How often the event repeats. |
Example request
{
"lead_id": 281944,
"title": "Rate review call",
"eventType": "Appointment",
"date": "01-31-2030",
"time": "03:30 PM",
"endTime": "04:00 PM",
"timezone": "America/Los_Angeles",
"location": "123 Example St, Anytown, CA 90000"
}
Example response
{
"message": "Calendar event added for Jordan successfully",
"recordID": 281944
}