---
updatedAt: 2025-06-25T21:03:24.000Z
agentTools:
  projectIndex: https://developers.99minutos.com/llms.txt
---

# Attaches several vehicles to a scenario

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API ruta99 v1",
    "description": "This is the documentation for the public API v1 of ruta99.\n\n## First steps\n\n1.  Ask for a dedicated developers organization for your company. This will act as a sandbox.\n2.  The ruta99 team will provide a `client_id` and `client_secret`.\n3.  Use this credentials to generate the access tokens.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "http://{{api_url}}"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Scenarios"
    }
  ],
  "paths": {
    "/v1/scenario/1/vehicles": {
      "put": {
        "tags": [
          "Scenarios"
        ],
        "summary": "Attaches several vehicles to a scenario",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "vehicles": [
                    2,
                    3
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "example": "application/json"
          },
          {
            "name": "Accept",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "example": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [Get all scenarios](https://developers.99minutos.com/reference/get_v1-scenario.md)
* [Create scenario](https://developers.99minutos.com/reference/post_v1-scenario.md)
* [Duplicate a scenario](https://developers.99minutos.com/reference/post_v1-scenario-124-copy.md)
* [Create complete scenario](https://developers.99minutos.com/reference/post_v1-scenario-complete.md)
* [Optimize Scenario](https://developers.99minutos.com/reference/post_v1-scenario-1-optimize.md)
* [Fetch Best solution](https://developers.99minutos.com/reference/get_v1-scenario-214-fetch-best-solution.md)
* [Cancel optimization](https://developers.99minutos.com/reference/put_v1-scenario-38-cancel.md)
* [Get scenario](https://developers.99minutos.com/reference/get_v1-scenario-1.md)
* [Update scenario](https://developers.99minutos.com/reference/put_v1-scenario-1.md)
* [Export scenario](https://developers.99minutos.com/reference/get_v1-scenario-1-export.md)
* [Delete scenario](https://developers.99minutos.com/reference/delete_v1-scenario-11.md)
* [Remove vehicle from a scenario](https://developers.99minutos.com/reference/delete_v1-scenario-6-vehicle-17.md)
* [Imports orders contained in a file](https://developers.99minutos.com/reference/post_v1-scenario-1-import.md)
* [Get list all orders inside the scenario](https://developers.99minutos.com/reference/get_v1-scenario-1-order.md)