Last active
September 22, 2021 07:30
-
-
Save LukaszMaslej/8963c3ba776132a92080daa648cf2e71 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Request 1 | |
curl --location --request PUT 'https://rest29.bullhornstaffing.com/rest-services/4tfxcg/entity/Opportunity?version=2.0' \ | |
--header 'access_token: secret' \ | |
--header 'BhRestToken: secret' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"clientCorporation": { | |
"name": "Company X", | |
"id": 150 | |
}, | |
"title": "Opportunity create with win probablility percent", | |
"winProbabilityPercent": 10 | |
}' | |
{ | |
"changedEntityType": "Opportunity", | |
"changedEntityId": 195, | |
"changeType": "INSERT", | |
"data": { | |
"clientCorporation": { | |
"name": "Company X", | |
"id": 150 | |
}, | |
"title": "Opportunity create with win probablility percent", | |
"winProbabilityPercent": 10 | |
} | |
# Request 2 | |
curl --location --request GET 'https://rest29.bullhornstaffing.com/rest-services/4tfxcg/entity/Opportunity/195?fields=id,title,dateLastModified,isDeleted,actualCloseDate,address,appointments,assignedDate,assignedUsers,benefits,billRateCategoryID,bonusPackage,branchCode,businessSector,businessSectors,campaignSource,categories,category,certifications,clientContact,clientCorporation,committed,dateAdded,dealValue,degreeList,description,educationDegree,effectiveDate,estimatedDuration,estimatedEndDate,estimatedHoursPerWeek,estimatedStartDate,expectedCloseDate,expectedFee,externalCategoryID,externalID,history,ignoreUntilDate,isOpen,lead,markUpPercentage,notes,numOpenings,onSite,optionsPackage,owner,priority,publicDescription,publishedZip,reasonClosed,salary,salaryUnit,skillList,skills,source,specialties,status,tasks,tearsheets,type,weightedDealValue,willRelocate,winProbabilityPercent,yearsRequired&showEditable=true&version=2.0' \ | |
--header 'access_token: secret' \ | |
--header 'BhRestToken: secret' \ | |
--data-raw '' | |
{ | |
"data": { | |
"id": 195, | |
"title": "Opportunity create with win probablility percent", | |
"dateLastModified": 1632295155157, | |
"isDeleted": false, | |
"actualCloseDate": null, | |
"address": { | |
"address1": null, | |
"address2": null, | |
"city": null, | |
"countryCode": "US", | |
"countryID": 1, | |
"countryName": "United States", | |
"state": null, | |
"timezone": null, | |
"zip": null | |
}, | |
"appointments": { | |
"total": 0, | |
"data": [] | |
}, | |
"assignedDate": null, | |
"assignedUsers": { | |
"total": 0, | |
"data": [] | |
}, | |
"benefits": null, | |
"billRateCategoryID": null, | |
"bonusPackage": null, | |
"branchCode": null, | |
"businessSector": null, | |
"businessSectors": { | |
"total": 0, | |
"data": [] | |
}, | |
"campaignSource": null, | |
"categories": { | |
"total": 0, | |
"data": [] | |
}, | |
"category": null, | |
"certifications": { | |
"total": 0, | |
"data": [] | |
}, | |
"clientContact": null, | |
"clientCorporation": { | |
"id": 150, | |
"name": "Company X" | |
}, | |
"committed": false, | |
"dateAdded": 1632295155157, | |
"dealValue": null, | |
"degreeList": null, | |
"description": null, | |
"educationDegree": null, | |
"effectiveDate": 1632295155157, | |
"estimatedDuration": 2.0, | |
"estimatedEndDate": null, | |
"estimatedHoursPerWeek": 40.0, | |
"estimatedStartDate": 1632283200000, | |
"expectedCloseDate": null, | |
"expectedFee": null, | |
"externalCategoryID": null, | |
"externalID": null, | |
"history": { | |
"total": 1, | |
"data": [ | |
{ | |
"id": 203 | |
} | |
] | |
}, | |
"ignoreUntilDate": null, | |
"isOpen": true, | |
"lead": null, | |
"markUpPercentage": null, | |
"notes": { | |
"total": 0, | |
"data": [] | |
}, | |
"numOpenings": 1, | |
"onSite": "On-Site", | |
"optionsPackage": null, | |
"owner": { | |
"id": 2, | |
"firstName": "Standard", | |
"lastName": "User" | |
}, | |
"priority": 0, | |
"publicDescription": null, | |
"publishedZip": null, | |
"reasonClosed": null, | |
"salary": 0.0000, | |
"salaryUnit": "", | |
"skillList": null, | |
"skills": { | |
"total": 0, | |
"data": [] | |
}, | |
"source": null, | |
"specialties": { | |
"total": 0, | |
"data": [] | |
}, | |
"status": "Open", | |
"tasks": { | |
"total": 0, | |
"data": [] | |
}, | |
"tearsheets": { | |
"total": 0, | |
"data": [] | |
}, | |
"type": "Full-time", | |
"weightedDealValue": null, | |
"willRelocate": false, | |
"winProbabilityPercent": null, | |
"yearsRequired": 0, | |
"_editable": true | |
} | |
} | |
# Request 3 | |
curl --location --request POST 'https://rest29.bullhornstaffing.com/rest-services/4tfxcg/entity/Opportunity/195?version=2.0' \ | |
--header 'access_token: secret' \ | |
--header 'BhRestToken: secret' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"clientCorporation": { | |
"name": "Company X", | |
"id": 150 | |
}, | |
"title": "Opportunity create with win probablility percent", | |
"winProbabilityPercent": 10 | |
{ | |
"changedEntityType": "Opportunity", | |
"changedEntityId": 195, | |
"changeType": "UPDATE", | |
"data": { | |
"clientCorporation": { | |
"name": "Company X", | |
"id": 150 | |
}, | |
"title": "Opportunity create with win probablility percent", | |
"winProbabilityPercent": 10 | |
} | |
} | |
# Request 4 | |
curl --location --request GET 'https://rest29.bullhornstaffing.com/rest-services/4tfxcg/entity/Opportunity/195?fields=id,title,dateLastModified,isDeleted,actualCloseDate,address,appointments,assignedDate,assignedUsers,benefits,billRateCategoryID,bonusPackage,branchCode,businessSector,businessSectors,campaignSource,categories,category,certifications,clientContact,clientCorporation,committed,dateAdded,dealValue,degreeList,description,educationDegree,effectiveDate,estimatedDuration,estimatedEndDate,estimatedHoursPerWeek,estimatedStartDate,expectedCloseDate,expectedFee,externalCategoryID,externalID,history,ignoreUntilDate,isOpen,lead,markUpPercentage,notes,numOpenings,onSite,optionsPackage,owner,priority,publicDescription,publishedZip,reasonClosed,salary,salaryUnit,skillList,skills,source,specialties,status,tasks,tearsheets,type,weightedDealValue,willRelocate,winProbabilityPercent,yearsRequired&showEditable=true&version=2.0' \ | |
--header 'access_token: secret' \ | |
--header 'BhRestToken: secret' \ | |
--data-raw '' | |
{ | |
"data": { | |
"id": 195, | |
"title": "Opportunity create with win probablility percent", | |
"dateLastModified": 1632295570930, | |
"isDeleted": false, | |
"actualCloseDate": null, | |
"address": { | |
"address1": null, | |
"address2": null, | |
"city": null, | |
"countryCode": "US", | |
"countryID": 1, | |
"countryName": "United States", | |
"state": null, | |
"timezone": null, | |
"zip": null | |
}, | |
"appointments": { | |
"total": 0, | |
"data": [] | |
}, | |
"assignedDate": null, | |
"assignedUsers": { | |
"total": 0, | |
"data": [] | |
}, | |
"benefits": null, | |
"billRateCategoryID": null, | |
"bonusPackage": null, | |
"branchCode": null, | |
"businessSector": null, | |
"businessSectors": { | |
"total": 0, | |
"data": [] | |
}, | |
"campaignSource": null, | |
"categories": { | |
"total": 0, | |
"data": [] | |
}, | |
"category": null, | |
"certifications": { | |
"total": 0, | |
"data": [] | |
}, | |
"clientContact": null, | |
"clientCorporation": { | |
"id": 150, | |
"name": "Company X" | |
}, | |
"committed": false, | |
"dateAdded": 1632295155157, | |
"dealValue": null, | |
"degreeList": null, | |
"description": null, | |
"educationDegree": null, | |
"effectiveDate": 1632295155157, | |
"estimatedDuration": 2.0, | |
"estimatedEndDate": null, | |
"estimatedHoursPerWeek": 40.0, | |
"estimatedStartDate": 1632283200000, | |
"expectedCloseDate": null, | |
"expectedFee": null, | |
"externalCategoryID": null, | |
"externalID": null, | |
"history": { | |
"total": 1, | |
"data": [ | |
{ | |
"id": 203 | |
} | |
] | |
}, | |
"ignoreUntilDate": null, | |
"isOpen": true, | |
"lead": null, | |
"markUpPercentage": null, | |
"notes": { | |
"total": 0, | |
"data": [] | |
}, | |
"numOpenings": 1, | |
"onSite": "On-Site", | |
"optionsPackage": null, | |
"owner": { | |
"id": 2, | |
"firstName": "Standard", | |
"lastName": "User" | |
}, | |
"priority": 0, | |
"publicDescription": null, | |
"publishedZip": null, | |
"reasonClosed": null, | |
"salary": 0.0000, | |
"salaryUnit": "", | |
"skillList": null, | |
"skills": { | |
"total": 0, | |
"data": [] | |
}, | |
"source": null, | |
"specialties": { | |
"total": 0, | |
"data": [] | |
}, | |
"status": "Open", | |
"tasks": { | |
"total": 0, | |
"data": [] | |
}, | |
"tearsheets": { | |
"total": 0, | |
"data": [] | |
}, | |
"type": "Full-time", | |
"weightedDealValue": null, | |
"willRelocate": false, | |
"winProbabilityPercent": 10.0, | |
"yearsRequired": 0, | |
"_editable": true | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment