---
title: "Edit captcha preharvest task"
method: PATCH
path: "/captcha/preharvest/{task-id}"
tags: ["captcha"]
---

# Edit captcha preharvest task

`PATCH /captcha/preharvest/{task-id}`

Edit the specified captcha preharvest task

## Path parameters

- `task-id` string, required

## Request body

- object
  - `state` integer — The current state of a captcha preharvest task: * **1** running * **2** stopped
  - `uses` integer
  - `schedule` string
  - `date` string, date-time

## Response `200`

Captcha preharvest task edited successfully

- Notification — `read` field will be ignored when editing global messages
  - `id` string, required
  - `created_at` string, date-time, required
  - `global` boolean
  - `title` string
  - `text` string
  - `read` boolean

## Other responses

- `304` — Not modified
- `400` — Bad request
- `401` — Request unauthorized
- `404` — Not found
- `500` — Internal server error
- `5XX` — Unexpected/-handled error

---

[API](https://skmtc.net/discord/apis/copped-aio-database-api.md) · [All operations](https://skmtc.net/discord/apis/copped-aio-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/discord/copped-aio-database-api/versions/b60a9661e94b/schema)
