User Information
Developing
This endpoint is made so that the user can update their data.
Only send fields will be updated
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"id": "string",
"username": "string",
"email": "string",
"oldPassword": "string",
"newPassword": "string"
}
Request Code Samples
curl --location --request PATCH '/user/info?id=4' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"username": "string",
"email": "string",
"oldPassword": "string",
"newPassword": "string"
}'
Responses
application/json {
"id": 0,
"name": "string",
"email": "string"
}
Modified at 2025-02-23 10:52:33