---
title: "Create Virtual user from K6 script files"
method: POST
path: "/design/imports/k6/{projectId}"
tags: ["Design - Virtual Users - Imports"]
---

# Create Virtual user from K6 script files

`POST /design/imports/k6/{projectId}`

## Request

- Base URL: `https://api.octoperf.com`
- URL: `https://api.octoperf.com/design/imports/k6/{projectId}`
- Auth: none declared

## Path parameters

- `projectId` string, required

## Query parameters

- `files` string[]

## Response `200`

OK

- VirtualUser
  - `id` string
  - `userId` string
  - `projectId` string
  - `name` string
  - `description` string
  - `children` Action[], nullable
    - `enabled` boolean
    - `children` Action[]
    - `id` string
  - `created` string, date-time
  - `lastModified` string, date-time
  - `type` 'JMETER' | 'WEB_DRIVER' | 'FRAGMENTS' | 'PLAYWRIGHT' | 'K6'
  - `tags` string[], nullable

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests

## Changes

- **2026-11-03** `bc14ac2aa366`: 1 info
  - api operation id `H_4` removed and replaced with `P_6`
- **2026-11-03** `637a8f8ce8cf`: 1 info
  - api operation id `F_4` removed and replaced with `H_4`
- **2026-10-30** `fc0ab021d8d3`: 1 info
  - api operation id `o_3` removed and replaced with `F_4`
- **2026-10-29** `6fb7a9d5eb1c`: 1 info
  - api operation id `D_2` removed and replaced with `o_3`
- **2026-10-28** `6fc0f4ece308`: 1 info
  - api operation id `g_4` removed and replaced with `D_2`

[Operation history](https://skmtc.dev/octoperf/apis/octoperf-api/changes/design/imports/k6/:projectId/post.md)

---

[API](https://skmtc.dev/octoperf/apis/octoperf-api.md) - [All operations](https://skmtc.dev/octoperf/apis/octoperf-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octoperf/apis/octoperf-api/revisions/bc14ac2aa366?raw)
