Replace a request's reminder schedule

posthttps://api.expiryedge.com/v1/updateCollectionRequestReminders
editor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/updateCollectionRequestReminders' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "requestId": "req_9WkT",
  "reminders": [
    {
      "firestore_id": "rem_5Gh1",
      "amount": 3,
      "time_unit": "day",
      "time": "09:00"
    },
    {
      "amount": 1,
      "time_unit": "week",
      "time": "10:30"
    }
  ]
}'
Antwort
{
  "message": "Reminder schedule updated",
  "updated": 1,
  "created": 1,
  "deleted": 0,
  "reminders": [
    {
      "id": "rem_5Gh1",
      "request_id": "req_9WkT",
      "organization_id": "org_northwind",
      "user_id": "u_71bXq",
      "amount": 3,
      "time_unit": "day",
      "period": "after",
      "time": "09:00",
      "timezone": "America/New_York",
      "reminder_date": "2026-09-30T14:05:00.000Z",
      "scheduled_at": "2026-09-30T13:00:00.000Z",
      "status": "pending",
      "sent_at": null,
      "error_message": null,
      "created_at": "2026-09-27T14:05:00.000Z",
      "updated_at": "2026-09-27T14:05:00.000Z"
    }
  ]
}

Reminders are matched to existing ones by firestore_id (or amount/unit), updated, created or deleted; [] removes all. Max 20, counted from the request's send time. The handler does not check the HTTP method.

Body-Parameter

application/json
  • requestIdstringerforderlich
  • remindersarray of objectserforderlich
    max items: 20

Rückgabe

200
Schedule updated.
  • messagestringerforderlich
  • updatedintegererforderlich
  • createdintegererforderlich
  • deletedintegererforderlich
  • remindersarray of objectserforderlich

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
403
Your role does not allow this, or the record belongs to another organization ({"error": "Access denied"}).
404
The record does not exist or is not in your organization.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.