Skip to main content
PUT
/
v1
/
clients
/
{clientId}
/
contacts
/
{contactId}
Update contact
curl --request PUT \
  --url https://app.blinksale.test/api/v1/clients/{clientId}/contacts/{contactId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Jane Smith",
  "email": "[email protected]",
  "phone": "+14155552671"
}
'
{
  "success": true,
  "message": "Contact updated successfully",
  "data": {
    "id": "01jtbf0c9zaraqx3swthf88n5y",
    "client_id": "01jtbf0c9zaraqx3swthf88n5y",
    "name": "Jane Smith",
    "email": "[email protected]",
    "phone": "+14155552671",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Access token obtained from the /v1/auth/login endpoint

Path Parameters

clientId
string<uuid>
required

The ID of the client

contactId
string<uuid>
required

The ID of the contact to update

Body

application/json
name
string
required
Example:

"Jane Smith"

email
string<email>
required
phone
string | null
Example:

"+14155552671"

Response

Contact updated successfully

success
boolean
Example:

true

message
string
Example:

"Contact updated successfully"

data
object