API (administration) : PUT /users/{id} #63

Closed
opened 2026-04-21 16:25:58 +00:00 by djalim · 0 comments
Collaborator

Fonctionnalité a ajouter :
Modifier les informations d'un utilisateur existant.
Accessible uniquement par un administrateur.

Route :
PUT /users/{id}

Paramètres path :

Paramètre Type Description
id string Identifiant de l'utilisateur (login)

Exemples

PUT /users/j.martin

{
  "nom": "Martin",
  "prenom": "Paul",
  "idRole": 2
}

Réponse 200 :

{
  "id": "j.martin",
  "nom": "Martin",
  "prenom": "Paul",
  "idRole": 2
}

Réponse 404 :

{
  "error": "Ressource introuvable"
}
**Fonctionnalité a ajouter :** Modifier les informations d'un utilisateur existant. Accessible uniquement par un administrateur. **Route :** `PUT /users/{id}` **Paramètres path :** | Paramètre | Type | Description | |-----------|--------|----------------------------| | id | string | Identifiant de l'utilisateur (login) | **Exemples** `PUT /users/j.martin` ```json { "nom": "Martin", "prenom": "Paul", "idRole": 2 } ``` **Réponse 200 :** ```json { "id": "j.martin", "nom": "Martin", "prenom": "Paul", "idRole": 2 } ``` **Réponse 404 :** ```json { "error": "Ressource introuvable" } ```
djalim added this to the Module Managment project 2026-04-21 16:30:35 +00:00
djalim moved this to 🗂️ Project Backlog in Module Managment on 2026-04-21 16:31:47 +00:00
djalim moved this to ⚙️ in progress in Module Managment on 2026-04-22 11:38:59 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-22 11:48:20 +00:00
djalim self-assigned this 2026-04-22 12:56:55 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/PolyMPR#63