Мы используем cookies для улучшения работы сайта. Продолжая использование, вы соглашаетесь с нашей политикой cookies.

plan.parts
О проекте Базы данных Задачи с данными Как работает Цены Документация Блог Поддержка Контакты
POST Beta 20 tokens

OEM Session: load nodes

/v1/oem/sessions/{session_id}/nodes

Beta. Step 5. Load end nodes: diagram and parts (body: {"node_ids": ["..."]}, up to 20). Price per node, charged only for nodes delivered; nodes already loaded in this session are free. Then read them with results

Параметры

Name Type Required Description Example
session_id string path обязательный session_id from step 1 3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f
node_ids array JSON body обязательный End nodes (has_children = false), up to 20 ["12796"]

Пример запроса

POST https://cdn.plan.parts/api/v1/oem/sessions/3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f/nodes
Authorization: Bearer your_api_key
Content-Type: application/json

{
    "node_ids": [
        "12796"
    ]
}

Пример ответа

{
    "success": true,
    "data": {
        "session_id": "3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f",
        "state": "loading_nodes",
        "node_ids": [
            "12796"
        ],
        "new_nodes": 1,
        "cached": true,
        "lifetime": {
            "created_at": "2026-11-27T12:49:37+03:00",
            "expires_at": "2026-11-27T15:49:37+03:00",
            "expires_in": 10800,
            "max_expires_at": "2026-11-28T12:49:37+03:00",
            "age": 0,
            "extends_by": 10800,
            "max_age": 86400
        },
        "status_url": "/api/v1/oem/sessions/3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f"
    }
}

Попробовать в песочнице

Test this endpoint with real data in the Developer Portal sandbox.

Попробовать в песочнице →

Карта не нужна

Стоимость

Each successful call to this endpoint deducts 20 tokens from your balance. Tokens are only deducted on 2xx responses.