Update customer contact by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/customers/{customerId}/customer-contact/{contactId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"first_name": "some string",
"last_name": "some string",
"email": "some@mail.com",
"notes": "some string",
"phone": "+12345678",
"order": 1
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/customers/{customerId}/customer-contact/{contactId}"
payload = {
"first_name": "some string",
"last_name": "some string",
"email": "some@mail.com",
"notes": "some string",
"phone": "+12345678",
"order": 1
}
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({
first_name: 'some string',
last_name: 'some string',
email: 'some@mail.com',
notes: 'some string',
phone: '+12345678',
order: 1
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/customers/{customerId}/customer-contact/{contactId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Customers
Update customer contact by ID
PUT
/
customers
/
{customerId}
/
customer-contact
/
{contactId}
Update customer contact by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/customers/{customerId}/customer-contact/{contactId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"first_name": "some string",
"last_name": "some string",
"email": "some@mail.com",
"notes": "some string",
"phone": "+12345678",
"order": 1
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/customers/{customerId}/customer-contact/{contactId}"
payload = {
"first_name": "some string",
"last_name": "some string",
"email": "some@mail.com",
"notes": "some string",
"phone": "+12345678",
"order": 1
}
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({
first_name: 'some string',
last_name: 'some string',
email: 'some@mail.com',
notes: 'some string',
phone: '+12345678',
order: 1
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/customers/{customerId}/customer-contact/{contactId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Was this page helpful?
⌘I