Set a member's working hours
https://api.norreach.app/v1/members/{id}/scheduleSets a member's working hours (per weekday: start and end HH:MM, on or off — days left out stay as they are), their time zone, whether their schedule is fixed or flexible, and whether they're taking calls now. Checked on the server: each day once, end after start, a real time zone. Owners, admins and managers, for anyone in the workspace. dry_run=true answers it as it would be saved.
curl -X PUT "https://api.norreach.app/v1/members/{id}/schedule" \
-H "Authorization: Bearer $NORREACH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"timezone": "Europe/Stockholm",
"hours": [
{
"day_of_week": 5,
"start": "08:00",
"end": "14:00",
"enabled": true
}
]
}'{
"object": "member_schedule",
"member_id": "8e9f0a1b-2c3d-4e4f-9a5b-6c7d8e9f0a1b",
"timezone": "Europe/Stockholm",
"schedule_type": "scheduled",
"is_online": true,
"hours": [
{
"day_of_week": 1,
"start": "08:00",
"end": "16:30",
"enabled": true
},
{
"day_of_week": 2,
"start": "08:00",
"end": "16:30",
"enabled": true
},
{
"day_of_week": 3,
"start": "08:00",
"end": "16:30",
"enabled": true
},
{
"day_of_week": 4,
"start": "08:00",
"end": "16:30",
"enabled": true
},
{
"day_of_week": 5,
"start": "08:00",
"end": "16:30",
"enabled": true
}
],
"source": "manual"
}Authorizations
Bearer authentication: send Authorization: Bearer <key>, with an API key or an OAuth access token. The key needs the scope team:schedules. API keys and scopes
Path parameters
An id (UUID).
Query parameters
Run every check and return what would happen, changing nothing.
Headers
Any unique string (≤ 255). The same key with the same request returns the first answer for 24 hours.
Body
application/json
scheduledflexibleDays left out stay as they are.
Show child attributesHide child attributes
0 = Sunday … 6 = Saturday.
HH:MM, 24-hour (24:00 = midnight at the end of the day).
HH:MM, 24-hour (24:00 = midnight at the end of the day).
Response
200application/json— Set a member's working hours
An id (UUID).
scheduledflexibleTaking calls now (the team's hold queue and inbound routing read it).
Show child attributesHide child attributes
0 = Sunday … 6 = Saturday.
HH:MM, 24-hour (24:00 = midnight at the end of the day).
HH:MM, 24-hour (24:00 = midnight at the end of the day).
default = none saved yet: Monday–Friday 09:00–17:00 in the workspace's time zone, as the app assumes.
manualcalendardefaultErrors
Errors are application/problem+json with a stable code.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request couldn't be read. |
| 400 | unknown_field | The request has a field this operation doesn't know. |
| 401 | unauthorized | A valid API key is required. |
| 403 | insufficient_scope | This API key doesn't have the scope this operation needs. |
| 403 | feature_not_enabled | The API isn't switched on for this workspace. |
| 403 | role_forbidden | The key's creator's role can't do this. |
| 404 | not_found | That doesn't exist. |
| 409 | idempotency_in_progress | A request with this Idempotency-Key is still running. |
| 413 | too_large | The request body is too large. |
| 422 | validation_failed | The request has invalid fields. |
| 422 | idempotency_mismatch | This Idempotency-Key was used with a different request. |
| 429 | rate_limited | Too many requests. Slow down and try again. |
| 500 | server_error | Something went wrong on our side. |
| 503 | unavailable | The API isn't available right now. Try again shortly. |