Mutation
mutation SyncBusinessHoursSlots($input: SyncBusinessHoursSlotsInput!) {
syncBusinessHoursSlots(input: $input) {
slots {
timezone {
name
}
weekday
opensAt
closesAt
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"slots": [
{
"timezone": "string",
"weekday": "MONDAY",
"opensAt": "string",
"closesAt": "string"
}
]
}
}Response
{
"data": {
"syncBusinessHoursSlots": {
"slots": [
{
"timezone": {
"name": "string"
},
"weekday": "MONDAY",
"opensAt": "string",
"closesAt": "string"
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
syncBusinessHoursSlots
Replace the workspace’s business hours with the provided set of slots. Deprecated — use createBusinessHoursSchedule or updateBusinessHoursSchedule instead, which support multiple named schedules. Only works while the workspace has exactly one business hours schedule; otherwise it returns an error. Requires the businessHours:edit permission.
MUTATION
deprecated
syncBusinessHoursSlots(input: SyncBusinessHoursSlotsInput!): SyncBusinessHoursSlotsOutput!Use createBusinessHoursSchedule or updateBusinessHoursSchedule instead.
Arguments
input
required
Returns
slots
error
Mutation
mutation SyncBusinessHoursSlots($input: SyncBusinessHoursSlotsInput!) {
syncBusinessHoursSlots(input: $input) {
slots {
timezone {
name
}
weekday
opensAt
closesAt
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"slots": [
{
"timezone": "string",
"weekday": "MONDAY",
"opensAt": "string",
"closesAt": "string"
}
]
}
}Response
{
"data": {
"syncBusinessHoursSlots": {
"slots": [
{
"timezone": {
"name": "string"
},
"weekday": "MONDAY",
"opensAt": "string",
"closesAt": "string"
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

