PATCH
/
user
curl --request PATCH \
  --url http://localhost:8080/user \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "<string>",
  "password": "<string>",
  "settings": {
    "language": "en",
    "script_type": [
      "default"
    ]
  }
}'
{
  "username": "<string>",
  "settings": {
    "language": "en",
    "script_type": [
      "default"
    ]
  },
  "dateCreated": 123,
  "dateUpdated": 123
}

Authorizations

_me_sess
string
cookie
required

Session token for authentication.

Cookies

_me_sess
string
required

Session token for authentication.

Example:

"_me_sess=token; Path=/; HttpOnly; SameSite=Lax; Secure"

Body

application/json
User details to update.

Request body for updating a user.

username
string
Required string length: 3 - 120
password
string
Required string length: 5 - 128
settings
object

Response body for getting user settings.

Response

200
application/json
Success

Response body for getting a user.

username
string
required
Required string length: 3 - 120
settings
object
required

Response body for getting user settings.

dateCreated
integer
required
dateUpdated
integer
required