Mutation
mutation CreateBusinessHoursOverride($input: CreateBusinessHoursOverrideInput!) {
createBusinessHoursOverride(input: $input) {
businessHoursOverride {
id
businessHoursScheduleId
name
startsOn
endsOn
slots {
date
opensAt
closesAt
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"businessHoursScheduleId": "id",
"name": "string",
"startsOn": "string",
"endsOn": "string"
}
}Response
{
"data": {
"createBusinessHoursOverride": {
"businessHoursOverride": {
"id": "id",
"businessHoursScheduleId": "id",
"name": "string",
"startsOn": "string",
"endsOn": "string",
"slots": [
{
"date": "string",
"opensAt": "string",
"closesAt": "string"
}
]
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createBusinessHoursOverride
Create an override that replaces a schedule’s weekly hours from startsOn to endsOn, e.g. a holiday. Can’t overlap another override on the same schedule. Requires the businessHours:create permission.
MUTATION
createBusinessHoursOverride(input: CreateBusinessHoursOverrideInput!): CreateBusinessHoursOverrideOutput!Arguments
input
required
businessHoursOverride
error
Mutation
mutation CreateBusinessHoursOverride($input: CreateBusinessHoursOverrideInput!) {
createBusinessHoursOverride(input: $input) {
businessHoursOverride {
id
businessHoursScheduleId
name
startsOn
endsOn
slots {
date
opensAt
closesAt
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"businessHoursScheduleId": "id",
"name": "string",
"startsOn": "string",
"endsOn": "string"
}
}Response
{
"data": {
"createBusinessHoursOverride": {
"businessHoursOverride": {
"id": "id",
"businessHoursScheduleId": "id",
"name": "string",
"startsOn": "string",
"endsOn": "string",
"slots": [
{
"date": "string",
"opensAt": "string",
"closesAt": "string"
}
]
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

