# channels.editCreator

Transfer channel ownership

No such method in the current schema.

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **channel** | [InputChannel](/type/InputChannel.md) | Channel |
| **user\_id** | [InputUser](/type/InputUser.md) | New channel owner |
| **password** | [InputCheckPasswordSRP](/type/InputCheckPasswordSRP.md) | [2FA password](/api/srp.md) of account |

### Result
[Updates](/type/Updates.md)

### Only users can use this method

### Possible errors

| Code | Type | Description |
| --- | --- | --- |
| 400 | CHANNELS\_ADMIN\_PUBLIC\_TOO\_MUCH | You're admin of too many public channels, make some channels private to change the username of this channel. |
| 400 | CHANNEL\_INVALID | The provided channel is invalid. |
| 400 | CHANNEL\_MONOFORUM\_UNSUPPORTED | [Monoforums](/api/channel.md#monoforums) do not support this feature. |
| 400 | CHANNEL\_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT\_ADMIN\_REQUIRED | You must be an admin in this chat to do this. |
| 400 | CHAT\_MEMBER\_ADD\_FAILED | Could not add participants. |
| 400 | CHAT\_NOT\_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |
| 403 | CHAT\_WRITE\_FORBIDDEN | You can't write in this chat. |
| 400 | INPUT\_USER\_DEACTIVATED | The specified user was deleted. |
| 400 | PASSWORD\_HASH\_INVALID | The provided password hash is invalid. |
| 400 | PASSWORD\_MISSING | You must [enable 2FA](/api/srp.md) before executing this operation. |
| 400 | PASSWORD\_TOO\_FRESH\_%d | The password was modified less than 24 hours ago, try again in %d seconds. |
| 400 | SESSION\_TOO\_FRESH\_%d | This session was created less than 24 hours ago, try again in %d seconds. |
| 400 | SRP\_ID\_INVALID | Invalid SRP ID provided. |
| 400 | USERS\_TOO\_MUCH | The maximum number of users has been exceeded (to create a chat, for example). |
| 403 | USER\_CHANNELS\_TOO\_MUCH | One of the users you tried to add is already in too many channels/supergroups. |
| 400 | USER\_ID\_INVALID | The provided user ID is invalid. |
| 400 | USER\_NOT\_MUTUAL\_CONTACT | The provided user is not a mutual contact. |
| 403 | USER\_PRIVACY\_RESTRICTED | The user's privacy settings do not allow you to do this. |

### Related pages

#### [Two-factor authentication](/api/srp.md)
How to login to a user's account if they have enabled 2FA, how to change password.

#### [Channels, supergroups, gigagroups and basic groups](/api/channel.md)
How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.