OpenAI 删除组织支出提醒
2026-11-19 17:41 更新
删除组织支出提醒
delete /organization/spend_alerts/{alert_id}
删除组织支出提醒。
路径参数
alert_id: string
要删除的支出提醒 ID。
返回值
OrganizationSpendAlertDeleted object { id, deleted, object }
删除组织支出提醒后返回的确认载荷。
id: string
已删除的支出提醒 ID。
deleted: boolean
是否已删除支出提醒。
object: "organization.spend_alert.deleted"
固定为 organization.spend_alert.deleted。
"organization.spend_alert.deleted"
示例
## 使用组织管理员密钥删除支出提醒,将路径中的提醒 ID 换成实际值。
curl -X DELETE "https://api.openai.com/v1/organization/spend_alerts/alert_abc123" \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json"
响应示例
{
"id": "alert_abc123",
"object": "organization.spend_alert.deleted",
"deleted": true
}以上内容是否对您有帮助:

TRAE-AI编程


更多建议: