visibility_target_id

This commit is contained in:
kirill
2026-06-22 14:41:40 +06:00
parent e4e34d595c
commit 56a357009c
+56
View File
@@ -2525,6 +2525,7 @@ paths:
- updBirthday - updBirthday
- updNewbies - updNewbies
- updBooks - updBooks
- updContent
- name: info - name: info
in: query in: query
description: > description: >
@@ -2537,6 +2538,21 @@ paths:
enum: enum:
- profileBrief - profileBrief
- notificationsBadge - notificationsBadge
- name: visibility_target_id
in: query
description: >
Content widgets visibility target filter. Used for `updContent` widget.
* `1` - Web
* `2` - Mobile app
* `3` - Everywhere
example: 2
schema:
type: integer
default: 1
enum:
- 1
- 2
- 3
responses: responses:
200: 200:
description: Returns all the dashboard data about requested widgets. In response object only requested info/widgets keys will be presented. If widget is not available for current user, this widget will not exists in response of will be null. description: Returns all the dashboard data about requested widgets. In response object only requested info/widgets keys will be presented. If widget is not available for current user, this widget will not exists in response of will be null.
@@ -2596,6 +2612,21 @@ paths:
updBooks: updBooks:
# description: Company feed - New books in library # description: Company feed - New books in library
$ref: '#/components/schemas/dashboardWidget' $ref: '#/components/schemas/dashboardWidget'
updContent:
description: Company feed - Content widgets
allOf:
- $ref: '#/components/schemas/dashboardWidget'
- type: object
properties:
items:
type: array
items:
allOf:
- $ref: '#/components/schemas/dashboardWidgetItem'
- type: object
properties:
data:
$ref: '#/components/schemas/dashboardContentWidgetItemData'
400: 400:
description: Invalid input description: Invalid input
401: 401:
@@ -9590,6 +9621,31 @@ components:
periodLengthText: periodLengthText:
type: integer type: integer
description: Продолжительность отпуска в днях description: Продолжительность отпуска в днях
dashboardContentWidgetItemData:
type: object
properties:
content:
type: string
description: Rendered content widget HTML.
example: '<a href="https://example.hrbox.io/article/1">Open article</a>'
visibility_target_id:
type: integer
description: Content widget visibility target.
enum:
- 1
- 2
- 3
example: 2
visibilityTargetName:
type: string
description: Human readable visibility target name.
enum:
- Веб
- Мобильное приложение
- Везде
example: Мобильное приложение
feedback: feedback:
type: object type: object
properties: properties: