Создать контейнер в дереве

Создает контейнер в дереве

Request

POST

https://corp.browser.yandex.ru/browser/public/api/browser-management/container

Body

application/json
{
  "name": "example",
  "description": "example",
  "parentId": "example"
}

Name

Description

name

Type: string

Example: example

description

Type: string

Example: example

parentId

Type: string

отсутствие parentId = создание контейнера на верхнем (корневом) уровене

Example: example

Responses

200 OK

OK

Body

application/json
{
  "id": "example",
  "name": "example",
  "description": "example",
  "createdAt": "example",
  "partnerId": "example",
  "profileId": "example",
  "hasNestedContainers": true,
  "parentId": "example",
  "catalogConnectionId": "example"
}
All of 2 types
  • Type: Container

    Объект контейнера

    Example
    {
      "id": "example",
      "name": "example",
      "description": "example",
      "createdAt": "example",
      "partnerId": "example",
      "profileId": "example",
      "hasNestedContainers": true
    }
    
  • Type: object

    catalogConnectionId

    Type: CatalogConnectionId | null

    Уникальный идентификатор подключения к каталогу

    Example: example

    parentId

    Type: string | null

    Уникальный идентификатор родителя контейнера

    Example: example

    Расширенный объект контейнера

    Example
    {
      "parentId": "example",
      "catalogConnectionId": "example"
    }
    

ContainerId

Уникальный идентификатор контейнера

Type: string

Example: example

PartnerId

Уникальный идентификатор партнера

Type: string

Example: example

ProfileId

Уникальный идентификатор профиля

Type: string

Example: example

Container

Объект контейнера

Name

Description

createdAt

Type: string

Timestamp даты создания контейнера

Example: example

hasNestedContainers

Type: boolean

Есть ли у контейнера вложенные контейнеры

id

Type: ContainerId

Уникальный идентификатор контейнера

Example: example

name

Type: string

Имя контейнера

Example: example

partnerId

Type: PartnerId

Уникальный идентификатор партнера

Example: example

profileId

Type: ProfileId | null

Уникальный идентификатор профиля

Example: example

description

Type: string

Описание контейнера

Example: example

Example
{
  "id": "example",
  "name": "example",
  "description": "example",
  "createdAt": "example",
  "partnerId": "example",
  "profileId": "example",
  "hasNestedContainers": true
}

CatalogConnectionId

Уникальный идентификатор подключения к каталогу

Type: string

Example: example

400 Bad Request

Невалидное body (VALIDATION with errors in payload)

404 Not Found

У партнера не найден контейнер с parent_id (NO_CONTAINER_FOUND)

No longer supported, please use an alternative and newer version.