Przejdź do treści

Meets Create

Dodanie nowego spotkania wideo-czat

POST /meets/meet

Body

{
    "from_date": "2025-01-20 11:00:00",
    "project_target_identifier": "PSKQMXUAZ"
}
Nazwa Rodzaj Opis
from_date <STRING> Data rozpoczenia spotkania w UTC w formacie YYYY-MM-DD HH:mm:ss
project_target_identifier <STRING> Numer systemowy projektu

Response Body

{
    "_id": "5d7ac98ef93d6428522729ab",
    "_url": "https://meets.kontakt...",
    "start_date": "2025-01-20 11:00:00",
    "end_date": "2025-01-20 11:30:00",
    "title": "Spotkanie"
}

Response Code

Status Opis
200 Żądanie przyjęte do realizacji
400 Nie można wykonać takiej akcji
404 Nie znaleziono zasobu

Example

curl -X POST \
$CONPEEK_URL/meets/meet \
-H 'Authorization: '$CONPEEK_KEY \
-H 'Content-Type: application/json' \
-d '{
    "project_target_identifier": "PSKQMXUAZ",
    "from_date": "2025-01-20 11:00:00"
}'
import requests
import json
import os
from urllib import parse

url = parse.urljoin(os.environ["CONPEEK_URL"], "/meets/meet")

payload = {
    "project_target_identifier": "PSKQMXUAZ",
    "from_date": "2025-01-20 11:00:00"
}

headers = {
    'Content-Type': "application/json",
    'Authorization': os.environ["CONPEEK_KEY"]
}

response = requests.request("POST", url, data=json.dumps(payload), headers=headers)
print(response.text)
<?php
$curl = curl_init();

$payload = array(
    "project_target_identifier" => "PSKQMXUAZ",
    "from_date" => "2025-01-20 11:00:00"
);

curl_setopt_array($curl, array(
    CURLOPT_URL => getenv("CONPEEK_URL")."/meets/meet",
    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($payload),
    CURLOPT_HTTPHEADER => array(
        "Authorization: ".getenv("CONPEEK_KEY"),
        "Content-Type: application/json"
    ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $response;
}