---
metadata:
  - name: generator
    content: Diplodoc Platform v5.19.6
alternate:
  - https://docs.routeq.com/doc/en/delivery/quickstart/depot.md
  - https://docs.routeq.com/doc/tr/delivery/quickstart/depot.md
title: RouteQ — API implementation procedure — adding depots
---
> **Documentation Index:** Fetch the complete configuration index at https://docs.routeq.com/doc/en/llms.txt


# Adding depots

Before getting started, the company should set up a list of depots that deliveries are made from. The depot marks the starting point for a route.

{% note info %}

{% include [warehouse-poluchenie-ID](../_includes/poluchenie-ID-64cccc844b69.md) %}

{% endnote %}


**_In Routing Workspace_**

  1. {% include [open-logist-workplace-companies](../_includes/open-logist-workplace-c693389b040b.md) %}
  2. In the menu on the left, go to **Settings** → **Depots**.
  3. Click **Create a depot**.
  4. Enter the depot's information and click **Create**.

**Via the API**

: Send a request to the [depots-batch](https://yandex.ru/routing/doc/en/delivery/redoc/index.html#operation/editsMultipleDepots) resource. The request must contain information about the depots.

  {% include [postman-collection](../_includes/postman-collection-c7a3adefee03.md) %}


  {% note alert %}

  The specification contains required fields for existing objects, but there are more fields for new objects. When you add new objects by sending a request to the `depots-batch` resource, fill in all of the fields that are required for the [depots](https://yandex.ru/routing/doc/en/delivery/redoc/index.html#operation/addsADepot) resource.

  {% endnote %}

  **Request:**

  {% list tabs %}

  - Windows

    cURL

    ```html
    curl -H "Content-Type: application/json" -H "Authorization: OAuth <your-token>" -X POST -d @<File_path_in_UTF-8_encoding> https://courier.yandex.ru/api/v1/companies/<your-company-id>/depots-batch
    ```

    File

    
    
    ```json
    [
      {
        "number":"111",
        "name":"Depot 1",
        "address":"476 5th Avenue",
        "lat": 73.9823,
        "lon": 40.7532,
        "time_interval":"10-22"
      }, 
      {
        "number":"112",
        "name":"Depot 2",
        "address":"477 5th Avenue",
        "lat": 73.9824,
        "lon": 40.7533,
        "time_interval":"11:00 - 23:00"
      }
    ]
    ```
    


  - MacOS/Linux
    
    cURL

    
    
    ```html
    curl -H "Content-Type: application/json" -H "Authorization: OAuth <your-OAuth-token>" -X POST -d '[{"number":"111", "name":"Depot 1", "address":"476 5th Avenue", "lat": 73.9823, "lon": 40.7532, "time_interval":"10-22"}, {"number":"112", "name":"Depot 2", "address":"477 5th Avenue", "lat": 73.9824, "lon": 40.7533, "time_interval":"11:00 - 23:00"}]' https://courier.yandex.ru/api/v1/companies/<your-company-id>/depots-batch
    ```
    


  {% endlist %}

  **Result:**

  ```json
  {
    "inserted": 2,
    "updated": 0
  }
  ```

{% include [warehouse-feedback](../_includes/feedback-7b71896f9bc3.md) %}
