Skip to content

update

POST
/user/{id}

Updates a user.

Authorizations

Parameters

Path Parameters

id
required
string
>= 15 characters <= 15 characters

User Id

Example
6vcudpc4wgc0ckk

Query Parameters

requestKey
string

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

Request Body

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

Must be equal to “password”

string
>= 8 characters
email
string format: email
bio

User biography

string
Example
{
"username": "Kim_Hettinger23",
"password": "minim elit",
"passwordConfirm": "minim elit",
"email": "Theodora_Kovacek@yahoo.com",
"bio": "A sed velit cum esse. Delectus minus nulla animi fugit minima omnis. Perspiciatis voluptas iure ipsa a dignissimos. Sequi magni odio beatae quisquam."
}

Responses

200

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

Success

{
"avatar": "pexels_photo_2230444_WILu8cRHVb.jpg",
"bio": "Enim beatae labore vel. Pariatur hic doloribus quia quasi eos. Cumque error nobis.",
"collectionId": "_pb_users_auth_",
"collectionName": "users",
"created": "2024-06-29 19:23:47.731Z",
"email": "mymail@gmail.com",
"emailVisibility": false,
"id": "3mugf953w4a9fg5",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGlLZXlVaWQiOiIzMjk3NmExMi03ODE1LTQ1NGQtYTU5Yi1hNzY0ZTE4NmJjNjIiLCJzZWFyY2hSdWxlcyI6eyJjaXRpZXM1MDAiOnt9LCJ0cmFpbHMiOnsiZmlsdGVyIjoicHVibGljID0gdHJ1ZSBPUiBhdXRob3IgPSAzbXVnZjk1M3c0YTlmZzUgT1Igc2hhcmVzID0gM211Z2Y5NTN3NGE5Zmc1In19fQ.swips6eep2qMd0Nf3hdZr711N2fHyikOo7syWvuLEIA",
"updated": "2025-01-03 12:29:55.103Z",
"username": "Flomp",
"verified": true
}

400

object
message
required
string
detail
required
Array<object>
object
code
string
minimum
integer
type
string
inclusive
boolean
exact
boolean
message
string
path
Array<string>
Examples

Exception

{
"message": "invalid_params",
"detail": [
{
"code": "too_small",
"minimum": 15,
"type": "string",
"inclusive": true,
"exact": true,
"message": "String must contain exactly 15 character(s)",
"path": [
"id"
]
}
]
}

404

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

Exception

{
"message": "The requested resource wasn't found.",
"detail": {
"code": 404,
"message": "The requested resource wasn't found.",
"data": {}
}
}