/auth/v1/users/<user_ID>: PATCH
Updates an existing user.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
Χ | Χ | Χ | ✓ | Χ |
Synopsis of the request URL
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’
https://<spectrum_discover_host>/auth/v1/users/<user_ID> -X PATCH -d ‘<json details to update>
Supported request types and response formats
You can update the following attributes of a user:
- Name
- Password
- Description
- Project
- Default project
Supported request types:
- PATCH
- JSON
Examples
The following example shows how to update an existing user.
Request:
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’
https://<spectrum_discover_host>/auth/v1/users/4ee5b47f439640d29b6fac7253a64290
-X PATCH -d ‘{"name": "testuser-updated", "password": "newpassword"}’
Response:
200 OK