---
title: "Create a test study"
method: POST
path: "/api/v1/studies/{id}/test-study"
tags: ["studies"]
---

# Create a test study

`POST /api/v1/studies/{id}/test-study`

### Overview
- Make sure atleast one test participant is created and exists against the user before hitting this endpoint.
  - To create test participant: POST /api/v1/researchers/participants/
- Create and publish a test study from a draft study to all the test participants associated with the workspace.
- This will allow a data collector to test the study as a participant.
## Prerequisites
✅ **Required:**
- At least one active test participant (created via [`POST /api/v1/researchers/participants/`](#))
- Study must be in draft status
- Feature enabled for your workspace (contact support if unavailable)
### Enabling the feature
This endpoint is only enabled for select workspaces and will need enabling before the endpoint can be used.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Found

- TestStudySetUpResponse
  - `study_id` string, objectId — The ID of the study that was created for the test.
  - `study_url` string, uri — The URL of the study that was created for the test.

## Other responses

- `400` — Error

---

[API](https://skmtc.net/prolific/apis/api-reference.md) · [All operations](https://skmtc.net/prolific/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prolific/api-reference/versions/5c53371c41a0/schema)
