Autosave the recipient's progress

posthttps://api.expiryedge.com/v1/saveCollectionRequestDraft
Öffentlich - kein API-Schlüssel60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/saveCollectionRequestDraft' \
  -H "Content-Type: application/json" \
  -d '{
  "token": "3f9a1c7e5b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
  "responses": {
    "fld_company_name": "Northwind Dental LLC"
  },
  "files": [],
  "lastPageId": "p_company"
}'
Antwort
{
  "message": "Draft saved",
  "filled_count": 1,
  "total_fields": 3
}

Replaces the saved draft (answers, uploaded file references and current page). Invalid values are dropped silently rather than rejected. Returns 410 once the request is no longer open. The handler does not check the HTTP method.

Header

  • X-Collection-Passwordstring
    Request password, when the sender set one. Preferred over the password body field / query parameter.

Body-Parameter

application/json
  • tokenstringerforderlich
    The token from the request link.
    pattern: ^[a-f0-9]{64}$
  • passwordstring
    Request password, when set (or use the X-Collection-Password header).
  • responsesobject
    Field id -> answer. Types: text/phone/long_text string, number number, date ISO string, checkbox boolean, dropdown/radio one of options, multi_select array of options, address object {line1, line2, city, state, postal_code, country}.
  • filesarray of objects
  • lastPageIdstring
    max length: 200

Rückgabe

200
Draft saved.
  • messagestringerforderlich
  • filled_countintegererforderlich
  • total_fieldsintegererforderlich

Fehler

400
Malformed token (Invalid link) or invalid input.
401
The request has a password and it is missing ({"requiresPassword": true}) or wrong.
403
The sender paused this request.
404
Unknown token (link rotated, deleted or mistyped), or the template no longer exists.
410
The request was cancelled, already completed (alreadySubmitted: true) or has expired.
429
Password locked out after 5 wrong attempts (15 minutes, per request).
500
Unexpected server error.