curl --request PATCH \
--url https://api.tightknit.ai/v1/events/{event_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"scheduled_publish_at": "2023-11-07T05:31:56Z",
"description": {
"text": "<string>"
},
"recap": {
"text": "<string>"
},
"location": "<string>",
"link": "<string>",
"recording_link": "<string>",
"cover_image_file_id": "<string>",
"host_profile_ids": [
"<string>"
],
"speaker_profile_ids": [
"<string>"
],
"external_speakers": "<string>",
"show_end_date": true,
"is_unlisted": true,
"publish_to_site": true,
"allow_public_guest_list": true,
"enable_registration_button": true,
"use_registration_btn_as_link": true,
"triggers_webhooks": true,
"webhook_custom_metadata": "<string>",
"reminders_config": [
{}
],
"integrations": {
"luma": {
"event_id": "<string>"
}
}
}
'import requests
url = "https://api.tightknit.ai/v1/events/{event_id}"
payload = {
"title": "<string>",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"scheduled_publish_at": "2023-11-07T05:31:56Z",
"description": { "text": "<string>" },
"recap": { "text": "<string>" },
"location": "<string>",
"link": "<string>",
"recording_link": "<string>",
"cover_image_file_id": "<string>",
"host_profile_ids": ["<string>"],
"speaker_profile_ids": ["<string>"],
"external_speakers": "<string>",
"show_end_date": True,
"is_unlisted": True,
"publish_to_site": True,
"allow_public_guest_list": True,
"enable_registration_button": True,
"use_registration_btn_as_link": True,
"triggers_webhooks": True,
"webhook_custom_metadata": "<string>",
"reminders_config": [{}],
"integrations": { "luma": { "event_id": "<string>" } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
start_date: '2023-11-07T05:31:56Z',
end_date: '2023-11-07T05:31:56Z',
scheduled_publish_at: '2023-11-07T05:31:56Z',
description: {text: '<string>'},
recap: {text: '<string>'},
location: '<string>',
link: '<string>',
recording_link: '<string>',
cover_image_file_id: '<string>',
host_profile_ids: ['<string>'],
speaker_profile_ids: ['<string>'],
external_speakers: '<string>',
show_end_date: true,
is_unlisted: true,
publish_to_site: true,
allow_public_guest_list: true,
enable_registration_button: true,
use_registration_btn_as_link: true,
triggers_webhooks: true,
webhook_custom_metadata: '<string>',
reminders_config: [{}],
integrations: {luma: {event_id: '<string>'}}
})
};
fetch('https://api.tightknit.ai/v1/events/{event_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tightknit.ai/v1/events/{event_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'start_date' => '2023-11-07T05:31:56Z',
'end_date' => '2023-11-07T05:31:56Z',
'scheduled_publish_at' => '2023-11-07T05:31:56Z',
'description' => [
'text' => '<string>'
],
'recap' => [
'text' => '<string>'
],
'location' => '<string>',
'link' => '<string>',
'recording_link' => '<string>',
'cover_image_file_id' => '<string>',
'host_profile_ids' => [
'<string>'
],
'speaker_profile_ids' => [
'<string>'
],
'external_speakers' => '<string>',
'show_end_date' => true,
'is_unlisted' => true,
'publish_to_site' => true,
'allow_public_guest_list' => true,
'enable_registration_button' => true,
'use_registration_btn_as_link' => true,
'triggers_webhooks' => true,
'webhook_custom_metadata' => '<string>',
'reminders_config' => [
[
]
],
'integrations' => [
'luma' => [
'event_id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tightknit.ai/v1/events/{event_id}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"scheduled_publish_at\": \"2023-11-07T05:31:56Z\",\n \"description\": {\n \"text\": \"<string>\"\n },\n \"recap\": {\n \"text\": \"<string>\"\n },\n \"location\": \"<string>\",\n \"link\": \"<string>\",\n \"recording_link\": \"<string>\",\n \"cover_image_file_id\": \"<string>\",\n \"host_profile_ids\": [\n \"<string>\"\n ],\n \"speaker_profile_ids\": [\n \"<string>\"\n ],\n \"external_speakers\": \"<string>\",\n \"show_end_date\": true,\n \"is_unlisted\": true,\n \"publish_to_site\": true,\n \"allow_public_guest_list\": true,\n \"enable_registration_button\": true,\n \"use_registration_btn_as_link\": true,\n \"triggers_webhooks\": true,\n \"webhook_custom_metadata\": \"<string>\",\n \"reminders_config\": [\n {}\n ],\n \"integrations\": {\n \"luma\": {\n \"event_id\": \"<string>\"\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.tightknit.ai/v1/events/{event_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"scheduled_publish_at\": \"2023-11-07T05:31:56Z\",\n \"description\": {\n \"text\": \"<string>\"\n },\n \"recap\": {\n \"text\": \"<string>\"\n },\n \"location\": \"<string>\",\n \"link\": \"<string>\",\n \"recording_link\": \"<string>\",\n \"cover_image_file_id\": \"<string>\",\n \"host_profile_ids\": [\n \"<string>\"\n ],\n \"speaker_profile_ids\": [\n \"<string>\"\n ],\n \"external_speakers\": \"<string>\",\n \"show_end_date\": true,\n \"is_unlisted\": true,\n \"publish_to_site\": true,\n \"allow_public_guest_list\": true,\n \"enable_registration_button\": true,\n \"use_registration_btn_as_link\": true,\n \"triggers_webhooks\": true,\n \"webhook_custom_metadata\": \"<string>\",\n \"reminders_config\": [\n {}\n ],\n \"integrations\": {\n \"luma\": {\n \"event_id\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tightknit.ai/v1/events/{event_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"scheduled_publish_at\": \"2023-11-07T05:31:56Z\",\n \"description\": {\n \"text\": \"<string>\"\n },\n \"recap\": {\n \"text\": \"<string>\"\n },\n \"location\": \"<string>\",\n \"link\": \"<string>\",\n \"recording_link\": \"<string>\",\n \"cover_image_file_id\": \"<string>\",\n \"host_profile_ids\": [\n \"<string>\"\n ],\n \"speaker_profile_ids\": [\n \"<string>\"\n ],\n \"external_speakers\": \"<string>\",\n \"show_end_date\": true,\n \"is_unlisted\": true,\n \"publish_to_site\": true,\n \"allow_public_guest_list\": true,\n \"enable_registration_button\": true,\n \"use_registration_btn_as_link\": true,\n \"triggers_webhooks\": true,\n \"webhook_custom_metadata\": \"<string>\",\n \"reminders_config\": [\n {}\n ],\n \"integrations\": {\n \"luma\": {\n \"event_id\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "event",
"id": "cevt_4h2o89z6qlpw",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"slug": "<string>",
"status": "draft",
"scheduled_publish_at": "2023-11-07T05:31:56Z",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"show_end_date": true,
"description": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
},
"recap": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
},
"location": "<string>",
"link": "<string>",
"recording_link": "<string>",
"external_speakers": "<string>",
"registrants_count": 1,
"webhook_custom_metadata": "<string>",
"cover_image_file_id": "file_2b3c4d5e6f7g",
"is_unlisted": true,
"publish_to_site": true,
"allow_public_guest_list": true,
"enable_registration_button": true,
"use_registration_btn_as_link": true,
"triggers_webhooks": true,
"reminders_config": [
{
"minutes": 1
}
],
"created_by_id": "prof_5Yq7tVz2Hm3n",
"integrations": {
"luma": {
"event_id": "<string>"
},
"slack": {
"published_channels": [
{
"object": "event_published_channel",
"channel_id": "C01ABC123",
"channel_name": "<string>",
"message_permalink": "<string>",
"feed_id": "feed_7Kd2mQx4Lp9v"
}
]
}
},
"cover_image_file": {
"object": "file",
"id": "file_2b3c4d5e6f7g",
"name": "cover.png",
"title": "<string>",
"mimetype": "image/png",
"size": 1,
"url": "<string>",
"thumbnail_url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
},
"tag_links": [
{
"object": "event_tag",
"id": "evtg_4h2o89z6qlpw",
"created_at": "2023-11-07T05:31:56Z",
"tag_id": "tags_4h2o89z6qlpw",
"tag": {
"object": "tag",
"id": "tags_4h2o89z6qlpw",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "<string>",
"slug": "<string>",
"section": "format",
"description": "<string>",
"tag_group_id": "tgrp_4h2o89z6qlpw",
"created_by_id": "prof_5Yq7tVz2Hm3n",
"updated_by_id": "prof_5Yq7tVz2Hm3n",
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
},
"updated_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
}
}
}
]
}{
"type": "about:blank",
"title": "Not found",
"status": 404,
"code": "not_found",
"detail": "<string>",
"param": "<string>",
"used_by": [
{
"object": "event",
"id": "cevt_V1StGXR8Z5jd",
"field": "cover_image_file_id"
}
],
"request_id": "req_9f2b8c1d4e5a6b7c8d9e0f1a2b3c4d5e"
}Update calendar event
Changes only the fields sent; anything omitted stays as it is. A list sent, such as host_profile_ids or integrations.slack.published_channel_ids, replaces the whole list. When the event is published before or after this change, its Slack announcements and the reply carrying its recap and recording_link are updated to match, and removed from channels taken off the list. A published or needs_approval event whose status or details changed is also posted to the community’s Tightknit Hub channel, where it has one. A member who created the event is told in Slack when its status changes. A draft with scheduled_publish_at is published at that time, with everything moving it to published does here. Reminders are rescheduled, and moving the event to published fires the calendar_event.published webhook when triggers_webhooks is on.
curl --request PATCH \
--url https://api.tightknit.ai/v1/events/{event_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"scheduled_publish_at": "2023-11-07T05:31:56Z",
"description": {
"text": "<string>"
},
"recap": {
"text": "<string>"
},
"location": "<string>",
"link": "<string>",
"recording_link": "<string>",
"cover_image_file_id": "<string>",
"host_profile_ids": [
"<string>"
],
"speaker_profile_ids": [
"<string>"
],
"external_speakers": "<string>",
"show_end_date": true,
"is_unlisted": true,
"publish_to_site": true,
"allow_public_guest_list": true,
"enable_registration_button": true,
"use_registration_btn_as_link": true,
"triggers_webhooks": true,
"webhook_custom_metadata": "<string>",
"reminders_config": [
{}
],
"integrations": {
"luma": {
"event_id": "<string>"
}
}
}
'import requests
url = "https://api.tightknit.ai/v1/events/{event_id}"
payload = {
"title": "<string>",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"scheduled_publish_at": "2023-11-07T05:31:56Z",
"description": { "text": "<string>" },
"recap": { "text": "<string>" },
"location": "<string>",
"link": "<string>",
"recording_link": "<string>",
"cover_image_file_id": "<string>",
"host_profile_ids": ["<string>"],
"speaker_profile_ids": ["<string>"],
"external_speakers": "<string>",
"show_end_date": True,
"is_unlisted": True,
"publish_to_site": True,
"allow_public_guest_list": True,
"enable_registration_button": True,
"use_registration_btn_as_link": True,
"triggers_webhooks": True,
"webhook_custom_metadata": "<string>",
"reminders_config": [{}],
"integrations": { "luma": { "event_id": "<string>" } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
start_date: '2023-11-07T05:31:56Z',
end_date: '2023-11-07T05:31:56Z',
scheduled_publish_at: '2023-11-07T05:31:56Z',
description: {text: '<string>'},
recap: {text: '<string>'},
location: '<string>',
link: '<string>',
recording_link: '<string>',
cover_image_file_id: '<string>',
host_profile_ids: ['<string>'],
speaker_profile_ids: ['<string>'],
external_speakers: '<string>',
show_end_date: true,
is_unlisted: true,
publish_to_site: true,
allow_public_guest_list: true,
enable_registration_button: true,
use_registration_btn_as_link: true,
triggers_webhooks: true,
webhook_custom_metadata: '<string>',
reminders_config: [{}],
integrations: {luma: {event_id: '<string>'}}
})
};
fetch('https://api.tightknit.ai/v1/events/{event_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tightknit.ai/v1/events/{event_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'start_date' => '2023-11-07T05:31:56Z',
'end_date' => '2023-11-07T05:31:56Z',
'scheduled_publish_at' => '2023-11-07T05:31:56Z',
'description' => [
'text' => '<string>'
],
'recap' => [
'text' => '<string>'
],
'location' => '<string>',
'link' => '<string>',
'recording_link' => '<string>',
'cover_image_file_id' => '<string>',
'host_profile_ids' => [
'<string>'
],
'speaker_profile_ids' => [
'<string>'
],
'external_speakers' => '<string>',
'show_end_date' => true,
'is_unlisted' => true,
'publish_to_site' => true,
'allow_public_guest_list' => true,
'enable_registration_button' => true,
'use_registration_btn_as_link' => true,
'triggers_webhooks' => true,
'webhook_custom_metadata' => '<string>',
'reminders_config' => [
[
]
],
'integrations' => [
'luma' => [
'event_id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tightknit.ai/v1/events/{event_id}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"scheduled_publish_at\": \"2023-11-07T05:31:56Z\",\n \"description\": {\n \"text\": \"<string>\"\n },\n \"recap\": {\n \"text\": \"<string>\"\n },\n \"location\": \"<string>\",\n \"link\": \"<string>\",\n \"recording_link\": \"<string>\",\n \"cover_image_file_id\": \"<string>\",\n \"host_profile_ids\": [\n \"<string>\"\n ],\n \"speaker_profile_ids\": [\n \"<string>\"\n ],\n \"external_speakers\": \"<string>\",\n \"show_end_date\": true,\n \"is_unlisted\": true,\n \"publish_to_site\": true,\n \"allow_public_guest_list\": true,\n \"enable_registration_button\": true,\n \"use_registration_btn_as_link\": true,\n \"triggers_webhooks\": true,\n \"webhook_custom_metadata\": \"<string>\",\n \"reminders_config\": [\n {}\n ],\n \"integrations\": {\n \"luma\": {\n \"event_id\": \"<string>\"\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.tightknit.ai/v1/events/{event_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"scheduled_publish_at\": \"2023-11-07T05:31:56Z\",\n \"description\": {\n \"text\": \"<string>\"\n },\n \"recap\": {\n \"text\": \"<string>\"\n },\n \"location\": \"<string>\",\n \"link\": \"<string>\",\n \"recording_link\": \"<string>\",\n \"cover_image_file_id\": \"<string>\",\n \"host_profile_ids\": [\n \"<string>\"\n ],\n \"speaker_profile_ids\": [\n \"<string>\"\n ],\n \"external_speakers\": \"<string>\",\n \"show_end_date\": true,\n \"is_unlisted\": true,\n \"publish_to_site\": true,\n \"allow_public_guest_list\": true,\n \"enable_registration_button\": true,\n \"use_registration_btn_as_link\": true,\n \"triggers_webhooks\": true,\n \"webhook_custom_metadata\": \"<string>\",\n \"reminders_config\": [\n {}\n ],\n \"integrations\": {\n \"luma\": {\n \"event_id\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tightknit.ai/v1/events/{event_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"scheduled_publish_at\": \"2023-11-07T05:31:56Z\",\n \"description\": {\n \"text\": \"<string>\"\n },\n \"recap\": {\n \"text\": \"<string>\"\n },\n \"location\": \"<string>\",\n \"link\": \"<string>\",\n \"recording_link\": \"<string>\",\n \"cover_image_file_id\": \"<string>\",\n \"host_profile_ids\": [\n \"<string>\"\n ],\n \"speaker_profile_ids\": [\n \"<string>\"\n ],\n \"external_speakers\": \"<string>\",\n \"show_end_date\": true,\n \"is_unlisted\": true,\n \"publish_to_site\": true,\n \"allow_public_guest_list\": true,\n \"enable_registration_button\": true,\n \"use_registration_btn_as_link\": true,\n \"triggers_webhooks\": true,\n \"webhook_custom_metadata\": \"<string>\",\n \"reminders_config\": [\n {}\n ],\n \"integrations\": {\n \"luma\": {\n \"event_id\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "event",
"id": "cevt_4h2o89z6qlpw",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"slug": "<string>",
"status": "draft",
"scheduled_publish_at": "2023-11-07T05:31:56Z",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"show_end_date": true,
"description": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
},
"recap": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
},
"location": "<string>",
"link": "<string>",
"recording_link": "<string>",
"external_speakers": "<string>",
"registrants_count": 1,
"webhook_custom_metadata": "<string>",
"cover_image_file_id": "file_2b3c4d5e6f7g",
"is_unlisted": true,
"publish_to_site": true,
"allow_public_guest_list": true,
"enable_registration_button": true,
"use_registration_btn_as_link": true,
"triggers_webhooks": true,
"reminders_config": [
{
"minutes": 1
}
],
"created_by_id": "prof_5Yq7tVz2Hm3n",
"integrations": {
"luma": {
"event_id": "<string>"
},
"slack": {
"published_channels": [
{
"object": "event_published_channel",
"channel_id": "C01ABC123",
"channel_name": "<string>",
"message_permalink": "<string>",
"feed_id": "feed_7Kd2mQx4Lp9v"
}
]
}
},
"cover_image_file": {
"object": "file",
"id": "file_2b3c4d5e6f7g",
"name": "cover.png",
"title": "<string>",
"mimetype": "image/png",
"size": 1,
"url": "<string>",
"thumbnail_url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
},
"tag_links": [
{
"object": "event_tag",
"id": "evtg_4h2o89z6qlpw",
"created_at": "2023-11-07T05:31:56Z",
"tag_id": "tags_4h2o89z6qlpw",
"tag": {
"object": "tag",
"id": "tags_4h2o89z6qlpw",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "<string>",
"slug": "<string>",
"section": "format",
"description": "<string>",
"tag_group_id": "tgrp_4h2o89z6qlpw",
"created_by_id": "prof_5Yq7tVz2Hm3n",
"updated_by_id": "prof_5Yq7tVz2Hm3n",
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
},
"updated_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
}
}
}
]
}{
"type": "about:blank",
"title": "Not found",
"status": 404,
"code": "not_found",
"detail": "<string>",
"param": "<string>",
"used_by": [
{
"object": "event",
"id": "cevt_V1StGXR8Z5jd",
"field": "cover_image_file_id"
}
],
"request_id": "req_9f2b8c1d4e5a6b7c8d9e0f1a2b3c4d5e"
}Authorizations
Path Parameters
Body
Moves the event through its life cycle. One of:
draft: returns it to a draft. Slack announcements already posted stay up.needs_approval: submits it for an admin to approve before it is published.published: makes it live, announced in its Slack channels and shown on the community site whenpublish_to_siteis on.
draft, needs_approval, published Passed through as custom_metadata on the calendar_event.published, calendar_event.user_registered and calendar_event.user_unregistered webhook payloads so the receiver can match it to its own record. Reaches a receiver only while triggers_webhooks is on. At most 250 UTF-16 code units; most emoji count as two or more. null removes it.
1 - 250Response
Success
Where the event is in its life cycle. One of:
draft: saved but not live. A published event moved back to draft keeps the Slack announcements it already had.needs_approval: submitted and waiting for an admin to approve it. Visible only to its creator and admins.published: live: announced in its Slack channels and, whenpublish_to_siteis on, shown on the community site.cancelled: called off. Visible only to its creator and admins.
draft, needs_approval, published, cancelled Was this page helpful?

