Update a scheduled call
Moves, renames or re-invites a scheduled call the authenticated user organizes. Only the fields sent change. For a recurring call, scope and occurrence_start_time pick the occurrences: all of them (the default), one, or one and every one after it.
curl --request PUT \
--url https://api.x.com/2/calls/scheduled/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"start_time": "<string>",
"description": "<string>",
"duration_minutes": 22320,
"invitee_ids": [
"<string>"
],
"notify_invitees": true,
"occurrence_start_time": "<string>",
"recurrence": "<string>",
"time_zone": "<string>",
"title": "<string>"
}
'import requests
url = "https://api.x.com/2/calls/scheduled/{id}"
payload = {
"start_time": "<string>",
"description": "<string>",
"duration_minutes": 22320,
"invitee_ids": ["<string>"],
"notify_invitees": True,
"occurrence_start_time": "<string>",
"recurrence": "<string>",
"time_zone": "<string>",
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
start_time: '<string>',
description: '<string>',
duration_minutes: 22320,
invitee_ids: ['<string>'],
notify_invitees: true,
occurrence_start_time: '<string>',
recurrence: '<string>',
time_zone: '<string>',
title: '<string>'
})
};
fetch('https://api.x.com/2/calls/scheduled/{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.x.com/2/calls/scheduled/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'start_time' => '<string>',
'description' => '<string>',
'duration_minutes' => 22320,
'invitee_ids' => [
'<string>'
],
'notify_invitees' => true,
'occurrence_start_time' => '<string>',
'recurrence' => '<string>',
'time_zone' => '<string>',
'title' => '<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.x.com/2/calls/scheduled/{id}"
payload := strings.NewReader("{\n \"start_time\": \"<string>\",\n \"description\": \"<string>\",\n \"duration_minutes\": 22320,\n \"invitee_ids\": [\n \"<string>\"\n ],\n \"notify_invitees\": true,\n \"occurrence_start_time\": \"<string>\",\n \"recurrence\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.x.com/2/calls/scheduled/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": \"<string>\",\n \"description\": \"<string>\",\n \"duration_minutes\": 22320,\n \"invitee_ids\": [\n \"<string>\"\n ],\n \"notify_invitees\": true,\n \"occurrence_start_time\": \"<string>\",\n \"recurrence\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.x.com/2/calls/scheduled/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_time\": \"<string>\",\n \"description\": \"<string>\",\n \"duration_minutes\": 22320,\n \"invitee_ids\": [\n \"<string>\"\n ],\n \"notify_invitees\": true,\n \"occurrence_start_time\": \"<string>\",\n \"recurrence\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"updated": true
},
"errors": [
{
"detail": "<string>",
"resource_type": "<string>",
"title": "<string>",
"type": "https://api.x.com/2/problems/resource-not-found",
"parameter": "<string>",
"resource_id": "<string>",
"status": 123,
"value": "<string>"
}
]
}{
"code": 123,
"message": "<string>"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
^[0-9]{1,19}$Body
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
At least one of start_time, duration_minutes, title, description, invitee_ids, recurrence, time_zone is required.
When the call (or the chosen occurrence) starts now (RFC 3339).
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):[0-5]\d:[0-5]\d(\.\d{1,9})?(Z|[+-]([01]\d|2[0-3]):[0-5]\d)$What the call is about.
1000How long the call lasts, in minutes.
1 <= x <= 44640Everyone to invite: replaces the invite list.
1 - 100 elements^[0-9]{1,19}$Whether invitees get an email about the change. Defaults to true.
Start of the occurrence that scope this or this_and_following refers to (RFC 3339).
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):[0-5]\d:[0-5]\d(\.\d{1,9})?(Z|[+-]([01]\d|2[0-3]):[0-5]\d)$RFC 5545 RRULE to repeat the call by, such as FREQ=WEEKLY;BYDAY=MO.
1 - 500Which occurrences of a recurring call: all (the default without occurrence_start_time), this (the default with it), or this_and_following.
all, this, this_and_following IANA time zone the recurrence follows.
64Title invitees see.
100curl --request PUT \
--url https://api.x.com/2/calls/scheduled/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"start_time": "<string>",
"description": "<string>",
"duration_minutes": 22320,
"invitee_ids": [
"<string>"
],
"notify_invitees": true,
"occurrence_start_time": "<string>",
"recurrence": "<string>",
"time_zone": "<string>",
"title": "<string>"
}
'import requests
url = "https://api.x.com/2/calls/scheduled/{id}"
payload = {
"start_time": "<string>",
"description": "<string>",
"duration_minutes": 22320,
"invitee_ids": ["<string>"],
"notify_invitees": True,
"occurrence_start_time": "<string>",
"recurrence": "<string>",
"time_zone": "<string>",
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
start_time: '<string>',
description: '<string>',
duration_minutes: 22320,
invitee_ids: ['<string>'],
notify_invitees: true,
occurrence_start_time: '<string>',
recurrence: '<string>',
time_zone: '<string>',
title: '<string>'
})
};
fetch('https://api.x.com/2/calls/scheduled/{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.x.com/2/calls/scheduled/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'start_time' => '<string>',
'description' => '<string>',
'duration_minutes' => 22320,
'invitee_ids' => [
'<string>'
],
'notify_invitees' => true,
'occurrence_start_time' => '<string>',
'recurrence' => '<string>',
'time_zone' => '<string>',
'title' => '<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.x.com/2/calls/scheduled/{id}"
payload := strings.NewReader("{\n \"start_time\": \"<string>\",\n \"description\": \"<string>\",\n \"duration_minutes\": 22320,\n \"invitee_ids\": [\n \"<string>\"\n ],\n \"notify_invitees\": true,\n \"occurrence_start_time\": \"<string>\",\n \"recurrence\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.x.com/2/calls/scheduled/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": \"<string>\",\n \"description\": \"<string>\",\n \"duration_minutes\": 22320,\n \"invitee_ids\": [\n \"<string>\"\n ],\n \"notify_invitees\": true,\n \"occurrence_start_time\": \"<string>\",\n \"recurrence\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.x.com/2/calls/scheduled/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_time\": \"<string>\",\n \"description\": \"<string>\",\n \"duration_minutes\": 22320,\n \"invitee_ids\": [\n \"<string>\"\n ],\n \"notify_invitees\": true,\n \"occurrence_start_time\": \"<string>\",\n \"recurrence\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"updated": true
},
"errors": [
{
"detail": "<string>",
"resource_type": "<string>",
"title": "<string>",
"type": "https://api.x.com/2/problems/resource-not-found",
"parameter": "<string>",
"resource_id": "<string>",
"status": 123,
"value": "<string>"
}
]
}{
"code": 123,
"message": "<string>"
}