---
title: "/:channel/levels"
method: POST
path: "/bot/{channel}/levels"
tags: ["bot"]
---

# /:channel/levels

`POST /bot/{channel}/levels`

## Request

- Base URL: `https://api.streamelements.com/kappa/v2`
- URL: `https://api.streamelements.com/kappa/v2/bot/{channel}/levels`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.streamelements.com/oauth2/authorize`
    - Token URL: `https://api.streamelements.com/oauth2/token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/streamelements/apis/se-api-docs/docs/bot/:channel/levels/post.ts> (a function with typed inputs; its response is checked against the schema)

Add user to permissions table

## Path parameters

- `channel` string, required

## Headers

- `Accept` string, required

## Request body

- ChannelLevelsrequest
  - `username` string, required
  - `level` integer, required

## Response `200`

- UserLevel
  - `username` string, required
  - `lastActive` string, required
  - `moderator` boolean, required
  - `subscriber` boolean, required
  - `level` integer, required

## Changes

- **2022-08-19** `7ec3cd3b664e`: 3 breaking
  - added the new required request property `level`
  - added the new required request property `username`
  - the request's body type changed from no type to `object`
- **2021-02-07** `8c745ed2e9e4`: 11 warning
  - the optional response header `Access-Control-Allow-Credentials` removed for the status `200`
  - the optional response header `Access-Control-Expose-Headers` removed for the status `200`
  - the optional response header `ETag` removed for the status `200`
  - the optional response header `Server` removed for the status `200`
  - …7 more

[Operation history](https://skmtc.dev/streamelements/apis/se-api-docs/changes/bot/:channel/levels/post.md)

---

[API](https://skmtc.dev/streamelements/apis/se-api-docs.md) - [All operations](https://skmtc.dev/streamelements/apis/se-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/streamelements/apis/se-api-docs/revisions/aa13169b9373?raw)
