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
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 : v2-patch-quota-request
Type:
Show Source
object
-
areas:
array areas
Array of objects with quota information for each capacity area that should be updated
-
date:
string(date)
The date in 'YYYY-MM-DD' format.Example:
2023-12-01
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:
Show Source
object
-
categories:
array categories
-
intervals:
array intervals
-
label:
string
The label of the Capacity Area that should be updated.Example:
capacity_area
-
minQuota:
integer
The minimal quota value in minutes.Example:
200
-
quota:
integer
Quota value in minutes. This parameter is ignored if the area is not configured to enter quota in minutes. For the quota based on booking intervals null can be used to unset the value.Example:
800
-
quotaIsClosed:
boolean
Allows to open or close booking status at this level.Example:
false
-
quotaPercent:
number
The quota value in percent. This parameter is ignored If the area is not configured to enter quota in percent. For the quota based on intervals null can be used to unset the value.Example:
60
-
timeSlots:
array timeSlots
Nested Schema : categories
Type:
Show Source
array
-
Array of:
object 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:
Show Source
array
-
Array of:
object 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:
Show Source
array
-
Array of:
object v2-patch-quota-time-slots
Array of objects containing the quota information for each time slot.
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:
array intervals
-
label:
string
The label of the Capacity Category.Example:
DEINSTALL
-
minQuota:
integer
The minimal quota value in minutes.Example:
120
-
quota:
integer
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
-
quotaIsClosed:
boolean
Allows to open or close booking status at this level.Example:
false
-
quotaPercent:
number
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
-
quotaPercentCategory:
number
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
-
quotaPercentDay:
number
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
-
stopBookingAt:
integer
The percent of the used quota at which the booking of activities stops.Example:
90
-
workZones:
array workZones
Nested Schema : intervals
Type:
Show Source
array
-
Array of:
object v2-patch-quota-category-intervals
Array of objects containing the quota information for intervals within the Capacity Category
Nested Schema : v2-patch-quota-category-intervals
Type:
object
Array of objects containing the quota information for intervals within the Capacity Category
Show Source
-
quota:
integer
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:
180
-
quotaIsClosed:
boolean
Allows to open or close booking status at this level.Example:
false
-
timeFrom:
string
The start time of the time interval in HH:MM format.Example:
08:00
-
timeTo:
string
The end time of the time interval in HH:MM format.Example:
12:00
-
workZones:
array workZones
Nested Schema : v2-patch-quota-work-zones
Type:
Show Source
object
-
label:
string
Example:
WZ1
-
quotaIsClosed:
boolean
Example:
false
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
-
quotaIsClosed:
boolean
Allows to open or close booking status at this level.Example:
false
-
timeFrom:
string
The start time of the time interval in HH:MM format.Example:
08:00
-
timeTo:
string
The end time of the time interval in HH:MM format.Example:
12:00
Nested Schema : v2-patch-quota-time-slots
Type:
object
Array of objects containing the quota information for each time slot.
Show Source
-
categories:
array categories
-
label:
string
Label of the time slotExample:
8AM-11AM
-
minQuota:
integer
The minimal quota value in minutes.Example:
200
-
quota:
integer
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
-
quotaIsClosed:
boolean
Allows to open or close booking status at this level.Example:
false
-
quotaPercent:
number
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
-
stopBookingAt:
integer
The percent of the used quota at which the booking of activities stops.Example:
60
Nested Schema : categories
Type:
Show Source
array
-
Array of:
object v2-patch-quota-time-slot-categories
Array of objects containing the quota information for each Capacity Category.
Nested Schema : v2-patch-quota-time-slot-categories
Type:
object
Array of objects containing the quota information for each Capacity Category.
Show Source
-
label:
string
The label of the Capacity Category.Example:
DEINSTALL
-
minQuota:
integer
The minimal quota value in minutes.Example:
60
-
quota:
integer
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
-
quotaIsClosed:
boolean
Allows to open or close booking status at this level.Example:
false
-
quotaPercent:
integer
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
-
stopBookingAt:
integer
The percent of the used quota at whitch the booking of activities stops.Example:
80
-
workZones:
array workZones
Response
Supported Media Types
- application/json
- application/schema+json
200 Response
This section describes the success response for this operation.
Root Schema : v2-patch-quota-result
Type:
Show Source
object
-
errors:
array errors
List of error messages related to current request
-
errorsCount:
integer
Example:
0
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object
-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.