/v1/management/schedules/{resource}/dates/{date}Behavior
PATCH the exact resource/date with only {previewId}, original If-Match and a durable UUID Idempotency-Key. The date_schedule receipt is immutable; current is a separate fresh day state. Known version/impact/expiry refusals require a new reviewed preview after resolving any earlier uncertain write.
Authentication
ManagementCredential
Credential rules
One server-only owner-issued wbm_ API key can carry both management and integration permissions. Additional permissions require an explicit owner-issued grant. GET /v1/management returns the management discovery view, which may be empty for a booking-only key. For credentials with appointments:read, this discovery view omits whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write to preserve calendar-client compatibility. Discover these grants through GET /v1/management/messaging-capabilities. Template/profile command authorization still uses the stored grants. Server-only owner-issued Management authority with explicit application permissions. Calling this API does not expand a credential's grants. contacts:read/write/block/sync/fields:read/fields:write are separate approvals for canonical business contacts; fields also require current typed owner grants. contacts:record remains contact recording/recovery only. These grants create no customer phone proof, booking authority, messaging consent or automatic synchronization. Hours/blocks retain their independent resource grants. booking-policy:read/write separately delegate whole-business booking settings, without schedule/provider grants; write requires read. They preserve existing appointments and create no duration-rewrite authority. Provider duration policy additionally requires explicit provider-booking-policy:read/write and exact current providerIds; booking-duration:rewrite is separately approved and does not itself grant policy read/write. Service catalogue requires explicit services:read/write, independent of provider/calendar/schedule resources; write requires read. These operations do not expand an existing credential's grants. Public presentation and reviewed service selection require explicit website-content:read/write; write requires read, independently from services:* and provider resources. Existing provider metadata/activity/assignment additionally requires providers:read/write and a nonempty explicit current providerIds grant; write requires read. This grants no provider creation, deletion, login, invitation or schedule authority. WhatsApp template/profile management requires separate whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write application scopes. Write requires its matching read scope. These grants require explicit owner approval; Meta OAuth permissions remain separate.
Business requires booking-policy:read and booking-policy:write. A provider requires provider-booking-policy:read and provider-booking-policy:write plus its explicit provider grant. Current authority is checked on replay and recovery.
Request
Idempotency and recovery
Keep the original operation UUID, resource/date, previewId and If-Match. Recover through GET management/operations/{operationId} or replay that exact PATCH; not_found does not cancel an in-flight command. A currently authorized replacement key for the same integration can recover the accepted operation.
resourcepath · oneOf (string | string)Requiredbusiness or an explicitly granted provider UUID
Format and constraints
{ "oneOf": [ { "const": "business" }, { "type": "string", "format": "uuid" } ] }datepath · stringRequiredFormat and constraints
{ "type": "string", "format": "date" }If-Matchheader · stringRequiredExact strong quoted date version returned by the date read.
Format and constraints
{ "type": "string", "pattern": "^\"ds:[a-f0-9]{64}\"$" }Idempotency-Keyheader · stringRequiredPersist one UUID before sending and reuse it until the result is resolved.
Format and constraints
{ "type": "string", "format": "uuid" }
Request body · required
application/json · DateScheduleApply
-
previewIdstring · uuidRequired -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"previewId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"previewId"
]
} Successful responses
Response headers
ETag — Strong quoted version of the returned current date state, which can be newer than the immutable receipt on replay.
200 · DateScheduleResult
Validated result. Existing appointments are preserved.
application/json · DateScheduleResult
-
receiptobjectRequiredView nested fields
-
operationIdstring · uuidRequired -
actionstringRequiredValue:
"date_schedule" -
resourceIdoneOf (string | string)RequiredExactly one of these variants must match.
View nested fields
-
oneOf 1stringSchema branchValue:
"business" -
oneOf 2string · uuidSchema branch
-
-
datestring · dateRequired -
dayHoursoneOf (object; allOf (unspecified) | null)RequiredExactly one of these variants must match.
View nested fields
-
oneOf 1object; allOf (unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
enabledbooleanRequired in this branch -
openstringOptional in this branchpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
closestringOptional in this branchpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
breaksarrayOptional in this branchmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
startstringRequired in this branchpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
endstringRequired in this branchpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
additionalPropertiesno value allowedSchema rule
-
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
enabledbooleanCondition predicateValue:
true
-
-
thenunspecifiedSchema ruleView branch fields and rules
-
openunspecifiedRequired in this branchPresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
closeunspecifiedRequired in this branchPresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
oneOf 2nullSchema branch
-
-
versionstringRequiredpattern:"^ds:[a-f0-9]{64}$" -
preservedAppointmentCountintegerRequiredminimum:0 -
additionalPropertiesno value allowedSchema rule
-
-
currentobjectRequiredView nested fields
-
resourceIdoneOf (string | string)RequiredExactly one of these variants must match.
View nested fields
-
oneOf 1stringSchema branchValue:
"business" -
oneOf 2string · uuidSchema branch
-
-
timezonestringRequiredminLength:1 -
datestring · dateRequired -
versionstringRequiredpattern:"^ds:[a-f0-9]{64}$" -
dayHoursobject; allOf (unspecified)RequiredAll of these schema rules apply together.
View nested fields
-
enabledbooleanRequired -
openstringOptionalpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
closestringOptionalpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
breaksarrayOptionalmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
startstringRequiredpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
endstringRequiredpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
additionalPropertiesno value allowedSchema rule
-
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
enabledbooleanCondition predicateValue:
true
-
-
thenunspecifiedSchema ruleView branch fields and rules
-
openunspecifiedRequired in this branchPresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
closeunspecifiedRequired in this branchPresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
weeklyHoursobject; allOf (unspecified)RequiredAll of these schema rules apply together.
View nested fields
-
enabledbooleanRequired -
openstringOptionalpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
closestringOptionalpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
breaksarrayOptionalmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
startstringRequiredpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
endstringRequiredpattern:"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" -
additionalPropertiesno value allowedSchema rule
-
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
enabledbooleanCondition predicateValue:
true
-
-
thenunspecifiedSchema ruleView branch fields and rules
-
openunspecifiedRequired in this branchPresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
closeunspecifiedRequired in this branchPresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
overriddenbooleanRequired -
additionalPropertiesno value allowedSchema rule
-
-
replayedbooleanRequired -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"receipt": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"action": {
"const": "date_schedule"
},
"resourceId": {
"oneOf": [
{
"const": "business"
},
{
"type": "string",
"format": "uuid"
}
]
},
"date": {
"type": "string",
"format": "date"
},
"dayHours": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"open": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"close": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"breaks": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"start": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"end": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
}
},
"required": [
"start",
"end"
]
},
"maxItems": 10
}
},
"required": [
"enabled"
],
"allOf": [
{
"if": {
"properties": {
"enabled": {
"const": true
}
}
},
"then": {
"required": [
"open",
"close"
]
}
}
]
},
{
"type": "null"
}
]
},
"version": {
"type": "string",
"pattern": "^ds:[a-f0-9]{64}$"
},
"preservedAppointmentCount": {
"type": "integer",
"minimum": 0
}
},
"required": [
"operationId",
"action",
"resourceId",
"date",
"dayHours",
"version",
"preservedAppointmentCount"
]
},
"current": {
"type": "object",
"additionalProperties": false,
"properties": {
"resourceId": {
"oneOf": [
{
"const": "business"
},
{
"type": "string",
"format": "uuid"
}
]
},
"timezone": {
"type": "string",
"minLength": 1
},
"date": {
"type": "string",
"format": "date"
},
"version": {
"type": "string",
"pattern": "^ds:[a-f0-9]{64}$"
},
"dayHours": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"open": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"close": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"breaks": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"start": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"end": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
}
},
"required": [
"start",
"end"
]
},
"maxItems": 10
}
},
"required": [
"enabled"
],
"allOf": [
{
"if": {
"properties": {
"enabled": {
"const": true
}
}
},
"then": {
"required": [
"open",
"close"
]
}
}
]
},
"weeklyHours": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"open": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"close": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"breaks": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"start": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
},
"end": {
"type": "string",
"pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
}
},
"required": [
"start",
"end"
]
},
"maxItems": 10
}
},
"required": [
"enabled"
],
"allOf": [
{
"if": {
"properties": {
"enabled": {
"const": true
}
}
},
"then": {
"required": [
"open",
"close"
]
}
}
]
},
"overridden": {
"type": "boolean"
}
},
"required": [
"resourceId",
"timezone",
"date",
"version",
"dayHours",
"weeklyHours",
"overridden"
]
},
"replayed": {
"type": "boolean"
}
},
"required": [
"receipt",
"current",
"replayed"
]
} Errors and recovery
Input validation
413REQUEST_TOO_LARGEThe JSON request body exceeds 8,192 bytes.
415JSON_REQUIREDSend Content-Type: application/json.
Error responses declared in the contract (10)
The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 403 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 404 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 409 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 410 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 412 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 422 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 428 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 429 · Structured refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 503 · Transient/uncertain result; retain the original command.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
}