Update Client
Update a client's information.
Endpoint
INFO
PUT /api/v1/dashboard/clients/{client}
Headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
client | integer | Client ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Client name |
email | string | No | Email address |
phone | string | No | Phone number |
status | string | No | Status: active, suspended |
notes | string | No | Internal 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