Body
Required
-
The id of the user.
-
The first name of the user.
-
The last name of the user.
-
The street name of the user.
-
The house number of the user.
-
The zip code of the user.
-
The city of the user.
-
The country of the user.
-
The phone number of the user.
-
The about me of the user.
-
The favorite genres of the user.
PUT
/api/v1/users/{id}
curl \
--request PUT 'http://localhost:8080/api/v1/users/{id}' \
--header "Content-Type: application/json" \
--data '{"id":123456,"firstName":"Robert","lastName":"Smith","streetName":"Street 1","houseNumber":1,"zipCode":12345,"city":"Dhaka","country":"Bangladesh","phoneNumber":1234567890,"aboutMe":"I am a software engineer.","favGenres":["Fiction","Non-fiction"]}'
Request examples
{
"id": 123456,
"firstName": "Robert",
"lastName": "Smith",
"streetName": "Street 1",
"houseNumber": 1,
"zipCode": 12345,
"city": "Dhaka",
"country": "Bangladesh",
"phoneNumber": 1234567890,
"aboutMe": "I am a software engineer.",
"favGenres": [
"Fiction",
"Non-fiction"
]
}
Response examples (401)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (404)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (500)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (400)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (200)
{
"id": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"streetName": "string",
"houseNumber": "string",
"zipCode": 42,
"city": "string",
"country": "string",
"phoneNumber": "string",
"aboutMe": "string",
"favGenres": [
"string"
]
}