Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Business → Set Business Hours

AI-generated

Summary

Sets business hours for a ZeDAPI business resource with optional mode, timezone, schedule, and request settings

Inputs

  • timezone (required) — The timezone for business hours (IANA format)
  • mode (required) — The business hours mode (always_open, appointment_only, specific_hours)
  • daysJson — JSON array of day configurations with open/close hours (used when mode is specific_hours)
  • requestOptions — Additional request configuration including batching, SSL validation, proxy, and timeout options.
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation fails.
  • proxy — HTTP proxy to use, optionally with authentication credentials.
  • timeout — Timeout in milliseconds to wait for server response

Output shape

no body — success/failure only

Returns HTTP 204 on success; errors are returned as API error objects (e.g., 4xx/5xx).

Examples

Example 1: Configure business hours to be always open

Set mode to always_open; timezone can be provided; other fields omitted.

Example 2: Set specific hours for weekdays 9am-5pm in São Paulo timezone

mode specific_hours; timezone America/Sao_Paulo; daysJson with schedule for Monday-Friday 09:00-17:00; optional batching settings.

Links

Discussion