Alojamiento

DELETE /api/hosting/:id

DELETE https://api.iagenify.com/api/hosting/ID

Referencia de DELETE /api/hosting/:id.

autenticación requeridasin cuerpo JSON

Solicitud HTTP

curl https://api.iagenify.com/api/hosting/ID -X DELETE -H "Authorization: Bearer $IAGENIFY_TOKEN"

JavaScript

const response = await fetch("https://api.iagenify.com/api/hosting/ID", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}` }
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);

Python

import os
import requests

response = requests.request("DELETE", "https://api.iagenify.com/api/hosting/ID", headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]}, timeout=30)
response.raise_for_status()
result = response.json()

Parámetros de ruta

idstringobligatorio

Valor de :id.

Respuesta y errores

Si la operación tiene éxito, el endpoint devuelve JSON.