Skip to main content
POST
/
organizations
/
{orgId}
/
office-hours
Set office hours
curl --request POST \
  --url https://api.helloannie.com/v1/organizations/{orgId}/office-hours \
  --header 'Content-Type: application/json' \
  --data '
{
  "dayOfWeek": "MONDAY",
  "isClosed": true,
  "open": "<string>",
  "close": "<string>"
}
'
{
  "success": true,
  "data": {
    "dayOfWeek": "MONDAY",
    "isClosed": true,
    "open": "<string>",
    "close": "<string>"
  }
}

Path Parameters

orgId
string<uuid>
required

The ID of the organization

Body

Payload to create or update office hours for a specific day

dayOfWeek
enum<string>
required
Available options:
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
isClosed
boolean
required

Whether the office is closed on this day. When true, open and close times are not required.

open
string

Opening time in HH:mm format (e.g., '09:00'). Required when isClosed is false.

Pattern: ^([01]?[0-9]|2[0-3]):[0-5][0-9]$
close
string

Closing time in HH:mm format (e.g., '17:00'). Required when isClosed is false.

Pattern: ^([01]?[0-9]|2[0-3]):[0-5][0-9]$

Response

Response returned when retrieving or updating office hours for a single day

success
enum<boolean>
required
Available options:
true
data
object
required

Office hours for a specific day of the week