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

    Possible values: <= 100 characters

    Name of the time profile

  • time_options object required

    Time options of the time profile

  • is_all_day boolean required

    Determines if all day used for checking access, from 00.00 to 23.59

  • date_from object

    Unix Timestamp Date

  • date_to object

    Unix Timestamp Date

  • repeat_options object required

    The model describes repeat option for time range in Time profile

  • repeat_enable boolean required

    Determines if repeat function enabled

  • repeat_format object

    The model describes repeat format in time profile

  • repeat_type string required

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

    Period of repeating

  • repeat_end object required

    Describes repeat period end. date key required if date format was chosen

  • format string required

    Possible values: [never, date]

    Repeat period ending options

  • 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 type options

  • repeat_looper integer required

    Possible values: >= 1 and <= 1000

    Number of repeats

  • repeat_options object

    Repeat settings

    oneOf

  • string

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

    Week day representation

Responses

The id value returned in the response can be used as the time-profile-id parameter in:

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

Schema
  • id integer

    Possible values: >= -1

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

Loading...