删除构建标签
DELETE
/e2b/templates/tags● 支持请求体
namestring必填Name of the template
tagsarray必填Tags to delete
返回
204
错误按 E2B 格式返回,参见 错误码
请求示例
curl
curl -X DELETE https://api.deepraxis.com/e2b/templates/tags \
-H "X-API-Key: $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"docs-template","tags":["stable"]}'Python
import requests
opts = dict(
api_key="$PRAXIS_API_KEY",
api_url="https://api.deepraxis.com/e2b",
domain="sandbox.praxisusercontent.com",
)
# templateID and buildID come from the preceding create response; replace the example IDs.
resp = requests.request("DELETE", opts["api_url"] + "/templates/tags",
headers={"X-API-Key": opts["api_key"]},
json={"name":"docs-template","tags":["stable"]},
)
print(resp.status_code, resp.text)TypeScript
const opts = {
apiKey: "$PRAXIS_API_KEY",
apiUrl: "https://api.deepraxis.com/e2b",
domain: "sandbox.praxisusercontent.com",
};
// templateID and buildID come from the preceding create response; replace the example IDs.
const resp = await fetch(opts.apiUrl + "/templates/tags", { method: "DELETE",
headers: { "X-API-Key": opts.apiKey, "Content-Type": "application/json" },
body: JSON.stringify({"name":"docs-template","tags":["stable"]}),
});
console.log(resp.status, await resp.text());响应示例 204
(204 No Content:成功,无响应体)响应
HTTP 204
Tags deleted successfully
未声明响应体。