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"
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/andreguti9190/Sistema-de-gestion-de-ventas--Nodejs/llms.txt

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

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": "markzuck@facebook.com"
}
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