Use this API call to add Calendar events to Shape that are tied to a record ID
To create calendar events, send an authorized POST request to https://secure-api.setshape.com/api/lead/add/calendar/event
Create calendar events with these parameters:
This is required in order for this API call to work. You should be passing this mapping with the Shape lead ID that you'd like to update.
It is required to send in the event name to create the calendar event.
Pass the location along to add an address of the event
Categorize the event into a specific event type classification found in “Manage Event Types” in settings. This is a required parameter
It is required to send the start date of the event to create a calendar event. The date format should be MM-DD-YYYY
Assign a start time to the calendar event. The time format should be in HH:MM AP format. (AP = AM/PM). This is required.
Establish an end time for the event. The time format should be in HH:MM AP format. (AP = AM/PM)
The authentication token must be passed in the request header for every API request. You can find and generate your authentication token in your system settings page under “API Integrations.”
Find your authorization code in the API Integrations page in your system settings: https://secure.setshape.com/integrations
JSON request body formatting example:
{
“lead_id”: 123,
“title”: “Sample Calendar Event”,
“location”: “1234 Main Street, Irvine, CA 92618”,
“eventType”: “Appointment”,
“date”: “01-31-2030”,
“time”: “03:30 PM”
}
Upon success, the server returns HTTP codes and messages in the header with some additional elements and properties that are set by the server, such as id.
{
“message”: “Calendar event added for Joe successfully.”,
“lead_id”: 123
}
Changing templates will take time and may require a template change fee.
Not sure what to choose? Contact us.