---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.kz/routing/doc/en/delivery/quickstart/depot.md
  - https://yandex.kz/routing/doc/kk/delivery/quickstart/depot.md
  - https://yandex.kz/routing/doc/ru/delivery/quickstart/depot.md
  - https://yandex.kz/routing/doc/tr/delivery/quickstart/depot.md
  - href: en/delivery/quickstart/depot.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: RouteQ — API implementation procedure — adding depots
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.kz/routing/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 %}

<!-- source: en/delivery/_includes/poluchenie-ID.md -->
Use your company ID to access the Track & Trace API. If you don't have an ID, [contact us](mailto:routing@yandex-team.ru).
<!-- endsource: en/delivery/_includes/poluchenie-ID.md -->

{% endnote %}


**_In Routing Workspace_**

  1. <!-- source: en/delivery/_includes/open-logist-workplace.md -->
     Open [Routing Workspace](https://yandex.com/courier/companies/).
     <!-- endsource: en/delivery/_includes/open-logist-workplace.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.

  <!-- source: en/_includes/postman-collection.md -->
  To send API requests, you can use the [Routing API](https://doc-static.yandex.net/src/dev/routing/postman-collection/routeq-api-postman-collection-en.zip) collection. To learn how to import the collection into Postman or Bruno, see [Working with an existing request collection](https://yandex.kz/routing/doc/en/vrp/upload-api-collection.md).
  <!-- endsource: en/_includes/postman-collection.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
  }
  ```

<!-- source: en/delivery/_includes/feedback.md -->
<a href="../feedback">
  <span class="button">Contact support</span>
</a>



[//]: # (Version without HTML\: \[Contact support\]\(../../../feedback.md\))
<!-- endsource: en/delivery/_includes/feedback.md -->
