Reschedule pending reminders to a new timezone

posthttps://api.expiryedge.com/v1/syncOrganizationTimezone
admin60/minJede Methode
Anfrage
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"
}'
Antwort
{
  "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.

Body-Parameter

application/json
  • organization_idstringerforderlich
    Must be your own organization id.
  • new_timezonestringerforderlich
    Valid IANA timezone.

Rückgabe

200
Reminders rescheduled.
  • messagestringerforderlich
  • updatedintegererforderlich
  • new_timezonestring
    Omitted when there were no pending reminders.

Fehler

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.