Replace field-mapping config for this connection
curl --request PUT \
--url https://api.pineyard.ai/crm/connections/{id}/field-mappings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mappings": [
{
"target": "<string>",
"source": "<string>",
"isPhone": true
}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mappings: [{target: '<string>', source: '<string>', isPhone: true}]})
};
fetch('https://api.pineyard.ai/crm/connections/{id}/field-mappings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/crm/connections/{id}/field-mappings"
payload = { "mappings": [
{
"target": "<string>",
"source": "<string>",
"isPhone": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"mappings": [
{
"id": "<string>",
"target": "<string>",
"source": "<string>",
"isPhone": true
}
]
}CRM
Replace field-mapping config for this connection
PUT
/
crm
/
connections
/
{id}
/
field-mappings
Replace field-mapping config for this connection
curl --request PUT \
--url https://api.pineyard.ai/crm/connections/{id}/field-mappings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mappings": [
{
"target": "<string>",
"source": "<string>",
"isPhone": true
}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mappings: [{target: '<string>', source: '<string>', isPhone: true}]})
};
fetch('https://api.pineyard.ai/crm/connections/{id}/field-mappings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/crm/connections/{id}/field-mappings"
payload = { "mappings": [
{
"target": "<string>",
"source": "<string>",
"isPhone": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"mappings": [
{
"id": "<string>",
"target": "<string>",
"source": "<string>",
"isPhone": true
}
]
}
