To update a client, include the id field in the request body along with the fields you want to change. The same endpoint is used for both creating and updating clients.
Query Parameters
Request Body
The ID of the client to update. This makes the request an update instead of a create.
New login password for the client
Base64 encoded logo image
URL to the client logo image
Unique identifier for the client
Array of permission strings
Whether credits are assigned to this client
curl -X POST "https://server.smartlead.ai/api/v1/client/save?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": 301,
"email": "admin@acme.com",
"name": "Acme Agency Updated",
"email_credits": 20000
}'
Response Codes
Invalid request parameters or malformed request body
Invalid or missing API key
Request validation failed. Check parameter types and constraints.
200 - Success
401 - Unauthorized
{
"ok" : true ,
"data" : {
"id" : 301 ,
"name" : "Acme Agency Updated" ,
"email" : "admin@acme.com"
}
}