Skip to main content

Create Time Profile Entity

Create Time Profile Entity. It describes access rules which can be attached to identifiers.

Request Body required
  • name string required

    Timeprofile name

  • time_options object required

    This model represents Timeprofile options

  • is_all_day boolean required

    Is all day enabled

  • date_from int64 required

    Unix Timestamp Date

  • date_to int64 required

    Unix Timestamp Date

  • repeat_options object required

    The model describes repeat option for time range in Timeprofile

  • repeat_enable boolean required

    If repeat enabled

  • repeat_format object

    The model describes repeat format in Timeprofile

  • repeat_type string required

    Possible values: [day, week, twoWeeks, month, year, custom]

    Repeat type

  • repeat_end object required

    date key required if date format was chosen

  • format string required

    Possible values: [never, date]

    Repeat end type

  • date int64

    Unix Timestamp Date

  • repeat_custom object

    Only for custom repeat type

  • repeat_point_type string required

    Possible values: [day, week, month, year]

    Repeat point type

  • repeat_looper integer required

    Possible values: >= 1 and <= 1000

    Repeat looper

  • repeat_options object

    Repeat options

    oneOf

  • string

    Possible values: [MON, TUE, WED, THU, FRI, SAT, SUN]

    Week days

Responses

The uid value returned in the response can be used as the timeprofile-uid parameter in:

  • GET /access/timeprofile/item/{timeprofile-uid}
  • to get info about time profile
  • PATH /access/timeprofile/item/{timeprofile-uid}
  • to update time profile
  • DELETE /access/timeprofile/item/{timeprofile-uid}
  • to remove time profile
  • POST /access/identifier/item/{identifier-uid}/timeProfile/{timeprofile-uid}
  • to attach time profile to identifier with id identifier-uid
  • DELETE /access/identifier/item/{identifier-uid}/timeProfile/{timeprofile-uid}
  • to detach time profile from identifier with id identifier-uid

Schema
  • uid integer

    Possible values: >= -1

    UID for entities references. If value is -1, then it means that is no entity reference for this structure

Loading...