Update User

Endpoint

POST /user - updates user information

Parameters

Parameter Parameter Type Data Type
api-key header string Required
Authorization header string Required
name query string
password query string
confirm_password query string

Error messages

  • invalid HTTP_API_KEY
  • Not authenticated

HTTP response codes:

  • 200 - Success
  • 401 - Unauthorized action

Example request

curl --request POST \
  --url https://api-dev.radiozu.ro/v1/user \
  --header 'Authorization: Bearer AUTH_TOKEN' \
  --header 'api-key: API_KEY' \
  --form 'name=Dragos DigitalAG' 

Response fields

An updated user object containing:

  • id - integer, id of user
  • name - string, name of user
  • email - string, email of user
  • email_verified_at - datetime, date email is verified for user, nullable
  • created_at - datetime
  • updated_at - datetime

Example response

{
    "data": {
        "id": 4,
        "name": "Dragos DigitalAG",
        "email": "dragos.plesca@digitalag.ro",
        "email_verified_at": null,
        "created_at": "2022-08-01T04:00:42.000000Z",
        "updated_at": "2022-08-24T07:39:19.000000Z"
    }
}