# removePublicChannel

Source: <https://telegafirst.com/docs/api-op-removepublicchannel>
Locale: ru
releaseGitSha: 005a4dc9d76f69a0815df4e3f98b9050d4d46afb
sourceContentDigest: 50c1fcd46179a51723e9266700f2b0b524b80ef5a6ce5066bd3a53fbcef22949
Version: 5

# removePublicChannel

`DELETE /api/v1/tools/public-channels/{channel}`

Unbind the public channel of one messenger

## Авторизация и права

Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.

| Поле | Значение |
| - | - |
| security.0.hubApiKey | \[] |
| security.1.hubBearer | \[] |
| securitySchemes.hubApiKey.in | "header" |
| securitySchemes.hubApiKey.name | "X-Api-Key" |
| securitySchemes.hubApiKey.type | "apiKey" |
| securitySchemes.hubBearer.scheme | "bearer" |
| securitySchemes.hubBearer.type | "http" |
| x-required-scopes | \["public-channel:write"] |

## Параметры запроса

| Поле | Значение |
| - | - |
| 0.in | "path" |
| 0.name | "channel" |
| 0.required | true |
| 0.schema | [0.schema](https://telegafirst.com/docs/schema-40154830306e66d3d03952dd53e5fd93db19c444ad28259a3bbc9596a51c0c7c) |

## Тело запроса

| Поле | Значение |
| - | - |
| Тело запроса | null |

## Ответы

| Поле | Значение |
| - | - |
| 200.content.application/json.schema | [PublicChannelRemoveResult](https://telegafirst.com/docs/schema-70aa64e98476603f2ea0c2a9a00f7ba32870096c6fcae9973447dbaba3494d0c) |
| 200.description | "Unbound or nothing to unbind" |

## Ошибки

| Поле | Значение |
| - | - |
| 400.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-47fdf0d8395ef5a30fe38dcbde38e65bcdd30fe0fcf5d639ae3a647e01aef684) |
| 400.description | "VALIDATION\_ERROR: unknown messenger" |
| 401.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-47fdf0d8395ef5a30fe38dcbde38e65bcdd30fe0fcf5d639ae3a647e01aef684) |
| 401.description | "INVALID\_API\_KEY" |
| 403.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-47fdf0d8395ef5a30fe38dcbde38e65bcdd30fe0fcf5d639ae3a647e01aef684) |
| 403.description | "INSUFFICIENT\_SCOPE: public-channel:\* (a member needs the settings permission)" |
| 429.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-47fdf0d8395ef5a30fe38dcbde38e65bcdd30fe0fcf5d639ae3a647e01aef684) |
| 429.description | "RATE\_LIMIT\_EXCEEDED or RATE\_LIMIT\_UNAVAILABLE" |

## Дополнительные условия

| Поле | Значение |
| - | - |
| description | "Access rules that require the channel are kept and admit nobody on that messenger until a channel is bound again. \`not\_connected\` — nothing was bound." |
| operationId | "removePublicChannel" |
| summary | "Unbind the public channel of one messenger" |
| tags | \["public-channels"] |
