Back to Collection Items
void ChilkatSample(void)
{
json.UpdateString(L"data[0].Description",L"This is a sample vendor"); json.UpdateString(L"data[0].Vendor_Name",L"Vendor 3"); json.UpdateString(L"data[0].Phone",L"9090909090"); json.UpdateString(L"data[0].GL_Account",L"Sales-Software"); http.put_AuthToken(L"<access_token>"); success = http.HttpJson(L"POST",L"https://domain.com/crm/v2.1/Vendors/upsert",json,L"application/json",resp);
}
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-d '{
"data": [
{
"Description": "This is a sample vendor",
"Vendor_Name": "Vendor 3",
"Phone": "9090909090",
"GL_Account": "Sales-Software"
}
]
}'
https://domain.com/crm/v2.1/Vendors/upsert
Postman Collection Item JSON
{
"name": "Vendors",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access-token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": [\n {\n \"Description\": \"This is a sample vendor\",\n \"Vendor_Name\": \"Vendor 3\",\n \"Phone\": \"9090909090\",\n \"GL_Account\": \"Sales-Software\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{api-domain}}/crm/v2.1/Vendors/upsert",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2.1",
"Vendors",
"upsert"
]
},
"description": "To upsert records in the Vendors module."
},
"response": [
]
}