刪除使用者設定檔
DELETE/v1/user_profiles/{user_profile_id}
刪除使用者設定檔,例如在終端客戶關閉其帳戶時。
請先停止傳送該設定檔的 ID。請參閱使用者設定檔指南,了解刪除後會發生什麼情況。
Parameters
Returns
刪除使用者設定檔
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
deleted_user_profile = anthropic.user_profiles.delete("uprof_011CZkZCu8hGbp5mYRQgUmz9")
puts(deleted_user_profile)Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}