Get Time Profile Entity
Returns Time Profile Entity
Path Parameters
- time-profile-id integer required
Possible values:
>= 1Unique Id for time profile
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- name string
Possible values:
<= 100 charactersName of the time profile
time_options object
Time options of the time profile
is_all_day booleanDetermines if all day used for checking access, from 00.00 to 23.59
date_from int64Determines period when time profile check access
date_to int64Determines period when time profile check access
repeat_options object
The model describes repeat option for
timerange in Time profilerepeat_enable booleanDetermines if repeat function enabled
repeat_format object
The model describes repeat format in time profile
repeat_type stringPossible values: [
day,week,twoWeeks,month,year,custom]Period of repeating
repeat_end object
Describes repeat period end.
datekey required ifdateformat was chosenformat stringPossible values: [
never,date]Repeat period ending options
date int64Unix Timestamp Date
repeat_custom object
Only for
customrepeat typerepeat_point_type stringPossible values: [
day,week,month,year]Repeat type options
repeat_looper integerPossible values:
>= 1and<= 1000Number of repeats
repeat_options object
Repeat settings
oneOf- MOD1
- MOD2
- MOD3
- MOD4
stringPossible values: [
MON,TUE,WED,THU,FRI,SAT,SUN]Week day representation
format stringPossible values: [
dayNumbers,parameterizedDay]Format of range used in repeating
range object
Monthly repeat type range option
oneOf- MOD1
- MOD2
integerPossible values:
>= 1and<= 31Month day number
week_order stringPossible values: [
first,second,third,fourth,fifth,last]Number of week day in a month, eg second monday or fourth sunday
day_type stringPossible values: [
MON,TUE,WED,THU,FRI,SAT,SUN,DAY,WEEK_DAY,DAY_OFF]Representation of the week day
months integer[]Possible values:
>= 1,<= 12List of picked months
format stringPossible values: [
parameterizedDay]Format of range used in repeating
months integer[]Possible values:
>= 1,<= 12List of picked months
range object
Yearly repeat type range option
week_order stringPossible values: [
first,second,third,fourth,fifth,last]Number of week day in a month, eg second monday or fourth sunday
day_type stringPossible values: [
MON,TUE,WED,THU,FRI,SAT,SUN,DAY,WEEK_DAY,DAY_OFF]Representation of the week day
references_count object
list of the number of links
identifiers integerCount of identifiers attached to the time profile
users integerCount of users attached to the time profile
access_rules integerCount of access_rules attached to the time profile
{
"name": "Work week",
"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"
]
}
}
},
"references_count": {
"identifiers": 1,
"users": 1,
"access_rules": 1
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "bad_request",
"message": "Bad request sent"
}
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Invalid authentication"
}
}