Created
November 14, 2016 06:38
-
-
Save graut/410ad74c121c8e31a3e7c088e4a07a80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://{domain}.agilecrm.com/dev/api/contacts \ | |
-H "Accept : application/json" \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"id": "5651146588815360", | |
"type": "PERSON", | |
"star_value": 5, | |
"lead_score": 80, | |
"properties": [ | |
{ | |
"name": "hello", | |
"type": "CUSTOM", | |
"value": "hello text custom field" | |
}, | |
{ | |
"type": "SYSTEM", | |
"name": "first_name", | |
"value": "Ronaldo" | |
}, | |
{ | |
"type": "SYSTEM", | |
"name": "last_name", | |
"value": "de Lima" | |
}, | |
{ | |
"type": "SYSTEM", | |
"name": "title", | |
"value": "footballer" | |
}, | |
{ | |
"name": "email", | |
"value": "ronaldo2300@gmail.com", | |
"subtype": "work" | |
}, | |
{ | |
"name": "phone", | |
"value": "+1-541-754-3030", | |
"subtype": "home" | |
}, | |
{ | |
"name": "address", | |
"value": "{\"address\":\"Avenida Álvares Cabral 1777\",\"city\":\"Belo Horizonte\",\"state\":\"Minas Gerais\",\"country\":\"IN\",\"countryname\":\"India\"}" | |
} | |
], | |
"contact_company_id": null | |
}' \ | |
-v -u sample@agilecrm.com:123456 -X PUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment