hosting

GET /v1/wordpress/cli-commands

The WP-CLI commands the console will run.

Alle hosting 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 GET https://api.zinndigital.com/v1/wordpress/cli-commands \
  -H "Authorization: Bearer zdk_live_…"

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

The allow-list, served rather than copied into each client. ⛔ A client-side copy is a second authority that starts identical and drifts: the day a command is added, a stale client keeps refusing it while the engine runs it happily, and the day one is removed the client offers a command that answers `422`. Platform-wide and identical for every customer; names no site. Requires authentication only.

Antwort

NameTypErforderlichWas es ist
datastring[]JaPermitted commands, space-joined, sorted.

Fehler, die dieser Endpunkt zurückgeben kann

401 · 429