Skip to main content

Update a User

ENDPOINT
PUT https://api.codecoogs.com/v1/users?id=
REQUEST BODY
{
"id": "01e806b3-974b-40a2-a5c9-22e9944b51b8"
"first_name": "Fernando",
"last_name": "Ramirez",
"email": "fernando@gmail.com",
"phone": "1234567890",
"password": "ultimatepassword",
"classification": "Senior",
"expected_graduation": "May 2024",
"points": 10000
}

URL Parameters


id Required

The UUID of the user to update.

Body Parameters


id string

A UUID for the object.


first_name string

The user's first name.


last_name string

The user's last name.


email string

The user's email address.


phone string

The user's phone number.


password string

The user's password.


classification string

The user's class standing, such as freshman, sophomore, junior, or senior.


expected_graduation string

The user's expected graduation date.


discord string Optional

The user's Discord ID.


team string Optional

A UUID that references the Team the user is in.


points integer

The number of points the user has.

Updating User Attributes

When updating a user's information, if you prefer to keep certain attributes unchanged, simply include their current values in the request body. This ensures that only the desired attributes are modified, while retaining the existing values for those you wish to remain unchanged.

Returns

Returns a success status after successful user update. This call returns a success status and an error message if something goes wrong.