APIMockAPIMock

Update user

Update current user data.

PUT
/user
/user

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

Auth Token from Login API

In: header

Request Body

application/jsonOptional

namestring

Name of the user.

photostring

Photo of the user.

verifiedboolean

User is verified or not.

curl -X PUT "https://apimock.lazycatlabs.com/v1/api/user" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Mudassir",
    "photo": "https://user-images.githubusercontent.com/1531684/281937715-f53c55be-4b70-43b5-bb50-11706fb71ada.png",
    "verified": false
  }'

Success

{
  "diagnostic": {
    "status": "200",
    "message": "Success"
  },
  "data": {
    "id": "8364aa6f-6887-4502-a6b0-62f082196476",
    "name": "Mudassir",
    "email": "[email protected]",
    "photo": "https://user-images.githubusercontent.com/1531684/281937715-f53c55be-4b70-43b5-bb50-11706fb71ada.png",
    "verified": false,
    "createdAt": "2024-08-25T15:04:28.191067",
    "updatedAt": "2024-08-25T15:04:28.191067"
  }
}