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. Each slot defines a weekday, a timezone, and open/close times (HH:MM format). Passing an empty array clears all business hours. This mutation is idempotent and completely replaces any existing slots, including any previously set via the deprecated upsertBusinessHours mutation. Requires the businessHours:edit permission.
MUTATION
syncBusinessHoursSlots(input: SyncBusinessHoursSlotsInput!): SyncBusinessHoursSlotsOutput!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?

