Skip to content
中文

Remove template tags

DELETE/sandbox/v1/templates/tags● Supported

Request body

  • namestringrequired

    Name of the template

  • tagsarrayrequired

    Tags to delete

Returns

204

Errors follow the E2B format — see error codes

Request

curl
curl -X DELETE https://api.deepraxis.com/sandbox/v1/templates/tags \
  -H "X-API-Key: $PRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"docs-template","tags":["stable"]}'
Python
import requests

api_key = "$PRAXIS_API_KEY"

# templateID and buildID come from the preceding create response; replace the example IDs.
resp = requests.request("DELETE", "https://api.deepraxis.com/sandbox/v1/templates/tags",
    headers={"X-API-Key": api_key},
    json={"name":"docs-template","tags":["stable"]},
)
print(resp.status_code, resp.text)
TypeScript
const apiKey = "$PRAXIS_API_KEY";

// templateID and buildID come from the preceding create response; replace the example IDs.
const resp = await fetch("https://api.deepraxis.com/sandbox/v1/templates/tags", { method: "DELETE",
  headers: { "X-API-Key": apiKey, "Content-Type": "application/json" },
  body: JSON.stringify({"name":"docs-template","tags":["stable"]}),
});
console.log(resp.status, await resp.text());

Response 204

(204 No Content:成功,无响应体)

Response

HTTP 204

Tags deleted successfully

No response body is declared.