---
title: "Reset the db to a defined state"
method: PATCH
path: "/test/{table}"
tags: ["testing"]
---

# Reset the db to a defined state

`PATCH /test/{table}`

Fills the specified table with the content provided in the payload. You need to enable the testing endpoint before doing this and provide the `Authorization: <token>` secret when making requests to this endpoint. See docs for more details.

## Path parameters

- `table` string, required

## Response `201`

Everything has been imported successfully.

- UserUser[]
  - `created` string — A timestamp when this task was created. You cannot change this value.
  - `email` string — The user's email address.
  - `id` integer — The unique, numeric id of this user.
  - `name` string — The full name of the user.
  - `updated` string — A timestamp when this task was last updated. You cannot change this value.
  - `username` string — The username of the user. Is always unique.

## Other responses

- `500` — Internal server error.

---

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