Add Serving Periods
post
/config/sim/v2/setup/servingPeriods
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
Serving period insert and update request body
Root Schema : schema
Type:
object
Model for Serving Period Object Insert and Update Request
Show Source
-
activeDaysOfWeek:
string
A string of values 0s and 1s of length 7 representing the days of the week when the serving period is active, starting with Sunday.Example:
1111111
-
dataExtensions:
array dataExtensions
An array of data extensions for the serving period
-
defaultMainLevel:
integer
The object number of the Default Main Level to use when the serving period is active. Valid range is [0-8].Example:
1
-
defaultSubLevel:
integer
The object number of the Default Sub Level to use when the serving period is active. Valid range is [0-8].Example:
1
-
endTime:
string
End time of the serving period in 24-hour HH:MM format.Example:
11:59
-
hierUnitId(required):
integer
Unique reference of the hierarchy unit where the serving period is configured.Example:
3599
-
name(required):
object name
Serving period name
-
objectNum(required):
integer
Object number of the serving period.Example:
1
-
startTime:
string
Start time of the serving period in 24-hour HH:MM format.Example:
03:00
-
tableCount:
integer
Determines the number of tables available during the serving period.Example:
12
-
taxesEnabled:
string
A string of values 0s and 1s of length 64 representing the tax rates used when the serving period is active.Example:
1000000000000000000000000000000000000000000000000000000000000001
Nested Schema : dataExtensions
Type:
array
An array of data extensions for the serving period
Show Source
Nested Schema : name
Type:
object
Serving period name
Example:
{
"1":"Enterprise",
"2":"Unternehmen",
"3":"Empresa"
}
Nested Schema : items
Type:
Show Source
object
-
columnName:
string
Name of the extention fieldExample:
extension_Column
-
value:
string
Value of the extension fieldExample:
value1
Response
Supported Media Types
- application/json
200 Response
Insert operation executed successfully.
Root Schema : schema
Type:
Show Source
object
-
hierUnitId:
integer
Unique hierarchy unit value.Example:
1
-
objectNum:
integer
Object number of the serving periodExample:
1