Create or update quota

patch

/rest/ofscCapacity/v2/quota

The function allows to modify the quota information for set of days on different quota levels - Capacity Areas, Capacity Categories, Time slots or Intervals. The quota values can be retreived from various levels accordingly to the quota type configuration of each particular Capacity Area.

Request

Body ()
The schema of the request body parameters.
Root Schema : v2-patch-quota
Type: object
Array of objects with quota information for each date that should be updated
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : v2-patch-quota-request
Type: object
Show Source
Nested Schema : areas
Type: array
Array of objects with quota information for each capacity area that should be updated
Show Source
Nested Schema : v2-patch-quota-area
Type: object
Show Source
Nested Schema : categories
Type: array
Show Source
  • v2-patch-quota-categories
    Array of objects with quota information for each capacity category that should be updated. This list only accepted for Capacity Areas with quota by intervals configuration.
Nested Schema : intervals
Type: array
Show Source
  • v2-patch-quota-intervals
    Array of objects containing the daily statuses of intervals. At this level an interval may be closed for all Capacity Categories of the area. Quota cannot be specified at this level.
Nested Schema : timeSlots
Type: array
Show Source
Nested Schema : v2-patch-quota-categories
Type: object
Array of objects with quota information for each capacity category that should be updated. This list only accepted for Capacity Areas with quota by intervals configuration.
Show Source
  • intervals
  • The label of the Capacity Category.
    Example: DEINSTALL
  • The minimal quota value in minutes.
    Example: 120
  • The quota value in minutes. This parameter is ignored if the area is not configured to enter quota in minutes at this level. null can be used to unset the value.
    Example: 240
  • Allows to open or close booking status at this level.
    Example: false
  • The quota value as a percent of the daily quota value of the capacity category. This parameter is ignored if the area is not configured to enter quota as percent of quota defined on parent level.
    Example: 15
  • The quota value defined as a percent of the Max Available value of the Capacity Category. This parameter is ignored if the area is not configured to enter quota as percent of maximum capacity available in the category.
    Example: 30
  • The quota value as a percent of the daily quota value of the capacity category. This parameter is ignored if the area is not configured to enter quota as percent of quota defined on parent level.
    Example: 15
  • The percent of the used quota at which the booking of activities stops.
    Example: 90
  • workZones
Nested Schema : intervals
Type: array
Show Source
Nested Schema : workZones
Type: array
Show Source
Nested Schema : v2-patch-quota-category-intervals
Type: object
Array of objects containing the quota information for intervals within the Capacity Category
Show Source
Nested Schema : workZones
Type: array
Show Source
Nested Schema : v2-patch-quota-work-zones
Type: object
Show Source
Nested Schema : v2-patch-quota-intervals
Type: object
Array of objects containing the daily statuses of intervals. At this level an interval may be closed for all Capacity Categories of the area. Quota cannot be specified at this level.
Show Source
Nested Schema : v2-patch-quota-time-slots
Type: object
Array of objects containing the quota information for each time slot.
Show Source
  • categories
  • Label of the time slot
    Example: 8AM-11AM
  • The minimal quota value in minutes.
    Example: 200
  • The quota value in minutes. This parameter is ignored if the area is not configured to enter quota in minutes at this level.
    Example: 540
  • Allows to open or close booking status at this level.
    Example: false
  • The quota value as a percent of the day level or as a percent of max available for time slot depending on the configuration. This parameter is ignored if the area is not configured to enter quota as percent.
    Example: 30
  • The percent of the used quota at which the booking of activities stops.
    Example: 60
Nested Schema : categories
Type: array
Show Source
Nested Schema : v2-patch-quota-time-slot-categories
Type: object
Array of objects containing the quota information for each Capacity Category.
Show Source
  • The label of the Capacity Category.
    Example: DEINSTALL
  • The minimal quota value in minutes.
    Example: 60
  • The quota value in minutes. This parameter is ignored If the area is not configured to enter quota in minutes at this level.
    Example: 360
  • Allows to open or close booking status at this level.
    Example: false
  • The quota value as a percent of the day level or as a percent of max available for time slot depending on the configuration . This parameter is ignored If the area is not configured to enter quota as percent .
    Example: 30
  • The percent of the used quota at whitch the booking of activities stops.
    Example: 80
  • workZones
Nested Schema : workZones
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

This section describes the success response for this operation.
Body ()
Root Schema : v2-patch-quota-result
Type: object
Show Source
Nested Schema : errors
Type: array
List of error messages related to current request
Show Source

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top