Update a snoozed contact
curl --request PUT \
--url https://client-api.salesfinity.co/v1/snoozed-contacts/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"linkedin_username": "<string>",
"external_contact_id": "<string>",
"email": "<string>",
"phone_number": "<string>",
"snooze_until": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://client-api.salesfinity.co/v1/snoozed-contacts/{id}"
payload = {
"linkedin_username": "<string>",
"external_contact_id": "<string>",
"email": "<string>",
"phone_number": "<string>",
"snooze_until": "2023-11-07T05:31:56Z"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
linkedin_username: '<string>',
external_contact_id: '<string>',
email: '<string>',
phone_number: '<string>',
snooze_until: '2023-11-07T05:31:56Z'
})
};
fetch('https://client-api.salesfinity.co/v1/snoozed-contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://client-api.salesfinity.co/v1/snoozed-contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_username' => '<string>',
'external_contact_id' => '<string>',
'email' => '<string>',
'phone_number' => '<string>',
'snooze_until' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://client-api.salesfinity.co/v1/snoozed-contacts/{id}"
payload := strings.NewReader("{\n \"linkedin_username\": \"<string>\",\n \"external_contact_id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"snooze_until\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://client-api.salesfinity.co/v1/snoozed-contacts/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_username\": \"<string>\",\n \"external_contact_id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"snooze_until\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.salesfinity.co/v1/snoozed-contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_username\": \"<string>\",\n \"external_contact_id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"snooze_until\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"team": "<string>",
"phone_number": "<string>",
"snooze_until": "2023-11-07T05:31:56Z",
"user": {
"_id": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>"
},
"contact_list": "<string>",
"linkedin_username": "<string>",
"external_contact_id": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Too many requests",
"error": "Too Many Requests",
"statusCode": 429
}{
"message": "Internal server error",
"error": "Internal Server Error",
"statusCode": 500
}Snoozed Contacts
Update Snoozed Contact
Update a snoozed contact
PUT
/
v1
/
snoozed-contacts
/
{id}
Update a snoozed contact
curl --request PUT \
--url https://client-api.salesfinity.co/v1/snoozed-contacts/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"linkedin_username": "<string>",
"external_contact_id": "<string>",
"email": "<string>",
"phone_number": "<string>",
"snooze_until": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://client-api.salesfinity.co/v1/snoozed-contacts/{id}"
payload = {
"linkedin_username": "<string>",
"external_contact_id": "<string>",
"email": "<string>",
"phone_number": "<string>",
"snooze_until": "2023-11-07T05:31:56Z"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
linkedin_username: '<string>',
external_contact_id: '<string>',
email: '<string>',
phone_number: '<string>',
snooze_until: '2023-11-07T05:31:56Z'
})
};
fetch('https://client-api.salesfinity.co/v1/snoozed-contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://client-api.salesfinity.co/v1/snoozed-contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_username' => '<string>',
'external_contact_id' => '<string>',
'email' => '<string>',
'phone_number' => '<string>',
'snooze_until' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://client-api.salesfinity.co/v1/snoozed-contacts/{id}"
payload := strings.NewReader("{\n \"linkedin_username\": \"<string>\",\n \"external_contact_id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"snooze_until\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://client-api.salesfinity.co/v1/snoozed-contacts/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_username\": \"<string>\",\n \"external_contact_id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"snooze_until\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.salesfinity.co/v1/snoozed-contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_username\": \"<string>\",\n \"external_contact_id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"snooze_until\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"team": "<string>",
"phone_number": "<string>",
"snooze_until": "2023-11-07T05:31:56Z",
"user": {
"_id": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>"
},
"contact_list": "<string>",
"linkedin_username": "<string>",
"external_contact_id": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Too many requests",
"error": "Too Many Requests",
"statusCode": 429
}{
"message": "Internal server error",
"error": "Internal Server Error",
"statusCode": 500
}Updates a snoozed contact’s information, including extending or modifying the snooze period.
Path Parameters
- id (required, string): Snoozed contact ID
Request Body
All fields are optional. Only provided fields will be updated.- linkedin_username (optional, string): LinkedIn username
- external_contact_id (optional, string): External CRM contact ID
- email (optional, string): Email address
- phone_number (optional, string): Phone number
- snooze_until (optional, date): New snooze expiration date (ISO 8601 format)
- Example:
2024-06-15T00:00:00.000Z
- Example:
Response
Returns the updated snoozed contact, or 404 if not found.Authorizations
Team-scoped API key generated in the Salesfinity dashboard under Settings -> Connections & API. A missing or invalid key returns HTTP 403.
Path Parameters
Snoozed contact ID
Body
application/json
Response
Snoozed contact updated successfully
Unique identifier
Team ID
Phone number
Snooze expiration date
Show child attributes
Show child attributes
Contact list ID
LinkedIn username
External CRM contact ID
Email address