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 --request POST \ | |
--header "Content-Type: application/json" \ | |
--header "X-PW-AccessToken:TOKEN" \ | |
--header "X-PW-Application:developer_api" \ | |
--header "X-PW-UserEmail:EMAIL" \ | |
https://api.prosperworks.com/developer_api/v1/opportunities \ | |
--data '{ | |
"name":"Test Opportunity", | |
"primary_contact_id":16885672, | |
"assignee_id":122867, |
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
Custom fields I am using: | |
"custom_field_definition_id":75128 is a date custom field | |
"custom_field_definition_id":75129 is a number custom field | |
"custom_field_definition_id":73665 is a drop down custom field | |
"custom_field_definition_id":75492 is a checkbox custom field | |
"custom_field_definition_id":75493 is a URL custom field | |
Regarding the custom date field, the date should be presented to the API as your local timezone. |
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
var request = require('request'); | |
var formData = { | |
"name": "Hodor", | |
"emails": [{"email": "hodor@hodor.com","category": "work"}], | |
"tags": ["hodorhodor"], | |
} | |
var headers = { | |
"Content-Type": "application/json", |