ai
DELETE /v1/ai/images/credentials/{credentialId}
Stop using an image-provider key.
Autenticazione
Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione billing.manage; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.
curl -X DELETE https://api.zinndigital.com/v1/ai/images/credentials/{credentialId} \
-H "Authorization: Bearer zdk_live_…"Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API
Dettagli
Deletes the secret from Vault and marks the row revoked. **The row is kept**, because metered usage points at it. ⛔ The row is revoked even if the Vault delete fails: every read path filters on the revocation, so a key we cannot delete is still a key we will never use again — whereas a failed revoke that left the row live would keep charging the customer's provider account after they asked us to stop. Requires `billing.manage`.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
credentialId (path) | Uuid | Sì | — |
Errori che questo endpoint può restituire
401 · 403 · 404 · 429