feat: описание смены анонимности

This commit is contained in:
kirill
2025-02-25 14:03:41 +06:00
parent 642c1633b4
commit 592f10d191
+56 -3
View File
@@ -4245,13 +4245,13 @@ paths:
- name: survey_type_id - name: survey_type_id
in: query in: query
description: > description: >
Тип опроса Тип опроса, можно перечислять через запятую
* `1` - Обычный * `1` - Обычный
* `2` - ICSI * `2` - ICSI
* `360` - ICSI * `360` - ICSI
* `6` - Обратная связь * `6` - Обратная связь
schema: schema:
type: number type: string
enum: enum:
- 1 - 1
- 2 - 2
@@ -4260,7 +4260,7 @@ paths:
- name: survey_assignment_status_id - name: survey_assignment_status_id
in: query in: query
description: > description: >
Статус прохождения опроса Статус прохождения опроса, можно перечислять через запятую
* `1` - Завершен * `1` - Завершен
* `2` - Не пройден" * `2` - Не пройден"
* `3` - В процессе" * `3` - В процессе"
@@ -4314,6 +4314,59 @@ paths:
500: 500:
description: Server Error. description: Server Error.
/survey-assignment/set-anonymous:
post:
tags:
- survey
summary: Смена анонимности в назначенном опросе. Можно менять если в survey.is_choice_anonymous = true
operationId: /survey-assignment/set-anonymous
parameters:
- name: id
in: query
description: id назначения
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: boolean
responses:
200:
content:
application/json:
schema:
type: object
properties:
success:
description: Result status.
type: boolean
example: true
message:
type: object
default: null
properties:
type: string
text: string
errors:
description: Array of validation errors.
type: array
default: null
data:
type: object
400:
description: Bad Request.
401:
description: Unauthorized.
403:
description: Forbidden.
404:
description: Not found.
500:
description: Server Error.
/survey-report/360: /survey-report/360:
get: get:
tags: tags: