-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset_install.curl
5 lines (4 loc) · 1.91 KB
/
set_install.curl
1
2
3
4
5
curl -u [email protected]/token:dchrf889JgAkCDIfz97XfLe87ZeA0fIneu50wxOm -d '{"installation_instructions" : "The uri\\_templates field must contain a valid JSON string with definitions for the CRM pages, and the mapping into the URL of the page in CRM.\r\n\r\n The only valid placeholders are {{user.external\\_id}} and {{organization.external\\_id}}, which should map to the Contact GUID and Account GUID in CRM, respectively.\r\n\r\nThe following string was used in the initial setup, and can be referenced as a template:\r\n\r\n\t[\r\n\t\t{\r\n\t\t\t\"title\":\"CRM Contact\",\n\t\t\t\"url\":\"https://crm.ddti.net/main.aspx?etc=2&extraqs=%3fetc%3d2%26id%3d%257b{{user.external_id}}%257d%26pagemode%3diframe%26preloadcache%3d1409073386370&pagetype=entityrecord\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"title\":\"CRM Agent Page\",\n\t\t\t\"url\":\"https://crm.ddti.net/main.aspx?etc=8&extraqs=%3f_gridType%3d8%26etc%3d8%26id%3d%257b{{agent.external_id}}%257d%26pagemode%3diframe%26preloadcache%3d1412343139898%26rskey%3d877050599&pagetype=entityrecord\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"title\":\"CRM Account\",\r\n\t\t\t\"url\":\"https://crm.ddti.net/main.aspx?etc=1&extraqs=%3fetc%3d1%26id%3d%257b{{organization.external_id}}%257d%26pagemode%3diframe%26preloadcache%3d1409073386370&pagetype=entityrecord\"\r\n\t\t}\r\n\t]"}' -H "Content-Type: application/json" -X PUT https://ddti.zendesk.com/api/v2/apps/43500.json
curl -u [email protected]/token:dchrf889JgAkCDIfz97XfLe87ZeA0fIneu50wxOm -d '{"long_description": "### This is a customized app for DDTi\r\n\r\nThis app was developed in-house, exclusively for use by DDTi. It will only work within the internal environment of the DDTi network."}' -H "Content-Type: application/json" -X PUT https://ddti.zendesk.com/api/v2/apps/43500.json
## Reset external ID for Craig Hamm
## curl -u [email protected]/token:dchrf889JgAkCDIfz97XfLe87ZeA0fIneu50wxOm -d '{"user": {"external_id": "253774FB-F2C0-E311-A284-00155D460108"}}'