Skip to main content
PUT
/
v1
/
api
/
admin
/
account
/
profile
Modifier mon profil
curl --request PUT \
  --url http://localhost:3091/v1/api/admin/account/profile \
  --header 'Content-Type: application/json' \
  --data '
{
  "nom": "<string>",
  "prenom": "<string>",
  "email": "<string>",
  "telephone": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": 123,
    "nom": "<string>",
    "prenom": "<string>",
    "email": "<string>",
    "telephone": "<string>",
    "niveauAcces": "<string>",
    "enabled": true,
    "roles": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": "<string>"
  },
  "timestamp": "2023-11-07T05:31:56Z"
}

Body

application/json
nom
string
required
Maximum string length: 50
prenom
string
required
Maximum string length: 50
email
string
required
Maximum string length: 100
telephone
string
Maximum string length: 20
Pattern: ^\+?[0-9]{8,20}$

Response

200 - */*

OK

success
boolean
message
string
data
object
error
object
timestamp
string<date-time>