links

POST /v1/content/run-schedules

Post to these sites every N hours.

Alle links Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Dieser Endpunkt gibt in der Spezifikation keine spezifische Berechtigung an. Versehen Sie Ihren Schlüssel daher mit den minimal erforderlichen Rechten und prüfen Sie die Antwort, anstatt Annahmen zu treffen.

Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

Creates a cadence. The first run happens one interval from now, not immediately — a customer setting up a daily schedule at 4pm expects one tomorrow, not one before they have finished reading the form. Gated on `links.edit`. The cadence is served by a durable workflow on the worker, not by a job that calls this API back, so a scheduled run behaves identically to one started by hand. Minimum interval is one hour: anything finer on a private network is a footprint.

Anfragekörper

NameTypErforderlichWas es ist
briefstringNein
site_idsstring[]Nein
anchorsContentRunAnchor[]Nein
categorystringNein
publish_policyContentRunPublishPolicyNeinHow far a run may go on its own. `draft_only` is the default and puts nothing live.
interval_hoursintegerNein
enabledbooleanNein
recipe_idstringNein

Antwort

NameTypErforderlichWas es ist
idstringJa
enabledbooleanJa
interval_hoursintegerJa
next_run_atstringJa
last_run_atstringNein
last_run_idstringNein
briefstringJa
categorystringNein
publish_policyContentRunPublishPolicyJaHow far a run may go on its own. `draft_only` is the default and puts nothing live.
site_idsstring[]Ja
recipe_idstringNein

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 422