# Mission API ## Уведомления Поле `type` может иметь значения: `email, telegram, sms` Поле `group` может иметь значения: `user, staff` **[POST]** `notification-templates` **Body:** ```json { name: String, text: String, project_id: Integer, type: String, group: user или staff, } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `notification-templates?project=1&group=staff` **Response:** ```json { name: String, text: String, type: String, group: user или staff } ``` **[GET]** `notification-templates/{notification:id}` **Response:** ```json { name: String, text: String, type: String, group: user или staff } ``` **[PUT]** `notification-templates/{notification:id}` **Body:** ```json { name: String, text: String, type: String, group: user или staff } ``` **Response:** ```json { “message”: “Success” } ``` **[DELETE]** `notification-templates/{notification:id}` **Response:** `No content` ## Добавление сотрудников в проект **Body:** ```json { user_id: String, } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `projects/{project:id}/staff` **Response:** ```json { name: String, text: String, type: String, group: user или staff } ``` **Response:** ```json { “message”: “Success” } ``` **[DELETE]** `projects/{project:id}/staff/{user:id}` **Response:** `No content` ## Виртуальные профили **[POST]** `projects/{project:id}/virtual-profiles` **Body:** ```json { first_name: String, last_name: String, phones: Array, email: String, address: Object, designation: String, department: String, user_id: Integer } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `projects/{project:id}/virtual-profiles` **Response:** ```json { first_name: String, last_name: String, phones: Array, email: String, address: Object, designation: String, department: String, user: Object } ``` **[GET]** `projects/{project:id}/virtual-profiles/{profile:id}` **Response:** ```json { first_name: String, last_name: String, phones: Array, email: String, address: Object, designation: String, department: String, user: Object } ``` **[PUT]** `projects/{project:id}/virtual-profiles/{profile:id}` **Body:** ```json { first_name: String, last_name: String, phones: Array, email: String, address: Object, designation: String, department: String, } ``` **Response:** ```json { “message”: “Success” } ``` **[DELETE]** `projects/{project:id}/virtual-profiles/{profile:id}` **Response:** `No content` ## Шаблоны **[POST]** `projects/{project:id}/templates` **Body:** ```json { type: String, name: String, subject: String, description: String, labels: <Array,Integer>, attachments: File, autosend: Boolean, autosend_status_id: Integer, } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `projects/{project:id}/templates` **Response:** ```json { type: String, name: String, subject: String, description: String, labels: <Array,Integer>, attachments: File, autosend: Boolean, autosend_status: Object, } ``` **[GET]** `projects/{project:id}/templates/{template:id}` **Response:** ```json { type: String, name: String, subject: String, description: String, labels: <Array,Integer>, attachments: File, autosend: Boolean, autosend_status: Object, } ``` **[PUT]** `projects/{project:id}/templates/{template:id}` **Body:** ```json { type: String, name: String, subject: String, description: String, labels: <Array,Integer>, attachments: File, autosend: Boolean, autosend_status_id: Integer, } ``` **Response:** ```json { “message”: “Success” } ``` **[DELETE]** `projects/{project:id}/templates/{template:id}` **Response:** `No content` ## Форма регистрации **[PUT]** `projects/{project:id}/registration-form` **Body:** ```json { registrations: Boolean, acknowledgement_text: String, } ``` **Response:** ```json { “message”: “Success” } ``` ## Инвайты **[POST]** `projects/{project:id}/invitations` **Body:** ```json { amount: Integer, active: Boolean } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `projects/{project:id}/invitations` **Response:** ```json { name: String, text: String, type: String, group: user или staff } ``` ## Интеграции **[POST]** `projects/{project:id}/integrations` **Body:** ```json { provider_id: String, link: String, data: String } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `projects/{project:id}/integrations` **Response:** ```json { provider: Object, link: String, data: String } ``` **[GET]** `projects/{project:id}/integrations/{integration:id}` **Response:** ```json { provider: Object, link: String, data: String } ``` **[PUT]** `projects/{project:id}/integrations/{integration:id}` **Body:** ```json { link: String, data: String } ``` **Response:** ```json { “message”: “Success” } ``` **[DELETE]** `projects/{project:id}/integrations/{integration:id}` **Response:** `No content` ## Точки входа (EP) **[POST]** `projects/{project:id}/entry-points` **Body:** ```json { key: String, link: String } ``` **Response:** ```json { “message”: “Success” } ``` **[GET]** `projects/{project:id}/entry-points` **Response:** ```json { key: String, link: String, active: Boolean } ``` **[GET]** `projects/{project:id}/entry-points/{entry-point:id}` **Response:** ```jsonld= { key: String, link: String, active: Boolean } ``` **[PUT]** `projects/{project:id}/entry-points/{entry-point:id}` **Body:** ```jsonld= { key: String, link: String, active: Boolean } ``` **Response:** ```json { “message”: “Success” } ``` **[DELETE]** `projects/{project:id}/entry-points/{entry-point:id}` **Response:** `No content`