visibility_target_id
This commit is contained in:
@@ -2525,6 +2525,7 @@ paths:
|
||||
- updBirthday
|
||||
- updNewbies
|
||||
- updBooks
|
||||
- updContent
|
||||
- name: info
|
||||
in: query
|
||||
description: >
|
||||
@@ -2537,6 +2538,21 @@ paths:
|
||||
enum:
|
||||
- profileBrief
|
||||
- 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:
|
||||
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.
|
||||
@@ -2596,6 +2612,21 @@ paths:
|
||||
updBooks:
|
||||
# description: Company feed - New books in library
|
||||
$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:
|
||||
description: Invalid input
|
||||
401:
|
||||
@@ -9590,6 +9621,31 @@ components:
|
||||
periodLengthText:
|
||||
type: integer
|
||||
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:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user