Skip to content

Update Client

Update a client's information.

Endpoint

INFO

PUT /api/v1/dashboard/clients/{client}

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeDescription
clientintegerClient ID

Request Body

ParameterTypeRequiredDescription
namestringNoClient name
emailstringNoEmail address
phonestringNoPhone number
statusstringNoStatus: active, suspended
notesstringNoInternal notes

Example Request

bash
curl -X PUT https://api.daakey.com/api/v1/dashboard/clients/1 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}" \
  -d '{
    "notes": "VIP customer, prefers sedan vehicles. Corporate account.",
    "status": "active"
  }'

Response

Success (200)

json
{
  "success": true,
  "message": "Client updated",
  "data": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com",
    "status": "active",
    "notes": "VIP customer, prefers sedan vehicles. Corporate account.",
    "updated_at": "2024-01-15T00:00:00Z"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Notes

  • Changing email/phone requires re-verification
  • Suspending a client cancels their upcoming bookings

Daakey Car Sharing Platform