Update existing Profiles.
URL : api/v1/profiles/{id}
Method : PUT
Auth required : NO
Permissions required : NO
Data example Email is required, firstName and lastName fields are alpha
{
"firstName" : "Trace",
"lastName" : "Ohrt",
"address" : {
"street": "1600 Pennsylvania Ave NW",
"city": "Washington",
"state" : "DC",
"zipcode" : "20500"
},
"email" : "[email protected]"
}
Condition : If request is good and profile was updated
Code : 200 OK
Condition : If the email field is modified
Code : 400 BAD REQUEST
Response :
{
"status": "Bad Request",
"message": "UpdateProfile failed: attempted to change email",
"error": "Email inconsistent with ProfileID"
}
Condition : If fields are determined to be invalid.
Code : 400 BAD REQUEST
Response
{
"status": "Bad Request",
"message": "Profile validation failed",
"error": "Key: 'ProfileData.LastName' Error:Field validation for 'LastName' failed on the 'alpha' tag"
}