Get Time Profiles list
Returns Time Profiles list
Query Parameters
- limit integer required
Possible values: [
10
,20
,30
,50
]Default value:
10
Number of items. Value by default is 10
- pageNumber integer required
Possible values:
>= 1
Default value:
1
Page number
- sortField string
Field name (JSON Key in item entity)
- sortType string
Possible values: [
asc
,desc
]Default value:
asc
Sort type (asc/desc)
- filter object
Filtering options
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- list_items object[]
list_option object
Available options for sorting, filtering and pagination of lists
pagination object
Available pagination options for tables
total_items integerThe total number of items found and reflected across all pages
items_limit integerPossible values: [
10
,25
,50
]Limiting the display of the amount of data for one page
total_pages integerPossible values:
>= 1
The number of pages that hold the requested data
current_page integerPossible values:
>= 1
Current page number
sort object
field stringasc booleanavailable_fields string[]Possible values: [
date_from
,date_to
,name
]
{
"list_items": [
{
"time_profile_uid": 1,
"link_id": "1",
"name": "Worker 1",
"time_options": {
"is_all_day": true,
"date_from": 1540819272,
"date_to": 1540819272
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "date",
"date": 1540819272
},
"repeat_custom": {
"repeat_point_type": "week",
"repeat_looper": 5,
"repeat_options": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
]
}
}
},
"identifiers": {
"count": 4,
"uid_items": [
11,
13,
23,
42
]
}
},
{
"time_profile_uid": 2,
"link_id": "2",
"name": "Worker 2",
"time_options": {
"is_all_day": true,
"date_from": 1540819272,
"date_to": 1540819272
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "date",
"date": 1540819272
},
"repeat_custom": {
"repeat_point_type": "week",
"repeat_looper": 5,
"repeat_options": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
]
}
}
},
"identifiers": {
"count": 4,
"uid_items": [
11,
13,
23,
42
]
}
},
{
"time_profile_uid": 3,
"link_id": "3",
"name": "Worker 3",
"time_options": {
"is_all_day": true,
"date_from": 1540819272,
"date_to": 1540819272
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "date",
"date": 1540819272
},
"repeat_custom": {
"repeat_point_type": "week",
"repeat_looper": 5,
"repeat_options": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
]
}
}
},
"identifiers": {
"count": 4,
"uid_items": [
11,
13,
23,
42
]
}
}
],
"list_option": {
"pagination": {
"total_items": 18,
"items_limit": 10,
"total_pages": 2,
"current_page": 1
},
"sort": {
"field": "name",
"asc": true,
"available_fields": [
"date_from"
]
}
}
}
{
"list_items": [
{
"time_profile_uid": 319,
"name": "ac 1",
"link_id": null,
"time_options": {
"is_all_day": true,
"date_from": 1601866800,
"date_to": 1603335600
},
"repeat_options": {
"repeat_enable": false
},
"identifiers": {
"count": 1,
"uid_items": [
141
]
}
},
{
"time_profile_uid": 320,
"name": "ac 2",
"link_id": "123456",
"time_options": {
"is_all_day": true,
"date_from": 1602730800,
"date_to": 1603422000
},
"repeat_options": {
"repeat_enable": true,
"repeat_format": {
"repeat_type": "day",
"repeat_end": {
"format": "never",
"date": null
}
}
},
"identifiers": {
"count": 0
}
}
],
"list_option": {
"pagination": {
"total_items": 2,
"items_limit": 10,
"total_pages": 1,
"current_page": 1
}
}
}
- Wrong pagination limit
- Wrong pagintation page number
- Wrong sort field
- Wrong sort type
- Wrong filter options
Log In
Loading...