Skip to main content
PATCH
/
clients
/
:id
Update Client
curl --request PATCH \
  --url https://api.example.com/clients/:id \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "<string>"
}
'
{
  "error": false,
  "msg": "User update sucessfully"
}
This endpoint updates an existing client’s information. All fields in the request body are optional.

Path Parameters

id
string
required
Client’s unique identifier in UUID format

Body

name
string
Client’s full name. Minimum 3 characters. (Optional)
email
string
Client’s email address. Must be a valid email format. (Optional)

Response

error
boolean
Indicates if there was an error
msg
string
Success or error message

Request Example

{
  "name": "Mark Zuckemberg",
  "email": "[email protected]"
}
All fields in the request body are optional. You can update just the name, just the email, or both.

Error Responses

{
  "error": false,
  "msg": "User update sucessfully"
}

Build docs developers (and LLMs) love