Skip to main content
PUT
/
partner
/
update
Update Partner
curl --request PUT \
  --url https://api.example.com/partner/update \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "email": "<string>",
  "phoneNumber": "<string>",
  "cedula": 123
}
'
{
  "message": "<string>"
}

Overview

This endpoint allows you to update the information of an existing partner. The user must be authenticated with a valid JWT token in the access_token cookie. All partner fields must be provided in the request.

Request Body

id
string
required
Unique identifier of the partner to updateExample: "P001"
name
string
required
Updated full name of the partnerExample: "Carlos Rodríguez"
email
string
required
Updated email address (must be a valid email format)Example: "[email protected]"
phoneNumber
string
required
Updated contact phone numberExample: "3215667890"
cedula
number
required
Updated identification number (must be a positive number)Example: 1234567890

Response

message
string
Success message confirming partner updateExample: "Socio Actualizado Exitosamente"

Example Request

curl -X PUT https://api.example.com/partner/update \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN" \
  -d '{
    "id": "P001",
    "name": "Carlos Rodríguez Updated",
    "email": "[email protected]",
    "phoneNumber": "3215667890",
    "cedula": 1234567890
  }'

Example Response

200 Success
{
  "message": "Socio Actualizado Exitosamente"
}
400 Bad Request
{
  "message": "Error de validación o datos duplicados"
}
401 Unauthorized
{
  "message": "Token no enviado o inválido"
}
404 Not Found
{
  "message": "Socio no encontrado"
}
500 Internal Server Error
{
  "message": "Error interno del servidor"
}
All fields are required when updating a partner. Make sure to include all partner information in the request body.

Build docs developers (and LLMs) love