Lagepläne
Business+Rufen Sie Lagepläne ab.
Nur Lesen
Dieser Endpunkt unterstützt nur GET-Anfragen.
Erforderliche Bereiche:
plans
Feature-Flag:
plans
Endpunkte
GET
/api/v1/plans
Alle Lagepläne auflisten
GET
/api/v1/plans/{id}
Einzelnen Lageplan abrufen
Abfrageparameter
| Parameter | Beschreibung |
|---|---|
event_key
|
Nach Event-Schlüssel filtern |
is_active
|
Nach Aktivstatus filtern (0 oder 1) |
sort
|
Sortierfeld (plan_name, plan_key, area_name, sort_order, created_at, updated_at) |
order
|
Sortierrichtung (ASC oder DESC, Standard: DESC) |
include
|
Verknüpfte Daten einschließen (booth_count, booths) |
Response-Schema
| Feld | Typ |
|---|---|
id
|
integer |
event_id
|
integer |
event_title
|
string|null |
plan_key
|
string|null |
plan_name
|
string |
description
|
string|null |
area_name
|
string|null |
width
|
float|null |
height
|
float|null |
background_image
|
string|null |
floor_plan_svg
|
string|null |
floor_plan_width
|
float|null |
floor_plan_height
|
float|null |
grid_size
|
integer |
scale_factor
|
float |
is_active
|
boolean |
sort_order
|
integer |
created_at
|
string |
updated_at
|
string |
Codebeispiele
curl -X GET "https://your-tenant.plandocket.com/api/v1/plans" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
<?php
$apiKey = 'YOUR_API_KEY';
$baseUrl = 'https://your-tenant.plandocket.com';
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $baseUrl . '/api/v1/plans',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);
print_r($data);
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://your-tenant.plandocket.com';
const response = await fetch(`${baseUrl}/api/v1/plans`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
import requests
api_key = 'YOUR_API_KEY'
base_url = 'https://your-tenant.plandocket.com'
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json',
}
response = requests.get(f'{base_url}/api/v1/plans', headers=headers)
data = response.json()
print(data)
Beispiel-Antwort
200 OK
{
"data": {
"plan_id": 1,
"created_at": 1704067200,
"updated_at": 1704067200
},
"meta": {
"request_id": "req_abc123"
}
}