---
title: "Bulk Action"
method: POST
path: "/v1/admin/hackathon/participants/bulk-action"
tags: ["admin", "hackathons", "Admin - Hackathon"]
---

# Bulk Action

`POST /v1/admin/hackathon/participants/bulk-action`

## Request body

- BulkActionRequest
  - `participant_ids` integer[]
  - `action` 'grant_pro' | 'revoke_pro' | 'grant_credits' | 'reset_password' | 'remove' | 'delete_account', required
  - `plan_name` string
  - `duration_days` integer
  - `credits` number, nullable
  - `credits_mode` 'set' | 'add'
  - `password_length` integer
  - `send_credentials_email` boolean

## Response `200`

Successful Response

- BulkActionResponse
  - `action` 'grant_pro' | 'revoke_pro' | 'grant_credits' | 'reset_password' | 'remove' | 'delete_account', required
  - `affected` integer, required
  - `failed` integer, required
  - `results` BulkActionResultRow[], required
    - `participant_id` integer, required
    - `user_id` integer, required
    - `email` string, required
    - `success` boolean, required
    - `password` string, nullable
    - `detail` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/kodik/apis/kodik-api.md) · [All operations](https://skmtc.dev/kodik/apis/kodik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kodik/kodik-api/revisions/55c71b347360/schema)
