Update contact
curl --request PATCH \
--url https://nudgen.net/api/v1/contacts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"description": "<string>",
"tags": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'jsmith@example.com',
name: '<string>',
phone: '<string>',
description: '<string>',
tags: ['<string>']
})
};
fetch('https://nudgen.net/api/v1/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://nudgen.net/api/v1/contacts/{id}"
payload = {
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"description": "<string>",
"tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}API reference
Update contact
PATCH
/
api
/
v1
/
contacts
/
{id}
Update contact
curl --request PATCH \
--url https://nudgen.net/api/v1/contacts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"description": "<string>",
"tags": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'jsmith@example.com',
name: '<string>',
phone: '<string>',
description: '<string>',
tags: ['<string>']
})
};
fetch('https://nudgen.net/api/v1/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://nudgen.net/api/v1/contacts/{id}"
payload = {
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"description": "<string>",
"tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Personal Access Token created from Settings -> API Keys.
Path Parameters
Body
application/json
Response
Contact updated
⌘I