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

    time profile name

  • time_options object required

    time profile time options

  • is_all_day boolean required

    is enabled for whole day

  • 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

    describes feature status, true - on / false - off

  • repeat_format object

    The model describes repeat format in Timeprofile

  • repeat_type string required

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

    how often time profile will repeat

  • repeat_end object required

    sets when time profile repeat event ends

  • format string required

    Possible values: [never, date]

    date key required if date format was chosen

  • date int64 required

    Unix Timestamp Date

  • repeat_custom object

    Only for custom repeat type

  • repeat_point_type string required

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

    custom repeat type

  • repeat_looper integer required

    Possible values: >= 1 and <= 1000

    repeat loop

  • repeat_options object

    different options for each repeat type

    oneOf

  • string

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

    days of the week

Responses

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 profile
  • PATH /access/timeprofile/item/{timeProfileUid} - to update time profile
  • DELETE /access/timeprofile/item/{timeProfileUid} - to remove time profile
  • POST /access/identifiers/item/{identifierUid}/timeProfile/{timeProfileUid} - to attach time profile to identifier with id identifierUid
  • DELETE /access/identifiers/item/{identifierUid}/timeProfile/{timeProfileUid} - to detach time profile from identifier with id identifierUid

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

Loading...