Reschedule pending reminders to a new timezone
post
https://api.expiryedge.com/v1/syncOrganizationTimezoneadmin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/syncOrganizationTimezone' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"organization_id": "org_northwind",
"new_timezone": "America/Denver"
}'Response
{
"message": "Timezone synced successfully",
"updated": 42,
"new_timezone": "America/Denver"
}Recomputes scheduled_at for every pending reminder in your organization using new_timezone (keeps each
reminder's local time). Does not change the organization's timezone setting itself.
organization_idstringrequiredMust be your own organization id.new_timezonestringrequiredValid IANA timezone.
200
Reminders rescheduled.
messagestringrequiredupdatedintegerrequirednew_timezonestringOmitted when there were no pending reminders.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
