Create Time Profile Entity
Create Time Profile Entity. It describes access rules which can be attached to identifiers.
- application/json
Request Body required
- name string required
time_options object required
is_all_day boolean requireddate_from int64 requiredUnix Timestamp Date
date_to int64 requiredUnix Timestamp Date
repeat_options object required
only for
time
rangerepeat_enable boolean requiredrepeat_format object
repeat_type string requiredPossible values: [
day
,week
,twoWeeks
,month
,year
,custom
]repeat_end object required
date
key required ifdate
format was choosenformat string requiredPossible values: [
never
,date
]date int64 requiredUnix Timestamp Date
repeat_custom object
only for
custom
repeat typerepeat_point_type string requiredPossible values: [
day
,week
,month
,year
]repeat_looper integer requiredPossible values:
>= 1
and<= 1000
repeat_options object
oneOf- MOD1
- MOD2
- MOD3
stringPossible values: [
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
]format stringPossible values: [
dayNumbers
,parameterizedDay
]range object
oneOf- MOD1
- MOD2
integerPossible values:
>= 1
and<= 31
week_order stringPossible values: [
first
,second
,third
,fourth
,fifth
,last
]day_type stringPossible values: [
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
,WEEK_DAY
,DAY_OFF
]months integer[] requiredPossible values:
>= 1
,<= 12
range object
week_order stringPossible values: [
first
,second
,third
,fourth
,fifth
,last
]day_type stringPossible values: [
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
,WEEK_DAY
,DAY_OFF
]
- 200
- 400
- 401
The uid
value returned in the response can be used as the timeProfileUid
parameter in:
GET /access/timeprofile/item/{timeProfileUid}
- to get info about time profilePATH /access/timeprofile/item/{timeProfileUid}
- to update time profileDELETE /access/timeprofile/item/{timeProfileUid}
- to remove time profilePOST /access/identifiers/item/{identifierUid}/timeProfile/{timeProfileUid}
- to attach time profile to identifier with ididentifierUid
DELETE /access/identifiers/item/{identifierUid}/timeProfile/{timeProfileUid}
- to detach time profile from identifier with ididentifierUid
- application/json
- Schema
- Example (from schema)
- Example
Schema
- uid integer
Possible values:
>= -1
UID for entities referenses. If value is
-1
, then it means that is no entity reference for this structure
{
"uid": 3
}
{
"uid": 3
}
Wrong JSON body
Log In