Skip to content

Creates a new random access token for the user. An existing token will be overwritten. Returns the created token.

PUT
/api/calendar/token

Authorizations

Responses

Success

Samples

cURL
curl -X PUT http://localhost/api/calendar/token
JavaScript
fetch("http://localhost/api/calendar/token", { method: "PUT" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/calendar/token");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.put("http://localhost/api/calendar/token")
print(response.json())