CRM pipelines

Изменить воронку

Changed on

Изменяет указанную воронку CRM.

patch/api/v1/crm/pipelines/{id}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Request body

CRMPipelinePatch required
name, string
is_default, boolean
business_id, string uuid nullable
auto_order_on_win, boolean

«Создавать заказ при выигрыше»; поле не передано — не менять

Response

Обновлённая воронка

CRMPipeline required
id, string uuid required
name, string required
label_key, string

Ключ подписи строки, которую завёл стартовый посев или готовый набор CRM (например crm.lead_stage.unsorted, crm.set.pipeline.patients, crm.source.manual): экран переводит подпись по ключу, а name остаётся прежним представлением. Пусто - кабинет назвал строку сам, показывается name как есть

sort_order, integer required
is_default, boolean required
is_active, boolean required
is_system, boolean required

«Общая» воронка, как в Битрикс24: есть в кабинете всегда, удалить её нельзя (409 crm.pipeline_system), даже если основной сделали другую. Название и стадии меняют как у любой воронки

business_id, string uuid nullable required
auto_order_on_win, boolean required

«Создавать заказ при выигрыше»: сделка воронки на выигранном этапе сама заводит черновик заказа в «Продажах». Работает только при подключённом «Документообороте»

stages, CRMStage[] nullable
created_at, string date-time required
updated_at, string date-time required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision