新しいカレンダー ミーティング イベントを作成します。
curl --request POST \
--url https://api.hubapi.com/scheduler/v3/meetings/calendar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"associations": [
{
"to": {
"id": "<string>"
},
"types": [
{
"associationTypeId": 123
}
]
}
],
"emailReminderSchedule": {
"reminders": [
{
"numberOfTimeUnits": 123
}
],
"shouldIncludeInviteDescription": true
},
"properties": {
"hs_meeting_end_time": "2023-11-07T05:31:56Z",
"hs_meeting_outcome": "<string>",
"hs_meeting_start_time": "2023-11-07T05:31:56Z",
"hs_meeting_title": "<string>",
"hs_timestamp": "2023-11-07T05:31:56Z",
"hubspot_owner_id": "<string>",
"hs_activity_type": "<string>",
"hs_attachment_ids": [
"<string>"
],
"hs_attendee_owner_ids": [
"<string>"
],
"hs_internal_meeting_notes": "<string>",
"hs_meeting_body": "<string>",
"hs_meeting_location": "<string>"
},
"timezone": "<string>"
}
'import requests
url = "https://api.hubapi.com/scheduler/v3/meetings/calendar"
payload = {
"associations": [
{
"to": { "id": "<string>" },
"types": [{ "associationTypeId": 123 }]
}
],
"emailReminderSchedule": {
"reminders": [{ "numberOfTimeUnits": 123 }],
"shouldIncludeInviteDescription": True
},
"properties": {
"hs_meeting_end_time": "2023-11-07T05:31:56Z",
"hs_meeting_outcome": "<string>",
"hs_meeting_start_time": "2023-11-07T05:31:56Z",
"hs_meeting_title": "<string>",
"hs_timestamp": "2023-11-07T05:31:56Z",
"hubspot_owner_id": "<string>",
"hs_activity_type": "<string>",
"hs_attachment_ids": ["<string>"],
"hs_attendee_owner_ids": ["<string>"],
"hs_internal_meeting_notes": "<string>",
"hs_meeting_body": "<string>",
"hs_meeting_location": "<string>"
},
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
associations: [{to: {id: '<string>'}, types: [{associationTypeId: 123}]}],
emailReminderSchedule: {reminders: [{numberOfTimeUnits: 123}], shouldIncludeInviteDescription: true},
properties: {
hs_meeting_end_time: '2023-11-07T05:31:56Z',
hs_meeting_outcome: '<string>',
hs_meeting_start_time: '2023-11-07T05:31:56Z',
hs_meeting_title: '<string>',
hs_timestamp: '2023-11-07T05:31:56Z',
hubspot_owner_id: '<string>',
hs_activity_type: '<string>',
hs_attachment_ids: ['<string>'],
hs_attendee_owner_ids: ['<string>'],
hs_internal_meeting_notes: '<string>',
hs_meeting_body: '<string>',
hs_meeting_location: '<string>'
},
timezone: '<string>'
})
};
fetch('https://api.hubapi.com/scheduler/v3/meetings/calendar', 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.hubapi.com/scheduler/v3/meetings/calendar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'associations' => [
[
'to' => [
'id' => '<string>'
],
'types' => [
[
'associationTypeId' => 123
]
]
]
],
'emailReminderSchedule' => [
'reminders' => [
[
'numberOfTimeUnits' => 123
]
],
'shouldIncludeInviteDescription' => true
],
'properties' => [
'hs_meeting_end_time' => '2023-11-07T05:31:56Z',
'hs_meeting_outcome' => '<string>',
'hs_meeting_start_time' => '2023-11-07T05:31:56Z',
'hs_meeting_title' => '<string>',
'hs_timestamp' => '2023-11-07T05:31:56Z',
'hubspot_owner_id' => '<string>',
'hs_activity_type' => '<string>',
'hs_attachment_ids' => [
'<string>'
],
'hs_attendee_owner_ids' => [
'<string>'
],
'hs_internal_meeting_notes' => '<string>',
'hs_meeting_body' => '<string>',
'hs_meeting_location' => '<string>'
],
'timezone' => '<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.hubapi.com/scheduler/v3/meetings/calendar"
payload := strings.NewReader("{\n \"associations\": [\n {\n \"to\": {\n \"id\": \"<string>\"\n },\n \"types\": [\n {\n \"associationTypeId\": 123\n }\n ]\n }\n ],\n \"emailReminderSchedule\": {\n \"reminders\": [\n {\n \"numberOfTimeUnits\": 123\n }\n ],\n \"shouldIncludeInviteDescription\": true\n },\n \"properties\": {\n \"hs_meeting_end_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_outcome\": \"<string>\",\n \"hs_meeting_start_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_title\": \"<string>\",\n \"hs_timestamp\": \"2023-11-07T05:31:56Z\",\n \"hubspot_owner_id\": \"<string>\",\n \"hs_activity_type\": \"<string>\",\n \"hs_attachment_ids\": [\n \"<string>\"\n ],\n \"hs_attendee_owner_ids\": [\n \"<string>\"\n ],\n \"hs_internal_meeting_notes\": \"<string>\",\n \"hs_meeting_body\": \"<string>\",\n \"hs_meeting_location\": \"<string>\"\n },\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.hubapi.com/scheduler/v3/meetings/calendar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"associations\": [\n {\n \"to\": {\n \"id\": \"<string>\"\n },\n \"types\": [\n {\n \"associationTypeId\": 123\n }\n ]\n }\n ],\n \"emailReminderSchedule\": {\n \"reminders\": [\n {\n \"numberOfTimeUnits\": 123\n }\n ],\n \"shouldIncludeInviteDescription\": true\n },\n \"properties\": {\n \"hs_meeting_end_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_outcome\": \"<string>\",\n \"hs_meeting_start_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_title\": \"<string>\",\n \"hs_timestamp\": \"2023-11-07T05:31:56Z\",\n \"hubspot_owner_id\": \"<string>\",\n \"hs_activity_type\": \"<string>\",\n \"hs_attachment_ids\": [\n \"<string>\"\n ],\n \"hs_attendee_owner_ids\": [\n \"<string>\"\n ],\n \"hs_internal_meeting_notes\": \"<string>\",\n \"hs_meeting_body\": \"<string>\",\n \"hs_meeting_location\": \"<string>\"\n },\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/scheduler/v3/meetings/calendar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"associations\": [\n {\n \"to\": {\n \"id\": \"<string>\"\n },\n \"types\": [\n {\n \"associationTypeId\": 123\n }\n ]\n }\n ],\n \"emailReminderSchedule\": {\n \"reminders\": [\n {\n \"numberOfTimeUnits\": 123\n }\n ],\n \"shouldIncludeInviteDescription\": true\n },\n \"properties\": {\n \"hs_meeting_end_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_outcome\": \"<string>\",\n \"hs_meeting_start_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_title\": \"<string>\",\n \"hs_timestamp\": \"2023-11-07T05:31:56Z\",\n \"hubspot_owner_id\": \"<string>\",\n \"hs_activity_type\": \"<string>\",\n \"hs_attachment_ids\": [\n \"<string>\"\n ],\n \"hs_attendee_owner_ids\": [\n \"<string>\"\n ],\n \"hs_internal_meeting_notes\": \"<string>\",\n \"hs_meeting_body\": \"<string>\",\n \"hs_meeting_location\": \"<string>\"\n },\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"lastUpdatedAt": "2023-11-07T05:31:56Z",
"properties": {
"hs_engagement_source_id": "<string>",
"hs_meeting_end_time": "2023-11-07T05:31:56Z",
"hs_meeting_outcome": "<string>",
"hs_meeting_start_time": "2023-11-07T05:31:56Z",
"hs_meeting_title": "<string>",
"hs_timestamp": "2023-11-07T05:31:56Z",
"hs_activity_type": "<string>",
"hs_attachment_ids": [
"<string>"
],
"hs_attendee_owner_ids": [
"<string>"
],
"hs_include_description_in_reminder": "<string>",
"hs_internal_meeting_notes": "<string>",
"hs_meeting_body": "<string>",
"hs_meeting_external_url": "<string>",
"hs_meeting_location": "<string>",
"hs_unique_id": "<string>",
"hubspot_owner_id": "<string>"
}
}{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}カレンダー
Create a new calendar event for a meeting
関連付け、Eメールリマインダー、ミーティング オブジェクト プロパティー、タイムゾーンなどの必要な詳細を指定して、新しいカレンダーイベントやミーティングオブジェクトを作成します。
POST
/
scheduler
/
v3
/
meetings
/
calendar
新しいカレンダー ミーティング イベントを作成します。
curl --request POST \
--url https://api.hubapi.com/scheduler/v3/meetings/calendar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"associations": [
{
"to": {
"id": "<string>"
},
"types": [
{
"associationTypeId": 123
}
]
}
],
"emailReminderSchedule": {
"reminders": [
{
"numberOfTimeUnits": 123
}
],
"shouldIncludeInviteDescription": true
},
"properties": {
"hs_meeting_end_time": "2023-11-07T05:31:56Z",
"hs_meeting_outcome": "<string>",
"hs_meeting_start_time": "2023-11-07T05:31:56Z",
"hs_meeting_title": "<string>",
"hs_timestamp": "2023-11-07T05:31:56Z",
"hubspot_owner_id": "<string>",
"hs_activity_type": "<string>",
"hs_attachment_ids": [
"<string>"
],
"hs_attendee_owner_ids": [
"<string>"
],
"hs_internal_meeting_notes": "<string>",
"hs_meeting_body": "<string>",
"hs_meeting_location": "<string>"
},
"timezone": "<string>"
}
'import requests
url = "https://api.hubapi.com/scheduler/v3/meetings/calendar"
payload = {
"associations": [
{
"to": { "id": "<string>" },
"types": [{ "associationTypeId": 123 }]
}
],
"emailReminderSchedule": {
"reminders": [{ "numberOfTimeUnits": 123 }],
"shouldIncludeInviteDescription": True
},
"properties": {
"hs_meeting_end_time": "2023-11-07T05:31:56Z",
"hs_meeting_outcome": "<string>",
"hs_meeting_start_time": "2023-11-07T05:31:56Z",
"hs_meeting_title": "<string>",
"hs_timestamp": "2023-11-07T05:31:56Z",
"hubspot_owner_id": "<string>",
"hs_activity_type": "<string>",
"hs_attachment_ids": ["<string>"],
"hs_attendee_owner_ids": ["<string>"],
"hs_internal_meeting_notes": "<string>",
"hs_meeting_body": "<string>",
"hs_meeting_location": "<string>"
},
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
associations: [{to: {id: '<string>'}, types: [{associationTypeId: 123}]}],
emailReminderSchedule: {reminders: [{numberOfTimeUnits: 123}], shouldIncludeInviteDescription: true},
properties: {
hs_meeting_end_time: '2023-11-07T05:31:56Z',
hs_meeting_outcome: '<string>',
hs_meeting_start_time: '2023-11-07T05:31:56Z',
hs_meeting_title: '<string>',
hs_timestamp: '2023-11-07T05:31:56Z',
hubspot_owner_id: '<string>',
hs_activity_type: '<string>',
hs_attachment_ids: ['<string>'],
hs_attendee_owner_ids: ['<string>'],
hs_internal_meeting_notes: '<string>',
hs_meeting_body: '<string>',
hs_meeting_location: '<string>'
},
timezone: '<string>'
})
};
fetch('https://api.hubapi.com/scheduler/v3/meetings/calendar', 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.hubapi.com/scheduler/v3/meetings/calendar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'associations' => [
[
'to' => [
'id' => '<string>'
],
'types' => [
[
'associationTypeId' => 123
]
]
]
],
'emailReminderSchedule' => [
'reminders' => [
[
'numberOfTimeUnits' => 123
]
],
'shouldIncludeInviteDescription' => true
],
'properties' => [
'hs_meeting_end_time' => '2023-11-07T05:31:56Z',
'hs_meeting_outcome' => '<string>',
'hs_meeting_start_time' => '2023-11-07T05:31:56Z',
'hs_meeting_title' => '<string>',
'hs_timestamp' => '2023-11-07T05:31:56Z',
'hubspot_owner_id' => '<string>',
'hs_activity_type' => '<string>',
'hs_attachment_ids' => [
'<string>'
],
'hs_attendee_owner_ids' => [
'<string>'
],
'hs_internal_meeting_notes' => '<string>',
'hs_meeting_body' => '<string>',
'hs_meeting_location' => '<string>'
],
'timezone' => '<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.hubapi.com/scheduler/v3/meetings/calendar"
payload := strings.NewReader("{\n \"associations\": [\n {\n \"to\": {\n \"id\": \"<string>\"\n },\n \"types\": [\n {\n \"associationTypeId\": 123\n }\n ]\n }\n ],\n \"emailReminderSchedule\": {\n \"reminders\": [\n {\n \"numberOfTimeUnits\": 123\n }\n ],\n \"shouldIncludeInviteDescription\": true\n },\n \"properties\": {\n \"hs_meeting_end_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_outcome\": \"<string>\",\n \"hs_meeting_start_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_title\": \"<string>\",\n \"hs_timestamp\": \"2023-11-07T05:31:56Z\",\n \"hubspot_owner_id\": \"<string>\",\n \"hs_activity_type\": \"<string>\",\n \"hs_attachment_ids\": [\n \"<string>\"\n ],\n \"hs_attendee_owner_ids\": [\n \"<string>\"\n ],\n \"hs_internal_meeting_notes\": \"<string>\",\n \"hs_meeting_body\": \"<string>\",\n \"hs_meeting_location\": \"<string>\"\n },\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.hubapi.com/scheduler/v3/meetings/calendar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"associations\": [\n {\n \"to\": {\n \"id\": \"<string>\"\n },\n \"types\": [\n {\n \"associationTypeId\": 123\n }\n ]\n }\n ],\n \"emailReminderSchedule\": {\n \"reminders\": [\n {\n \"numberOfTimeUnits\": 123\n }\n ],\n \"shouldIncludeInviteDescription\": true\n },\n \"properties\": {\n \"hs_meeting_end_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_outcome\": \"<string>\",\n \"hs_meeting_start_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_title\": \"<string>\",\n \"hs_timestamp\": \"2023-11-07T05:31:56Z\",\n \"hubspot_owner_id\": \"<string>\",\n \"hs_activity_type\": \"<string>\",\n \"hs_attachment_ids\": [\n \"<string>\"\n ],\n \"hs_attendee_owner_ids\": [\n \"<string>\"\n ],\n \"hs_internal_meeting_notes\": \"<string>\",\n \"hs_meeting_body\": \"<string>\",\n \"hs_meeting_location\": \"<string>\"\n },\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/scheduler/v3/meetings/calendar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"associations\": [\n {\n \"to\": {\n \"id\": \"<string>\"\n },\n \"types\": [\n {\n \"associationTypeId\": 123\n }\n ]\n }\n ],\n \"emailReminderSchedule\": {\n \"reminders\": [\n {\n \"numberOfTimeUnits\": 123\n }\n ],\n \"shouldIncludeInviteDescription\": true\n },\n \"properties\": {\n \"hs_meeting_end_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_outcome\": \"<string>\",\n \"hs_meeting_start_time\": \"2023-11-07T05:31:56Z\",\n \"hs_meeting_title\": \"<string>\",\n \"hs_timestamp\": \"2023-11-07T05:31:56Z\",\n \"hubspot_owner_id\": \"<string>\",\n \"hs_activity_type\": \"<string>\",\n \"hs_attachment_ids\": [\n \"<string>\"\n ],\n \"hs_attendee_owner_ids\": [\n \"<string>\"\n ],\n \"hs_internal_meeting_notes\": \"<string>\",\n \"hs_meeting_body\": \"<string>\",\n \"hs_meeting_location\": \"<string>\"\n },\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"lastUpdatedAt": "2023-11-07T05:31:56Z",
"properties": {
"hs_engagement_source_id": "<string>",
"hs_meeting_end_time": "2023-11-07T05:31:56Z",
"hs_meeting_outcome": "<string>",
"hs_meeting_start_time": "2023-11-07T05:31:56Z",
"hs_meeting_title": "<string>",
"hs_timestamp": "2023-11-07T05:31:56Z",
"hs_activity_type": "<string>",
"hs_attachment_ids": [
"<string>"
],
"hs_attendee_owner_ids": [
"<string>"
],
"hs_include_description_in_reminder": "<string>",
"hs_internal_meeting_notes": "<string>",
"hs_meeting_body": "<string>",
"hs_meeting_external_url": "<string>",
"hs_meeting_location": "<string>",
"hs_unique_id": "<string>",
"hubspot_owner_id": "<string>"
}
}{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Supported products
Supported products
Required Scopes
Required Scopes
承認
oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2oauth2
The access token received from the authorization server in the OAuth 2.0 flow.
クエリパラメータ
ボディ
application/json
最終更新日 2026年4月10日
⌘I