Skip to content

Duplicate Google Calendar Function

Endpoint used to duplicate a Google Calendar function.

Terminal window
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/functions/duplicate/{functionId} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"id": "uuid",
"institutionId": "uuid",
"userId": "uuid",
"unityId": "uuid",
"code": "string",
"description": "string",
"iconFileId": "",
"status": true,
"name": "string",
"color": "string",
"outputs": [],
"isActivated": false,
"type": "google-calendar",
"googleCalendarPlugin": [
{
"id": "uuid",
"googleId": "string",
"calendarId": "email",
"timezone": "string",
"pluginId": "uuid",
"notificationType": null,
"notificationContentType": null,
"notificationContent": null,
"notificationDelayMs": 0,
"notificationWaitForSpeech": 0,
"createdAt": "timestamp",
"updatedAt": "timestamp",
"googleUser": {
"name": "string",
"given_name": "string",
"family_name": "string",
"picture": "url",
"email": "email",
"hd": "string"
},
"googleToken": "string"
}
],
"discordPlugin": [],
"telegramPlugin": []
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
functionIdUUIDUnique function identifier.Yes

Here is the exhaustive technical documentation, mapping each individual field present in the plugin object structure (in this case, the copy of the Google Calendar integration).

Full Documentation: All Plugin Fields (Google Calendar)

Section titled “Full Documentation: All Plugin Fields (Google Calendar)”
CategoryKeyTypeDescription
RootidUUIDUnique identifier of the plugin record in the database.
institutionIdUUIDUnique identifier of the institution owning the resource.
userIdUUIDUnique identifier of the user who created/copied the integration.
unityIdUUIDUnique identifier of the organizational unit to which the plugin belongs.
codeStringInternal reference code for the integration logic.
descriptionStringInstructions (prompt) that teach the AI to operate this function.
iconFileIdStringReference ID for the icon file (empty if default).
statusBooleanAvailability state of the plugin in the global system.
nameStringVisible name of the plugin (e.g., “Google Calendar-copy”).
colorStringColor associated with the visual identity of the plugin in the interface.
outputsArrayExpected output variables (usually empty in configuration).
isActivatedBooleanDefines if the plugin is on (true) or off (false).
typeStringTechnical type of the integration (e.g., google-calendar).
InstancegoogleCalendarPlugin[]Array[Obj]Specific settings for the linked Google account:
...[].idUUIDUnique identifier of the calendar configuration instance.
...[].googleIdStringUnique snowflake/numeric ID of the user’s Google account.
...[].calendarIdStringTarget calendar e-mail (official calendar ID).
...[].timezoneStringConfigured timezone (e.g., America/Sao_Paulo).
...[].pluginIdUUIDForeign key pointing to the Root id.
Notifications...[].notificationTypeNullNotification trigger type.
...[].notificationContentTypeNullNotification content format.
...[].notificationContentNullNotification message text or template.
...[].notificationDelayMsNumberDelay for notification execution in milliseconds.
...[].notificationWaitForSpeechNumberWaiting time for voice input (ms).
Timestamps...[].createdAtStringInstance creation date/time (ISO 8601).
...[].updatedAtStringInstance last update date/time (ISO 8601).
Google Profile...[].googleUserObjectIdentity data extracted via OAuth2:
...[].googleUser.nameStringUser’s full name in Google.
...[].googleUser.given_nameStringUser’s first name.
...[].googleUser.family_nameStringUser’s last name.
...[].googleUser.pictureURLDirect link to the Google profile image.
...[].googleUser.emailStringE-mail address of the authenticated account.
...[].googleUser.hdStringWorkspace domain (e.g., toolzz.me).
Security...[].googleTokenStringAccess token for communication with the Google API.
OthersdiscordPlugin[]ArrayList of Discord extensions (empty in this context).
telegramPlugin[]ArrayList of Telegram extensions (empty in this context).

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page