---
title: "Create Guest user to play for quiz directly without login."
method: POST
path: "/v1/user/{username}"
tags: ["User"]
---

# Create Guest user to play for quiz directly without login.

`POST /v1/user/{username}`

## Path parameters

- `username` string, required

## Query parameters

- `avatar_name` string, required

## Response `200`

- object
  - `data` object
    - `created_at` string
    - `email` string
    - `first_name` string
    - `id` string
    - `img_key` string
    - `kratos_id` NullString — var s NullString err := db.QueryRow("SELECT name FROM foo WHERE id=?", id).Scan(&s) ... if s.Valid { use s.String } else { NULL value }
      - `String` string
      - `Valid` boolean
    - `last_name` string
    - `roles` string
    - `updated_at` string
    - `username` string
  - `status` string

## Other responses

- `400` — Fail due to resource not exists
- `500` — Unexpected error occurred

## Changes

- **2024-10-21** `705c47620f3a` — 1 info
  - endpoint added
- **2024-02-08** `a2179d15ad2f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/improwised/apis/untitled-api/changes/v1/user/:username/post.md)

---

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