Skip to content

create

PUT
/user

Creates a user.

Parameters

Query Parameters

requestKey
string

Unique request id. Prevents auto cancel when sending multiple requests.

Request Body

object
username
required
string
>= 3 characters
password
required
string
>= 8 characters
passwordConfirm
required

Must be equal to “password”

string
>= 8 characters
email
required
string format: email
Example
{
"username": "Angela.Pacocha95",
"password": "deserunt",
"passwordConfirm": "deserunt",
"email": "Braulio98@gmail.com"
}

Responses

200

object
avatar
required
string
bio
required
string
collectionId
required
string
collectionName
required
string
created
required
string
emailVisibility
required
boolean
id
required
string
token
required
string
updated
required
string
username
required
string
verified
required
boolean
Examples

Success

{
"avatar": "",
"bio": "",
"collectionId": "_pb_users_auth_",
"collectionName": "users",
"created": "2025-01-03 12:23:01.865Z",
"emailVisibility": false,
"id": "nfynp8jhat2o4sy",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGlLZXlVaWQiOiIzMjk3NmExMi03ODE1LTQ1NGQtYTU5Yi1hNzY0ZTE4NmJjNjIiLCJzZWFyY2hSdWxlcyI6eyJjaXRpZXM1MDAiOnt9LCJ0cmFpbHMiOnsiZmlsdGVyIjoicHVibGljID0gdHJ1ZSBPUiBhdXRob3IgPSBuZnlucDhqaGF0Mm80c3kgT1Igc2hhcmVzID0gbmZ5bnA4amhhdDJvNHN5In19fQ.RtK_w6Bjqni720FEjVqIwaWhtrqqy5rFPA7qAdPd0iA",
"updated": "2025-01-03 12:23:01.867Z",
"username": "Dewayne33",
"verified": false
}

400

object
message
required
string
detail
required
object
code
required
integer
message
required
string
data
required
object
author
required
object
code
required
string
message
required
string
Examples

Exception

{
"message": "Failed to create record.",
"detail": {
"code": 400,
"message": "Failed to create record.",
"data": {
"author": {
"code": "validation_missing_rel_records",
"message": "Failed to find all relation records with the provided ids."
}
}
}
}

x-400:Invalid Params

object
message
required
string
detail
required
Array<object>
object
code
string
expected
string
received
string
path
Array<string>
message
string
Examples

Exception

{
"message": "invalid_params",
"detail": [
{
"code": "invalid_type",
"expected": "string",
"received": "number",
"path": [
"text"
],
"message": "Expected string, received number"
}
]
}