Usamos cookies para melhorar sua experiência. Ao continuar, você concorda com nossa Política de Cookies.

plan.parts
Sobre Bancos de dados Tarefas de Dados Como funciona Preços Documentação Blog Suporte Contatos
POST Beta Grátis

OEM Session: choose modification

/v1/oem/sessions/{session_id}/modification

Beta. Step 3. Choose a modification by its index (body: {"index": 0}) → the tree of nodes (state tree_ready); when it is at hand the answer carries its top level. Skipped when the VIN has one modification

Parâmetros

Name Type Required Description Example
session_id string path obrigatório session_id from step 1 3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f
lang string query opcional Language of node names in the answer: en (default), ru, es, fr, pt en
index integer JSON body obrigatório modifications[].index from step 2 0

Exemplo de Requisição

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

{
    "index": 0
}

Exemplo de Resposta

{
    "success": true,
    "data": {
        "session_id": "3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f",
        "state": "tree_ready",
        "cached": true,
        "nodes": [
            {
                "id": "10441",
                "name": "Interior trim",
                "has_children": true,
                "children_count": 14,
                "has_diagram": false,
                "loaded": false
            },
            {
                "id": "10500",
                "name": "Final drive",
                "has_children": true,
                "children_count": 1,
                "has_diagram": false,
                "loaded": false
            }
        ],
        "lang": "en",
        "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"
    }
}

Testar no Sandbox

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

Testar no Sandbox →

Sem cartão de crédito

Custo em tokens

This endpoint is free — no tokens are deducted.