LiveChatBans: delete
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
특정 사용자가 실시간 채팅에 참여할 수 없도록 차단하여 해당 사용자가 채팅에 다시 참여할 수 있도록 합니다. API 요청은 채널 소유자 또는 차단과 관련된 실시간 채팅 운영자의 승인을 받아야 합니다.
일반적인 사용 사례
요청
HTTP 요청
DELETE https://www.googleapis.com/youtube/v3/liveChat/bans
승인
이 요청을 처리하려면 다음 범위 중 하나 이상을 사용한 승인이 필요합니다. 인증 및 승인에 대한 자세한 내용은 OAuth 2.0 인증 구현을 참조하세요.
범위 |
https://www.googleapis.com/auth/youtube |
https://www.googleapis.com/auth/youtube.force-ssl |
매개변수
다음 표에는 이 쿼리가 지원하는 매개변수가 나와 있습니다. 나열된 모든 매개변수는 쿼리 매개변수입니다.
매개변수 |
필수 매개변수 |
id |
string
id 매개변수는 삭제할 채팅 차단을 식별합니다. 이 값은 차단과 채팅을 모두 고유하게 식별합니다. |
요청 본문
이 메소드를 호출할 때 요청 본문을 제공하지 마세요.
대답
성공하면 이 메서드가 HTTP 204 No Content
상태 코드를 반환합니다.
오류
다음 표에서는 이 메서드 호출에 대한 응답으로 API가 반환할 수 있는 오류 메시지를 보여줍니다. 자세한 내용은 오류 메시지를 참고하세요.
오류 유형 |
오류 세부정보 |
설명 |
forbidden (403) |
forbidden |
지정된 차단을 삭제할 수 없습니다. 이 오류는 한 운영자가 다른 운영자에 대한 차단을 해제하려는 시도를 승인한 경우 발생할 수 있습니다. |
forbidden (403) |
insufficientPermissions |
지정된 차단을 삭제하는 데 필요한 권한이 없습니다. |
invalidValue (400) |
invalidLiveChatBanId |
id 매개변수가 잘못된 값을 지정합니다. |
notFound (404) |
liveChatBanNotFound |
지정된 차단을 찾을 수 없습니다. |
사용해 보기
APIs Explorer를 사용하여 이 API를 호출하고 API 요청 및 응답을 확인합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-07-11(UTC)
[null,null,["최종 업데이트: 2024-07-11(UTC)"],[],[],null,["# LiveChatBans: delete\n\nRemoves a ban that prevents a specific user from contributing to a live chat, thereby enabling the user to rejoin the chat. The API request must be authorized by the channel owner or a moderator of the live chat associated with the ban.\n\nCommon use cases\n----------------\n\nThe list below shows common use cases for this method. Hover over a use case to see its description, or click on a use case to load sample parameter values in the APIs Explorer. You can open the [fullscreen APIs Explorer](#) to see code samples that dynamically update to reflect the parameter values entered in the Explorer.\n\nThe table below shows common use cases for this method. You can click on a use case name to load sample parameter values in the APIs Explorer. Or you can see code samples for a use case in the fullscreen APIs Explorer by clicking on the code icon below a use case name. In the fullscreen UI, you can update parameter and property values and the code samples will dynamically update to reflect the values you enter. \nThis method has one common use case, which is described below. The buttons below the description populate the APIs Explorer with sample values or open the fullscreen APIs Explorer to show code samples that use those values. The code samples also dynamically update if you change the values.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nDELETE https://www.googleapis.com/youtube/v3/liveChat/bans\n```\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes. To read more\nabout authentication and authorization, see [Implementing OAuth 2.0 authentication](/youtube/v3/live/authentication).\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/youtube` |\n| `https://www.googleapis.com/auth/youtube.force-ssl` |\n\n### Parameters\n\nThe following table lists the parameters that this query supports. All of the parameters listed are query parameters.\n\n| Parameters ||\n|------|---------------------------------------------------------------------------------------------------------------------------|---|\n| **Required parameters** |||\n| `id` | `string` The **id** parameter identifies the chat ban to remove. The value uniquely identifies both the ban and the chat. |\n\n### Request body\n\nDo not provide a request body when calling this method.\n\nResponse\n--------\n\nIf successful, this method returns an HTTP `204 No Content` status code.\n\nErrors\n------\n\nThe following table identifies error messages that the API could return in response to a call to\nthis method. For more details, see [error message](/youtube/v3/live/docs/errors).\n\n| Error type | Error detail | Description |\n|----------------------|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `forbidden (403)` | `forbidden` | The specified ban cannot be removed. This error can occur if the request is authorized by one moderator who is attempting to remove a ban on another moderator. |\n| `forbidden (403)` | `insufficientPermissions` | You do not have the necessary permissions to remove the specified ban. |\n| `invalidValue (400)` | `invalidLiveChatBanId` | The `id` parameter specifies an invalid value. |\n| `notFound (404)` | `liveChatBanNotFound` | The specified ban cannot be found. |\n\nTry it!\n-------\n\nUse the APIs Explorer to call this API and see the API request and response."]]