Core accounting items

Переместить статью внутри дерева одного отчёта

Changed on

Перемещает указанную статью внутри дерева одного отчёта.

post/api/v1/core/items/{id}/move

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Query parameters

view, 'item'

item — ответить только перенесённой статьёй, без всего справочника

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

CoreItemMove required
application, 'cashflow' | 'pnl' required
parent_id, string uuid
cashflow_section, 'operating' | 'investing' | 'financing' | 'transfer'
position, integer required

Response

Полный обновлённый справочник; с view=item — только перенесённая статья

union required
CoreItemPage required
OR
CoreItemMoved required

Changes

    • info

      added the optional property oneOf[#/components/schemas/CoreItemMoved]/item/default_cfo_id to the response with the status

    • info

      added the optional property oneOf[#/components/schemas/CoreItemPage]/results/items/default_cfo_id to the response with the status

    • info

      added the optional property oneOf[#/components/schemas/CoreItemMoved]/item/use_ledger to the response with the status

    1 more change in this revision