---
title: "Create a Program Ban"
method: POST
path: "/api/v1/program-bans/"
---

# Create a Program Ban

`POST /api/v1/program-bans/`

## Request body

- object
  - `banned_profile_id` string, required — profile id of the user being banned
  - `comment` string — any comments by the banner/moderator
  - `program_id` string, required — Id of the program bannee needs to be banned from
  - `expiring_at` string, date — Optional Expiry Date for the ban

## Response `201`

201

- object
  - `id` string
  - `url` string
  - `client_id` string
  - `program_id` string
  - `banned_profile` object
    - `id` string
    - `url` string
    - `created_at` string
    - `nickname` string
    - `custom_id` unknown
    - `custom_data` string
    - `points` integer
    - `badges` unknown[]
      - unknown
    - `badges_url` string
    - `badge_progress_url` string
    - `subscribe_channel` string
    - `reported_count` integer
    - `chat_room_memberships_url` string
    - `reward_item_credit_url` string
    - `reward_item_debit_url` string
    - `reward_item_balances_url` string
    - `reward_item_transfer_url` string
    - `block_profile_url` string
    - `blocked_profiles_template_url` string
    - `blocked_profile_ids_url` string
    - `leaderboards_url` string
    - `leaderboard_views_url` string
    - `earned_badges_url` string
    - `redemption_keys_url` string
  - `banned_by_profile` object
    - `id` string
    - `url` string
    - `created_at` string
    - `nickname` string
    - `custom_id` unknown
    - `custom_data` string
    - `points` integer
    - `badges` unknown[]
      - unknown
    - `badges_url` string
    - `badge_progress_url` string
    - `subscribe_channel` string
    - `reported_count` integer
    - `chat_room_memberships_url` string
    - `reward_item_credit_url` string
    - `reward_item_debit_url` string
    - `reward_item_balances_url` string
    - `reward_item_transfer_url` string
    - `block_profile_url` string
    - `blocked_profiles_template_url` string
    - `blocked_profile_ids_url` string
    - `leaderboards_url` string
    - `leaderboard_views_url` string
    - `earned_badges_url` string
    - `redemption_keys_url` string
  - `created_at` string
  - `expiring_at` unknown
  - `comment` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/livelike/apis/engagement-suite.md) · [All operations](https://skmtc.net/livelike/apis/engagement-suite/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livelike/engagement-suite/revisions/f3171d1c30f7/schema)
