Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/harshalw2003/BidAuc/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint performs a partial update on the authenticated user’s profile. You only need to send the fields you want to change — omitted fields are left untouched. This makes it straightforward to update a single value, such as a phone number or city, without resending the entire user record.

Endpoint

POST /user/updatePersonalDetails
Authentication: Required (JWT cookie) Content-Type: application/json

Request parameters

userName
object
The user’s name. Send either or both sub-fields to update.
email
string
User’s email address. Must be unique across all accounts.
phoneNumber
number
User’s phone number. Must be unique across all accounts.
address
object
Stored address for the user. Send any combination of sub-fields.
businessName
string
Business name to display on the account. Particularly relevant for Provider accounts.
Providers should keep businessName up to date — it is visible to Seekers browsing available providers and helps establish trust before a bid is placed.

Example request

curl -X POST http://localhost:5000/user/updatePersonalDetails \
  -b cookies.txt \
  -H "Content-Type: application/json" \
  -d '{
    "userName": {
      "firstName": "Jane",
      "lastName": "Smith"
    },
    "address": {
      "city": "San Francisco",
      "zipCode": "94103"
    },
    "businessName": "Smith Contracting LLC"
  }'

Success response

{
  "success": true,
  "message": "User details updated successfully"
}

Error response

{
  "success": false,
  "message": "E11000 duplicate key error: email already exists"
}

Response fields

success
boolean
required
true when the update was applied, false when it failed.
message
string
required
Human-readable status message. On failure, this contains the underlying error description.

Build docs developers (and LLMs) love