{"info":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","description":"<html><head></head><body><p>Segment APIs enable you to collect customer data and send it to any destination you want.</p>\n<p>The Config API is a set of REST APIs that enable you to programmatically manage Segment workspaces, sources, destinations and more.</p>\n<p>This documents all the REST API methods, with example requests and responses. You can also load this into the <a href=\"https://www.getpostman.com/\">Postman API Development Environment</a> to interact with the API with your own access tokens.</p>\n<p>With the Config API you can:</p>\n<ul>\n<li><p>List all your workspace sources and destinations to see how data flows through Segment</p>\n</li>\n<li><p>Create new sources to collect data from your website, mobile app or server</p>\n</li>\n<li><p>Create new destinations to send data to your analytics service or data warehouse</p>\n</li>\n<li><p>Enable and disable destinations to route data without code changes</p>\n</li>\n<li><p>Configure a tracking plan to see how data conforms to your expected schema</p>\n</li>\n</ul>\n<p>If there are other uses cases you'd like the API to support, <a href=\"https://segment.com/contact\">get in touch</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"37707780","collectionId":"c88336c1-101b-4ceb-b339-21f904810db4","publishedId":"2sAYX3q36f","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-17T19:33:12.000Z"},"item":[{"name":"Access Tokens","item":[],"id":"35a2ba94-bd16-4e85-ab5d-63ca42d3a43d","description":"<p>To create an access token, workspace owners can navigate to \"Access Management\" within the settings tab and assign permissions and resources to new tokens. More details here: <a href=\"https://segment.com/docs/config-api/\">https://segment.com/docs/config-api/</a></p>\n<h2 id=\"eu-api-access\">EU API Access</h2>\n<p>If your workspace is running in the EU, please access <a href=\"https://api.segmentapis.com/docs/\">https://api.segmentapis.com/docs/</a> for API documentation.</p>\n","_postman_id":"35a2ba94-bd16-4e85-ab5d-63ca42d3a43d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Integrations Catalog","item":[{"name":"List Catalog Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"88e56d9d-89bf-4c9b-a133-13ddb0d0162b"}}],"id":"c87a73d3-dba9-453c-9182-eb439fc33807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/catalog/sources?page_size=&page_token=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","catalog","sources"],"host":["https://platform.segmentapis.com"],"query":[{"description":{"content":"<p>Optional, e.g. <code>2</code></p>\n","type":"text/plain"},"key":"page_size","value":""},{"description":{"content":"<p>Optional, e.g. <code>eyJTa2lwIjoyfQ==</code></p>\n","type":"text/plain"},"key":"page_token","value":""}],"variable":[]}},"response":[{"id":"0773f231-5e19-4276-92cc-b9d311a76d9a","name":"List Catalog Sources Page 1","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/catalog/sources?page_size=2","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","catalog","sources"],"query":[{"key":"page_size","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:13:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"596"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"1"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"sources\": [\n        {\n            \"name\": \"catalog/sources/.net\",\n            \"display_name\": \".NET\",\n            \"description\": \"\",\n            \"categories\": [\n                \"Server\"\n            ]\n        },\n        {\n            \"name\": \"catalog/sources/javascript\",\n            \"display_name\": \"Javascript\",\n            \"description\": \"This is our most flexible and powerful tracking system, using analytics.js.  Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.\",\n            \"categories\": [\n                \"Website\"\n            ]\n        }\n    ],\n    \"next_page_token\": \"eyJTa2lwIjoyfQ==\"\n}"},{"id":"cbc534ab-26f4-4a18-a22d-6fd8f167eac8","name":"List Catalog Sources Page 2","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/catalog/sources?page_size=2&page_token=eyJTa2lwIjoyfQ==","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","catalog","sources"],"query":[{"key":"page_size","value":"2"},{"key":"page_token","value":"eyJTa2lwIjoyfQ=="}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:14:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"322"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"2"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"sources\": [\n        {\n            \"name\": \"catalog/sources/clojure\",\n            \"display_name\": \"Clojure\",\n            \"description\": \"\",\n            \"categories\": [\n                \"Server\"\n            ]\n        },\n        {\n            \"name\": \"catalog/sources/go\",\n            \"display_name\": \"Go\",\n            \"description\": \"\",\n            \"categories\": [\n                \"Server\"\n            ]\n        }\n    ],\n    \"next_page_token\": \"eyJTa2lwIjo0fQ==\"\n}"}],"_postman_id":"c87a73d3-dba9-453c-9182-eb439fc33807"},{"name":"Get Catalog Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"9d916820-79fc-42a6-8772-d5c1d44050cf"}}],"id":"b94dda77-d2ac-4a08-8fed-8e974d736d78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/catalog/sources/javascript","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","catalog","sources","javascript"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"47846b82-e0cb-464f-9823-2ec6f79b9e82","name":"Get Catalog Source","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/catalog/sources/javascript"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:17:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"389"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"1"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"catalog/sources/javascript\",\n    \"display_name\": \"Javascript\",\n    \"description\": \"This is our most flexible and powerful tracking system, using analytics.js.  Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.\",\n    \"categories\": [\n        \"Website\"\n    ]\n}"}],"_postman_id":"b94dda77-d2ac-4a08-8fed-8e974d736d78"},{"name":"List Catalog Destinations","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"9d393e1d-c185-4f9f-bf10-b765fcf8aac0"}}],"id":"c411f245-79d5-4e72-86b2-459a2295ba83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/catalog/destinations?page_size=&page_token=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","catalog","destinations"],"host":["https://platform.segmentapis.com"],"query":[{"description":{"content":"<p>Optional, e.g. <code>2</code></p>\n","type":"text/plain"},"key":"page_size","value":""},{"description":{"content":"<p>Optional, e.g. <code>NTQ1MjFmZDUyNWU3MjFlMzJhNzJlZTkw</code></p>\n","type":"text/plain"},"key":"page_token","value":""}],"variable":[]}},"response":[{"id":"5822acb7-2376-4a1d-8e25-0adaa58648e0","name":"List Catalog Destinations Page 1","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/catalog/destinations?page_size=2","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","catalog","destinations"],"query":[{"key":"page_size","value":"2"},{"key":"page_token","value":"NTQ1MjFmZDUyNWU3MjFlMzJhNzJlZTkw","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:18:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3557"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"460"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"destinations\": [\n        {\n            \"name\": \"catalog/destinations/adroll\",\n            \"display_name\": \"AdRoll\",\n            \"description\": \"AdRoll is a retargeting network that allows you to show ads to visitors who've landed on your site while browsing the web. \",\n            \"type\": \"STREAMING\",\n            \"website\": \"http://adroll.com\",\n            \"status\": \"PUBLIC\",\n            \"logos\": {\n                \"logo\": \"https://d3hotuclm6if1r.cloudfront.net/logos/adroll-default.svg\",\n                \"mark\": \"https://cdn.filepicker.io/api/file/IKo2fU59RROBsNtj4lHs\"\n            },\n            \"categories\": {\n                \"primary\": \"Advertising\",\n                \"secondary\": \"\",\n                \"additional\": []\n            },\n            \"components\": [\n                {\n                    \"type\": \"WEB\"\n                }\n            ],\n            \"settings\": [\n                {\n                    \"name\": \"_version\",\n                    \"display_name\": \"_version\",\n                    \"type\": \"NUMBER\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"number_validators\": {\n                        \"min\": 0,\n                        \"max\": 0\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"advId\",\n                    \"display_name\": \"Advertiser ID\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": true,\n                    \"string_validators\": {\n                        \"regexp\": \"^[A-Z0-9]{22}$\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"events\",\n                    \"display_name\": \"Events\",\n                    \"type\": \"MAP\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"pixId\",\n                    \"display_name\": \"Pixel ID\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": true,\n                    \"string_validators\": {\n                        \"regexp\": \"^[A-Z0-9]{22}$\"\n                    },\n                    \"settings\": []\n                }\n            ]\n        },\n        {\n            \"name\": \"catalog/destinations/appsflyer\",\n            \"display_name\": \"AppsFlyer\",\n            \"description\": \"Mobile app measurement and tracking.\",\n            \"type\": \"STREAMING\",\n            \"website\": \"http://www.appsflyer.com/\",\n            \"status\": \"PUBLIC\",\n            \"logos\": {\n                \"logo\": \"https://d3hotuclm6if1r.cloudfront.net/logos/appsflyer-default.svg\",\n                \"mark\": \"https://cdn.filepicker.io/api/file/AnJUEBvxRouLLOvIeQuK\"\n            },\n            \"categories\": {\n                \"primary\": \"Attribution\",\n                \"secondary\": \"\",\n                \"additional\": []\n            },\n            \"components\": [\n                {\n                    \"type\": \"IOS\"\n                },\n                {\n                    \"type\": \"ANDROID\"\n                },\n                {\n                    \"type\": \"CLOUD\"\n                }\n            ],\n            \"settings\": [\n                {\n                    \"name\": \"androidAppID\",\n                    \"display_name\": \"Android App ID\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"appleAppID\",\n                    \"display_name\": \"Apple App ID (iOS)\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"string_validators\": {\n                        \"regexp\": \"^[0-9]*$\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"appsFlyerDevKey\",\n                    \"display_name\": \"AppsFlyer Dev Key\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": true,\n                    \"string_validators\": {\n                        \"regexp\": \"^[a-zA-Z0-9]{10,30}$\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"httpFallback\",\n                    \"display_name\": \"Enable HTTP fallback (Android)\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"rokuAppID\",\n                    \"display_name\": \"Roku App ID\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackAttributionData\",\n                    \"display_name\": \"Track Attribution Data\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                }\n            ]\n        }\n    ],\n    \"next_page_token\": \"NTQ1MjFmZDUyNWU3MjFlMzJhNzJlZTkw\"\n}"},{"id":"ea429681-f5b8-4eaf-a690-29cc846de8d6","name":"List Catalog Destinations Page 2","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/catalog/destinations?page_size=2&page_token=NTQ1MjFmZDUyNWU3MjFlMzJhNzJlZTkw","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","catalog","destinations"],"query":[{"key":"page_size","value":"2"},{"key":"page_token","value":"NTQ1MjFmZDUyNWU3MjFlMzJhNzJlZTkw"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:19:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7844"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"487"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"destinations\": [\n        {\n            \"name\": \"catalog/destinations/alexa\",\n            \"display_name\": \"Alexa\",\n            \"description\": \"Get an insider's edge with Alexa's Competitive Intelligence toolkit. Uncover opportunities for competitive advantage, benchmark any site against its competitors and track companies over time.\",\n            \"type\": \"STREAMING\",\n            \"website\": \"https://www.alexa.com\",\n            \"status\": \"PUBLIC\",\n            \"logos\": {\n                \"logo\": \"https://cdn.filepicker.io/api/file/taHbRV4TsGP64UN7upNv\",\n                \"mark\": \"https://cdn.filepicker.io/api/file/jplK0HFyT5CKTc6FHkfP\"\n            },\n            \"categories\": {\n                \"primary\": \"Analytics\",\n                \"secondary\": \"\",\n                \"additional\": []\n            },\n            \"components\": [\n                {\n                    \"type\": \"WEB\"\n                }\n            ],\n            \"settings\": [\n                {\n                    \"name\": \"domain\",\n                    \"display_name\": \"Domain\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": true,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"account\",\n                    \"display_name\": \"Account ID\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": true,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                }\n            ]\n        },\n        {\n            \"name\": \"catalog/destinations/amplitude\",\n            \"display_name\": \"Amplitude\",\n            \"description\": \"Amplitude is an event tracking and segmentation platform for your web and mobile apps. By analyzing the actions your users perform, you can gain a better understanding to drive retention, engagement, and conversion.\",\n            \"type\": \"STREAMING\",\n            \"website\": \"http://amplitude.com\",\n            \"status\": \"PUBLIC\",\n            \"logos\": {\n                \"logo\": \"https://d3hotuclm6if1r.cloudfront.net/logos/amplitude-default.svg\",\n                \"mark\": \"https://cdn.filepicker.io/api/file/Nmj7LgOQR62rdAmlbnLO\"\n            },\n            \"categories\": {\n                \"primary\": \"Analytics\",\n                \"secondary\": \"\",\n                \"additional\": []\n            },\n            \"components\": [\n                {\n                    \"type\": \"WEB\"\n                },\n                {\n                    \"type\": \"IOS\"\n                },\n                {\n                    \"type\": \"ANDROID\"\n                },\n                {\n                    \"type\": \"CLOUD\"\n                }\n            ],\n            \"settings\": [\n                {\n                    \"name\": \"forceHttps\",\n                    \"display_name\": \"Force Https\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"mapQueryParams\",\n                    \"display_name\": \"Map Query Params to Custom Property\",\n                    \"type\": \"MAP\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"map_validators\": {\n                        \"regexp\": \"\",\n                        \"min\": 0,\n                        \"max\": 0,\n                        \"map_prefix\": \"\",\n                        \"select_options\": [\n                            \"user_properties\",\n                            \"event_properties\"\n                        ]\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackAllPages\",\n                    \"display_name\": \"Track All Pages to Amplitude\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackReferrer\",\n                    \"display_name\": \"Track Referrer to Amplitude\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackRevenuePerProduct\",\n                    \"display_name\": \"Track Revenue Per Product\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"deviceIdFromUrlParam\",\n                    \"display_name\": \"Set Device ID From URL Parameter amp_device_id\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"traitsToIncrement\",\n                    \"display_name\": \"Traits To Increment\",\n                    \"type\": \"LIST\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackSessionEvents\",\n                    \"display_name\": \"Track Session Events to Amplitude\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"secretKey\",\n                    \"display_name\": \"Secret Key\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"enableLocationListening\",\n                    \"display_name\": \"Enable Location Listening\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"traitsToSetOnce\",\n                    \"display_name\": \"Traits to Set Once\",\n                    \"type\": \"LIST\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"useAdvertisingIdForDeviceId\",\n                    \"display_name\": \"Use AdvertisingId for DeviceId\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"apiKey\",\n                    \"display_name\": \"API Key\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": true,\n                    \"string_validators\": {\n                        \"regexp\": \"^[a-z0-9]{32}$\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"saveParamsReferrerOncePerSession\",\n                    \"display_name\": \"Save Referrer, URL Params, GCLID Once Per Session\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"useLogRevenueV2\",\n                    \"display_name\": \"Use Log Revenue V2 API\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"batchEvents\",\n                    \"display_name\": \"Batch Events\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"preferAnonymousIdForDeviceId\",\n                    \"display_name\": \"Prefer Anonymous ID for Device ID\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackGclid\",\n                    \"display_name\": \"Track GCLID\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackUtmProperties\",\n                    \"display_name\": \"Track UTM Properties to Amplitude.\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"groupValueTrait\",\n                    \"display_name\": \"Group Value Trait\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackAllPagesV2\",\n                    \"display_name\": \"Track All Screens\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"groupTypeTrait\",\n                    \"display_name\": \"Group Type Trait\",\n                    \"type\": \"STRING\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"string_validators\": {\n                        \"regexp\": \"\"\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"eventUploadPeriodMillis\",\n                    \"display_name\": \"Event Upload Period Millis (for batching events)\",\n                    \"type\": \"NUMBER\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"number_validators\": {\n                        \"min\": 0,\n                        \"max\": 0\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"eventUploadThreshold\",\n                    \"display_name\": \"Event Upload Threshold (for batching events)\",\n                    \"type\": \"NUMBER\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"number_validators\": {\n                        \"min\": 0,\n                        \"max\": 0\n                    },\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackCategorizedPages\",\n                    \"display_name\": \"Track Categorized Pages to Amplitude\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"useCustomAmplitudeProperties\",\n                    \"display_name\": \"Send Custom Language and Country Properties\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                },\n                {\n                    \"name\": \"trackNamedPages\",\n                    \"display_name\": \"Track Named Pages to Amplitude\",\n                    \"type\": \"BOOLEAN\",\n                    \"deprecated\": false,\n                    \"required\": false,\n                    \"settings\": []\n                }\n            ]\n        }\n    ],\n    \"next_page_token\": \"NTQ1MjFmZDUyNWU3MjFlMzJhNzJlZTky\"\n}"}],"_postman_id":"c411f245-79d5-4e72-86b2-459a2295ba83"},{"name":"Get Catalog Destination","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"045c509a-54e5-4aed-93a6-a9bcaa0c36c7"}}],"id":"be17836e-8fd5-403b-bc76-57973c05d407","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/catalog/destinations/google-analytics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","catalog","destinations","google-analytics"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"fd6c8f2a-7113-41d9-8c4f-981d962af6b1","name":"Get Catalog Destination","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/catalog/destinations/google-analytics"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:20:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7151"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"22"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"catalog/destinations/google-analytics\",\n    \"display_name\": \"Google Analytics\",\n    \"description\": \"Google Analytics is the most popular analytics tool for the web. It’s free and provides a wide range of features. It’s especially good at measuring traffic sources and ad campaigns.\",\n    \"type\": \"STREAMING\",\n    \"website\": \"http://google.com/analytics\",\n    \"status\": \"PUBLIC\",\n    \"logos\": {\n        \"logo\": \"https://cdn.filepicker.io/api/file/SRUsbCZSQqhh0KVFYcVV\",\n        \"mark\": \"https://cdn.filepicker.io/api/file/4lEuIf8LR4KhMqRr6pZU\"\n    },\n    \"categories\": {\n        \"primary\": \"Analytics\",\n        \"secondary\": \"\",\n        \"additional\": []\n    },\n    \"components\": [\n        {\n            \"type\": \"WEB\"\n        },\n        {\n            \"type\": \"IOS\"\n        },\n        {\n            \"type\": \"ANDROID\"\n        },\n        {\n            \"type\": \"CLOUD\"\n        }\n    ],\n    \"settings\": [\n        {\n            \"name\": \"serversideTrackingId\",\n            \"display_name\": \"Serverside Tracking ID\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"^UA-\\\\d+-\\\\d+$\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"dimensions\",\n            \"display_name\": \"Custom Dimensions\",\n            \"type\": \"MAP\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"map_validators\": {\n                \"regexp\": \"\",\n                \"min\": 0,\n                \"max\": 200,\n                \"map_prefix\": \"dimension\",\n                \"select_options\": []\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"enableServerIdentify\",\n            \"display_name\": \"Enable Server Side Identify\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"identifyEventName\",\n            \"display_name\": \"Server Side Identify Event Action\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"sendUserId\",\n            \"display_name\": \"Send User-ID to GA\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"enhancedLinkAttribution\",\n            \"display_name\": \"Enable Enhanced Link Attribution\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"ignoredReferrers\",\n            \"display_name\": \"Ignored Referrers\",\n            \"type\": \"MULTI_LINE_STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"trackCategorizedPages\",\n            \"display_name\": \"Track Categorized Pages\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"sampleRate\",\n            \"display_name\": \"Sample Rate\",\n            \"type\": \"NUMBER\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"number_validators\": {\n                \"min\": 1,\n                \"max\": 100\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"trackNamedPages\",\n            \"display_name\": \"Track Named Pages\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"anonymizeIp\",\n            \"display_name\": \"Anonymize IP Addresses\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"identifyCategory\",\n            \"display_name\": \"Server Side Identify Event Category\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"optimize\",\n            \"display_name\": \"Optimize Container ID\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"reportUncaughtExceptions\",\n            \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"protocolMappings\",\n            \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n            \"type\": \"MAP\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"map_validators\": {\n                \"regexp\": \"\",\n                \"min\": 0,\n                \"max\": 0,\n                \"map_prefix\": \"\",\n                \"select_options\": [\n                    \"plt\",\n                    \"pdt\",\n                    \"gclid\"\n                ]\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"siteSpeedSampleRate\",\n            \"display_name\": \"Site Speed Sample Rate\",\n            \"type\": \"NUMBER\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"number_validators\": {\n                \"min\": 1,\n                \"max\": 100\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"classic\",\n            \"display_name\": \"Use Classic Analytics on Your Site\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"contentGroupings\",\n            \"display_name\": \"Content Groupings\",\n            \"type\": \"MAP\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"map_validators\": {\n                \"regexp\": \"\",\n                \"min\": 0,\n                \"max\": 5,\n                \"map_prefix\": \"contentGroup\",\n                \"select_options\": []\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"nameTracker\",\n            \"display_name\": \"Name Tracker\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"nonInteraction\",\n            \"display_name\": \"Add the non-interaction flag to all events\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"trackingId\",\n            \"display_name\": \"Website Tracking ID\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"^UA-\\\\d+-\\\\d+$\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"setAllMappedProps\",\n            \"display_name\": \"Set Custom Dimensions & Metrics to the Page\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"doubleClick\",\n            \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"enhancedEcommerce\",\n            \"display_name\": \"Enable Enhanced Ecommerce\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"includeSearch\",\n            \"display_name\": \"Include the Querystring in Page Views\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"mobileTrackingId\",\n            \"display_name\": \"Mobile Tracking ID\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"^UA-\\\\d+-\\\\d+$\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"domain\",\n            \"display_name\": \"Cookie Domain Name\",\n            \"type\": \"STRING\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"string_validators\": {\n                \"regexp\": \"^none$|^[a-zA-Z0-9_-]+\\\\.[.a-zA-Z0-9_-]+$\"\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"metrics\",\n            \"display_name\": \"Custom Metrics\",\n            \"type\": \"MAP\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"map_validators\": {\n                \"regexp\": \"\",\n                \"min\": 0,\n                \"max\": 200,\n                \"map_prefix\": \"metric\",\n                \"select_options\": []\n            },\n            \"settings\": []\n        },\n        {\n            \"name\": \"serversideClassic\",\n            \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        },\n        {\n            \"name\": \"useGoogleAmpClientId\",\n            \"display_name\": \"Use Google AMP Client ID\",\n            \"type\": \"BOOLEAN\",\n            \"deprecated\": false,\n            \"required\": false,\n            \"settings\": []\n        }\n    ]\n}"}],"_postman_id":"be17836e-8fd5-403b-bc76-57973c05d407"}],"id":"d07f06d9-8abb-4563-8836-c58fb3fef2b2","description":"<p>Integrations Catalog APIs list all the sources, destinations and destination settings supported by Segment.</p>\n<h2 id=\"source-catalog-model\">Source Catalog Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>categories</td>\n<td>array[string]</td>\n<td>Categories of the source</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description of the source</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Display name of the source</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the source</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>name</code> is used when creating a source.</p>\n<h2 id=\"destination-catalog-model\">Destination Catalog Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>categories</td>\n<td>DestinationCategory</td>\n<td>Categories of the destination</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>components</td>\n<td>array[DestinationComponent]</td>\n<td>Components of the destination</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description of the destination</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Display name of the destination</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>logos</td>\n<td>DestinationLogos</td>\n<td>Logos for the destination</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the destination</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>settings</td>\n<td>array[DestinationSetting]</td>\n<td>Settings for the destination</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"0cd19bb3-dcaa-4533-a576-5f7e28c0179a"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"99c46e1c-859d-487b-baf5-c4739d8772eb"}}],"_postman_id":"d07f06d9-8abb-4563-8836-c58fb3fef2b2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Workspaces","item":[{"name":"Get Workspace","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"c110db1d-4f47-4d4f-8718-f0818ae0f434"}}],"id":"499e0469-0eed-47c7-a305-264bb82d5403","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"f5bfe8d4-5aef-49ab-8516-899df6cad406","name":"Get Workspace","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:28:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"137"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"8"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n\t\"name\": \"workspaces/myworkspace\",\n\t\"display_name\": \"My Workspace\",\n\t\"id\": \"jwt9cirmwq\",\n\t\"create_time\": \"2018-01-23T23:21:55.275Z\"\n}"}],"_postman_id":"499e0469-0eed-47c7-a305-264bb82d5403"}],"id":"ed4c3fb2-71a0-4d38-b211-a6a42cef5119","description":"<h2 id=\"workspace-model\">Workspace Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>create_time</td>\n<td>datetime</td>\n<td>Time the workspace was created</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Display name of the workspace</td>\n<td>required</td>\n</tr>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>ID of the workspace</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the workspace</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"e202d480-2ac3-4f1f-bb1a-4db9faea7d06"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"a258ea7d-c6a2-4a82-82b3-9f8f7be81b47"}}],"_postman_id":"ed4c3fb2-71a0-4d38-b211-a6a42cef5119","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Sources","item":[{"name":"Create Source","event":[{"listen":"test","script":{"exec":["// Segment Engineering","// Don't fail if source already exists","pm.test(\"Status code is 200 or 409\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200,409]);","});","","if (pm.response.code == 409) {","    pm.environment.set(\"source_slug\", pm.globals.get(\"source_name\").split(\"/\").slice(-1)[0]);","}","else if (pm.response.code == 200) {","    var r = pm.response.json();","    pm.environment.set(\"source_name\", r.name);","    pm.environment.set(\"source_slug\", r.name.split(\"/\").slice(-1)[0]);","}","else {","    postman.setNextRequest(null); // stop execution","}",""],"type":"text/javascript","id":"a8a3d92f-b0b6-47cb-8ec1-4aa514f71c83"}}],"id":"10099801-7752-42d8-8cf1-8a2ae484adee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"source\": {\n\t\t\"name\": \"workspaces/myworkspace/sources/js\",\n\t\t\"catalog_name\": \"catalog/sources/javascript\"\n\t}\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","sources"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"15c99e28-58a6-414d-b057-dd0d01b6ea02","name":"Create Source","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"source\": {\n\t\t\"name\": \"workspaces/myworkspace/sources/js\",\n\t\t\"catalog_name\": \"catalog/sources/javascript\"\n\t}\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:44:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"367"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"131"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js\",\n    \"parent\": \"workspaces/myworkspace\",\n    \"catalog_name\": \"catalog/sources/javascript\",\n    \"write_keys\": [\n        \"xDfE5GeTMyukogiMks5Rgd1jDCIzDeK2\"\n    ],\n    \"library_config\": {\n        \"metrics_enabled\": false,\n        \"retry_queue\": false,\n        \"cross_domain_id_enabled\": false,\n        \"api_host\": \"\"\n    },\n    \"create_time\": \"2018-10-16T20:44:15.214Z\"\n}"}],"_postman_id":"10099801-7752-42d8-8cf1-8a2ae484adee"},{"name":"Get Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"67f85d59-454e-4370-98f8-b437302f4ac0"}}],"id":"52adcac8-ad90-4d61-a0bb-07d5a4671866","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"b8fe0674-0039-48bd-8d38-4e56f1494e2d","name":"Get Source","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"834"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"55"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js\",\n    \"parent\": \"workspaces/myworkspace\",\n    \"catalog_name\": \"catalog/sources/ios\",\n    \"write_keys\": [\n        \"F4xIkfwZiNBeYI0A9y1Cikhgi9dy7gX7\"\n    ],\n    \"library_config\": {\n        \"metrics_enabled\": false,\n        \"retry_queue\": false,\n        \"cross_domain_id_enabled\": false,\n        \"api_host\": \"\"\n    },\n    \"id\": \"fPcUhz127F\",\n    \"create_time\": \"2018-10-11T22:57:53.079Z\"\n}"}],"_postman_id":"52adcac8-ad90-4d61-a0bb-07d5a4671866"},{"name":"List Sources","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"4763b155-f99c-4f47-961d-78a3cc05ae1c"}}],"id":"30e57937-3673-44c0-8372-7d37fb7bf96f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources?page_size=&page_token=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","sources"],"host":["https://platform.segmentapis.com"],"query":[{"description":{"content":"<p>Optional, e.g. <code>2</code></p>\n","type":"text/plain"},"key":"page_size","value":""},{"description":{"content":"<p>Optional, e.g. <code>MjAxNi0wNC0yOVQxNTo0OTozMi40Wg==</code></p>\n","type":"text/plain"},"key":"page_token","value":""}],"variable":[]}},"response":[{"id":"1db8632b-80ae-48ba-8031-e88f6c639d06","name":"List Sources","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","workspaces/myworkspace","sources"],"query":[{"key":"page_size","value":"2","disabled":true},{"key":"page_token","value":"MjAxNi0wNC0yOVQxNTo0OTozMi40Wg==","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"834"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"55"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"sources\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/ios\",\n            \"parent\": \"workspaces/myworkspace\",\n            \"catalog_name\": \"catalog/sources/ios\",\n            \"write_keys\": [\n                \"F4xIkfwZiNBeYI0A9y1Cikhgi9dy7gX7\"\n            ],\n            \"library_config\": {\n                \"metrics_enabled\": false,\n                \"retry_queue\": false,\n                \"cross_domain_id_enabled\": false,\n                \"api_host\": \"\"\n            },\n            \"id\": \"fPcUhz127F\",\n            \"create_time\": \"2018-10-11T22:57:53.079Z\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js\",\n            \"parent\": \"workspaces/myworkspace\",\n            \"catalog_name\": \"catalog/sources/javascript\",\n            \"write_keys\": [\n                \"fbSIEioXNHc61VQgnmAHsHoDISjD6an7\"\n            ],\n            \"library_config\": {\n                \"metrics_enabled\": false,\n                \"retry_queue\": false,\n                \"cross_domain_id_enabled\": false,\n                \"api_host\": \"\"\n            },\n            \"id\": \"nkrFn3W1BO\",\n            \"create_time\": \"2018-10-11T23:29:48.774Z\"\n        }\n    ],\n    \"next_page_token\": \"\"\n}"}],"_postman_id":"30e57937-3673-44c0-8372-7d37fb7bf96f"},{"name":"Get Schema Configuration","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"7214f6cd-3681-491c-85ed-938a52dc461e"}}],"id":"a569a00e-d08e-4a7b-bd3b-b637d6883a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config","description":"<p>Retrieves the schema configuration for a source. If protocols is not enabled for the source then the configurations specific to protocols will have default values.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","schema-config"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"2750c53f-386a-44d1-b556-369e537997a3","name":"Get Schema Configuration for protocols disabled source","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config?=","host":["https://platform.segmentapis.com"],"path":["v1beta","workspaces/myworkspace/sources/js","schema-config"],"query":[{"key":"","value":"","description":"Retrieves the schema configuration for a source.  If protocols is not enabled for the source then the configurations specific to protocols will have default values."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 May 2019 21:19:14 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Content-Length","value":"74"},{"key":"Connection","value":"keep-alive"},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n \"name\": \"workspaces/myworkspace/sources/js/schema-config\",\n \"parent\": \"sources/js\",\n \"allow_unplanned_track_events\": true,\n \"allow_unplanned_identify_traits\": false,\n \"allow_unplanned_group_traits\": false,\n \"forwarding_blocked_events_to\": \"forwarding_blocked_events_to_source_slug\",\n \"allow_unplanned_track_event_properties\": false,\n \"allow_track_event_on_violations\": false,\n \"allow_identify_traits_on_violations\": false,\n \"allow_group_traits_on_violations\": false,\n \"forwarding_violations_to\": \"\"\n}"},{"id":"abffa654-095c-4718-bbf3-8ece793701e4","name":"Get Schema Configuration for protocols enabled source","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config?=","host":["https://platform.segmentapis.com"],"path":["v1beta","workspaces/myworkspace/sources/js","schema-config"],"query":[{"key":"","value":"","description":"Retrieves the schema configuration for a source.  If protocols is not enabled for the source then the configurations specific to protocols will have default values."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 02 May 2019 21:19:14 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Content-Length","value":"74"},{"key":"Connection","value":"keep-alive"},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n \"name\": \"workspaces/myworkspace/sources/js/schema-config\",\n \"parent\": \"sources/js\",\n \"allow_unplanned_track_events\": true,\n \"allow_unplanned_identify_traits\": false,\n \"allow_unplanned_group_traits\": true,\n \"forwarding_blocked_events_to\": \"forwarding_blocked_events_to_source_slug\",\n \"allow_unplanned_track_event_properties\": true,\n \"allow_track_event_on_violations\": false,\n \"allow_identify_traits_on_violations\": true,\n \"allow_group_traits_on_violations\": false,\n \"forwarding_violations_to\": \"forwarding_violations_to_source_slug\",\n \"common_track_event_on_violations\": \"ALLOW\",\n \"common_identify_event_on_violations\": \"OMIT_TRAITS\",\n \"common_group_event_on_violations\": \"BLOCK\",\n}"}],"_postman_id":"a569a00e-d08e-4a7b-bd3b-b637d6883a45"},{"name":"Update Schema Configuration","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Source\" until the end","postman.setNextRequest(\"Create Destination\");"],"type":"text/javascript","id":"12f76da0-f2c3-4e2b-89b1-ba965feef500"}}],"id":"5419741c-a88c-4fd3-803e-fb5ba6cec5e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"schema_config\": {\n    \"allow_unplanned_track_events\": false,\n    \"allow_unplanned_identify_traits\": true,\n    \"allow_unplanned_group_traits\": false,\n    \"forwarding_blocked_events_to\": \"\",\n    \"allow_unplanned_track_event_properties\": true,\n    \"allow_track_event_on_violations\": false,\n    \"allow_identify_traits_on_violations\": true,\n    \"allow_group_traits_on_violations\": false,\n    \"forwarding_violations_to\": \"\",\n    \"allow_track_properties_on_violations\": false,\n    \"common_track_event_on_violations\": \"OMIT_PROPERTIES\",\n\t\"common_identify_event_on_violations\": \"OMIT_TRAITS\",\n\t\"common_group_event_on_violations\": \"BLOCK\"\n  },\n  \"update_mask\": {\n    \"paths\": [\n      \"schema_config.allow_unplanned_track_events\",\n      \"schema_config.allow_unplanned_identify_traits\",\n      \"schema_config.allow_unplanned_group_traits\",\n      \"schema_config.forwarding_blocked_events_to\",\n      \"schema_config.allow_unplanned_track_event_properties\",\n      \"schema_config.allow_track_event_on_violations\",\n      \"schema_config.allow_identify_traits_on_violations\",\n      \"schema_config.allow_group_traits_on_violations\",\n      \"schema_config.forwarding_violations_to\",\n      \"schema_config.allow_track_properties_on_violations\",\n      \"schema_config.common_track_event_on_violations\",\n      \"schema_config.common_identify_event_on_violations\",\n      \"schema_config.common_group_event_on_violations\"\n    ]\n  }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config","description":"<p>Updates the schema configuration for a source. If protocols is not enabled for the source then any updates to protocols specific configurations will not be applied.</p>\n<p>Common JSON schema settings accept the parameters \"ALLOW\", \"OMIT_PROPERTIES\" for Track Events, \"OMIT_TRAITS\" for Identify &amp; Group Events,  and \"BLOCK\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","schema-config"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"cfdb8dfe-3451-4457-8f47-39b6ad01e85f","name":"Update Schema Configuration for a Protocols Enabled Source","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"schema_config\": {\n    \"allow_unplanned_track_events\": false,\n    \"allow_unplanned_identify_traits\": true,\n    \"allow_unplanned_group_traits\": false,\n    \"forwarding_blocked_events_to\": \"forwarding_blocked_events_to_source_slug\",\n    \"allow_unplanned_track_event_properties\": true,\n    \"allow_track_event_on_violations\": false,\n    \"allow_identify_traits_on_violations\": true,\n    \"allow_group_traits_on_violations\": false,\n    \"forwarding_violations_to\": \"forwarding_violations_to_source_slug\",\n    \"common_track_event_on_violations\": \"ALLOW\",\n\t\"common_identify_event_on_violations\": \"ALLOW\",\n\t\"common_group_event_on_violations\": \"ALLOW\"\n  },\n  \"update_mask\": {\n    \"paths\": [\n      \"schema_config.allow_unplanned_track_events\",\n      \"schema_config.allow_unplanned_identify_traits\",\n      \"schema_config.allow_unplanned_group_traits\",\n      \"schema_config.forwarding_blocked_events_to\",\n      \"schema_config.allow_unplanned_track_event_properties\",\n      \"schema_config.allow_track_event_on_violations\",\n      \"schema_config.allow_identify_traits_on_violations\",\n      \"schema_config.allow_group_traits_on_violations\",\n      \"schema_config.forwarding_violations_to\",\n      \"schema_config.common_track_event_on_violations\",\n      \"schema_config.common_identify_event_on_violations\",\n      \"schema_config.common_group_event_on_violations\"\n    ]\n  }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"name\": \"workspaces/myworkspace/sources/js/schema-config\",\n \"parent\": \"sources/js\",\n \"allow_unplanned_track_events\": false,\n \"allow_unplanned_identify_traits\": true,\n \"allow_unplanned_group_traits\": false,\n \"forwarding_blocked_events_to\": \"forwarding_blocked_events_to_source_slug\",\n \"allow_unplanned_track_event_properties\": true,\n \"allow_track_event_on_violations\": false,\n \"allow_identify_traits_on_violations\": true,\n \"allow_group_traits_on_violations\": false,\n \"forwarding_violations_to\": \"forwarding_violations_to_source_slug\",\n \"allow_track_properties_on_violations\": false,\n \"common_track_event_on_violations\": \"ALLOW\",\n \"common_identify_event_on_violations\": \"ALLOW\",\n \"common_group_event_on_violations\": \"ALLOW\"\n}"},{"id":"270774b8-66e2-4a5d-8dba-f76746867f88","name":"Update Schema Configuration for a Protocols Disabled Source","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"schema_config\": {\n    \"allow_unplanned_track_events\": false,\n    \"allow_unplanned_identify_traits\": true,\n    \"allow_unplanned_group_traits\": false,\n    \"forwarding_blocked_events_to\": \"forwarding_blocked_events_to_source_slug\"\n  },\n  \"update_mask\": {\n    \"paths\": [\n      \"schema_config.allow_unplanned_track_events\",\n      \"schema_config.allow_unplanned_identify_traits\",\n      \"schema_config.allow_unplanned_group_traits\",\n      \"schema_config.forwarding_blocked_events_to\"\n    ]\n  }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"name\": \"workspaces/myworkspace/sources/js/schema-config\",\n \"parent\": \"sources/js\",\n \"allow_unplanned_track_events\": false,\n \"allow_unplanned_identify_traits\": true,\n \"allow_unplanned_group_traits\": false,\n \"forwarding_blocked_events_to\": \"forwarding_blocked_events_to_source_slug\",\n \"allow_unplanned_track_event_properties\": false,\n \"allow_track_event_on_violations\": false,\n \"allow_identify_traits_on_violations\": false,\n \"allow_group_traits_on_violations\": false,\n \"forwarding_violations_to\": \"\",\n \"allow_track_properties_on_violations\": false,\n}"},{"id":"a243e594-a2df-42b1-b2be-02b2a8853c24","name":"Update Subset of Schema Configuration for a Protocols Enabled Source","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"schema_config\": {\n    \"allow_unplanned_track_events\": true,\n    \"forwarding_blocked_events_to\": \"foo\",\n    \"allow_unplanned_track_event_properties\": false,\n  },\n  \"update_mask\": {\n    \"paths\": [\n      \"schema_config.allow_unplanned_track_events\",\n      \"schema_config.forwarding_blocked_events_to\",\n      \"schema_config.allow_unplanned_track_event_properties\",\n    ]\n  }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/schema-config"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"name\": \"workspaces/myworkspace/sources/js/schema-config\",\n \"parent\": \"sources/js\",\n \"allow_unplanned_track_events\": true,\n \"allow_unplanned_identify_traits\": true,\n \"allow_unplanned_group_traits\": false,\n \"forwarding_blocked_events_to\": \"foo\",\n \"allow_unplanned_track_event_properties\": false,\n \"allow_track_event_on_violations\": false,\n \"allow_identify_traits_on_violations\": true,\n \"allow_group_traits_on_violations\": false,\n \"forwarding_violations_to\": \"forwarding_violations_to_source_slug\",\n \"allow_track_properties_on_violations\": false,\n \"common_track_event_on_violations\": \"ALLOW\",\n \"common_identify_event_on_violations\": \"ALLOW\",\n \"common_group_event_on_violations\": \"ALLOW\"\n}"}],"_postman_id":"5419741c-a88c-4fd3-803e-fb5ba6cec5e0"},{"name":"Update Connected Warehouses","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Source\" until the end","postman.setNextRequest(\"Create Destination\");"],"type":"text/javascript","id":"9e1a6d75-db5c-47db-8981-89ec02898f0a"}}],"id":"5eaa8dd3-a87c-47aa-bd91-bb0614434472","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"warehouse_id\": \"{{warehouse_id}}\",\n  \"enabled\": false\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/connected-warehouses","description":"<p>Disable or enable a source from syncing to a warehouse using the warehouse id. Use a for loop to update multiple source&lt;&gt;warehouse pairs.</p>\n<p>Note: Only the following roles have permissions to execute the update request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>- Workspace Owner, or\n- Source Admin and Warehouse Admin\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","connected-warehouses"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"0f95b8e1-9af9-40f2-861d-6dc2ece5e4ac","name":"Update Connected Warehouses","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"warehouse_id\": \"{{warehouse_id}}\",\n  \"enabled\": false\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/connected-warehouses"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"5eaa8dd3-a87c-47aa-bd91-bb0614434472"},{"name":"Delete Source","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","// Segment Engineering","// Stop workflow","postman.setNextRequest(null);"],"type":"text/javascript","id":"88919260-b66a-421d-a735-865039c31a95"}}],"id":"8d1c50d3-04da-4af2-9f8e-df8dfde63d6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"fd8963f2-1672-4f03-bab2-27e024f34806","name":"Delete Source","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8d1c50d3-04da-4af2-9f8e-df8dfde63d6d"},{"name":"IsLatestVersion (Source Function)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"854f7b8f-f3ce-4a3c-9147-6cea9251d7c8"}}],"id":"7c08457a-02b5-4b60-a8d5-96a63bac5535","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfn_{{source_id}}/is-latest-version","description":"<p><code>IsLatestVersion</code> is used to check whether a source  instance is running the latest code from its associated source function class. It can be used to determine whether a <code>Deploy</code> is necessary to update the code. If <code>IsLatestVersion</code> is true, <code>Deploy</code> would be a no-op.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions","sfn_{{source_id}}","is-latest-version"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"336cd9ab-dc49-424b-a087-079dbbc3785e","name":"IsLatestVersion","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfn_{{source_id}}/is-latest-version"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n  \"is_latest\": true\n}"}],"_postman_id":"7c08457a-02b5-4b60-a8d5-96a63bac5535"},{"name":"Deploy (Source Function)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"db2296c2-2f06-4bd7-a14d-96f3f86529ab"}}],"id":"50be8b85-3c91-4c8d-95c8-edefcf5aa23c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfn_{{source_id}}/deploy","description":"<p><code>Deploy</code> is used to update the code deployed for a source function instance. It loads the latest code from the associated function class (available in Functions API). </p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions","sfn_{{source_id}}","deploy"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"ac7b9de6-4f5c-4524-8d30-5760ee881448","name":"Deploy","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfn_{{source_id}}/deploy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"50be8b85-3c91-4c8d-95c8-edefcf5aa23c"}],"id":"08e65a5d-6f8a-4eb6-8a62-31553bb56ae8","description":"<h2 id=\"source-model\">Source Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>create_time</td>\n<td>datetime</td>\n<td>Time the source was created</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>catalog_name</td>\n<td>string</td>\n<td>Catalog name of the source</td>\n<td>required</td>\n</tr>\n<tr>\n<td>catalog_id</td>\n<td>string</td>\n<td>Catalog id of the source</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the source</td>\n<td>required</td>\n</tr>\n<tr>\n<td>parent</td>\n<td>string</td>\n<td>Parent workspace of the source</td>\n<td>required</td>\n</tr>\n<tr>\n<td>write_keys</td>\n<td>array[string]</td>\n<td>Write keys of the source</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>library_config</td>\n<td>LibraryConfig</td>\n<td>Config for mobile libraries</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>function_config</td>\n<td>array[object]</td>\n<td>Config for source functions</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <code>name</code> must be unique within the workspace. The <code>catalog_name</code> is available in the Source Catalog APIs. <code>catalog_id</code> can be used in place of <code>catalog_name</code> and is available in the Functions APIs.</p>\n<h2 id=\"library-config-model\">Library Config Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>metrics_enabled</td>\n<td>bool</td>\n<td>Metrics enabled for the source</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>retry_queue</td>\n<td>bool</td>\n<td>Retry queue enabled for the source</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>cross_domain_id_enabled</td>\n<td>bool</td>\n<td>Cross domain enabled for the source</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>api_host</td>\n<td>string</td>\n<td>API host for the library</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"function-config-model\">Function Config Model</h2>\n<p>Only applies to source functions.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The name of the function config.</td>\n<td>required</td>\n</tr>\n<tr>\n<td>value</td>\n<td>object</td>\n<td>The value may be omitted to indicate a partial update.</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>The type of setting defined by the function ('string', 'boolean', 'text-map' 'array')</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example</strong> :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> function_config: [{\n      \"name\": \"arraySetting\",\n      \"value\": [\"a\", \"b\", \"c\"],\n\n    },\n    {\n      \"name\": \"booleanSetting\",\n      \"value\": true,\n    },\n    {\n      \"name\": \"mapSetting\"\n      \"value\": {\n        \"key1\": \"val1\"\n      },\n    },\n    {\n      \"name\": \"sensitiveSetting\",\n      \"value\": \"****\"\n    },\n    {\n      \"name\": \"setting\",\n      \"value\": \"string value\"\n    }]```\n</code></pre>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"fd29e8bd-1003-40b3-ae1b-9c11772cae98"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"ed329a4f-947d-440d-bea2-18e866ffed51"}}],"_postman_id":"08e65a5d-6f8a-4eb6-8a62-31553bb56ae8","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Destinations","item":[{"name":"Create Destination","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (pm.response.code == 200) {","    var r = pm.response.json();","    pm.environment.set(\"destination_name\", r.name);","}"],"type":"text/javascript","id":"3164d905-5005-4a42-8f11-a54a341d096d"}}],"id":"8c8647f8-f9ff-452d-8b25-974082d8c2a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"destination\": {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n      \"config\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n          \"type\": \"string\",\n          \"value\": \"UA-970334309-1\"\n        }\n      ],\n      \"enabled\": false,\n      \"connection_mode\": \"UNSPECIFIED\"\n    }\n  }"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","destinations",""],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"661da214-1fa2-4a86-9dfc-4763a30be26b","name":"Create Destination","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"destination\": {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n      \"config\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n          \"type\": \"string\",\n          \"value\": \"UA-970334309-1\"\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n          \"type\": \"map\",\n          \"value\": {\n            \"User Type\": \"dimension1\",\n            \"Gender\": \"dimension2\"\n          }\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n          \"type\": \"boolean\",\n          \"value\": true\n        }\n      ],\n      \"enabled\": false\n    }\n  }"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Oct 2018 21:24:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6290"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"114"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n    \"parent\": \"workspaces/myworkspace/sources/js\",\n    \"display_name\": \"Google Analytics\",\n    \"enabled\": false,\n    \"config\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyEventName\",\n            \"display_name\": \"Server Side Identify Event Action\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"display_name\": \"Ignored Referrers\",\n            \"type\": \"multi-line-string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/ignoredReferrers\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackNamedPages\",\n            \"display_name\": \"Track Named Pages\",\n            \"value\": true\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n            \"display_name\": \"Website Tracking ID\",\n            \"value\": \"UA-970334309-1\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/classic\",\n            \"display_name\": \"Use Classic Analytics on Your Site\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/doubleClick\",\n            \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedEcommerce\",\n            \"display_name\": \"Enable Enhanced Ecommerce\"\n        },\n        {\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideTrackingId\",\n            \"display_name\": \"Serverside Tracking ID\"\n        },\n        {\n            \"display_name\": \"Enable Enhanced Link Attribution\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedLinkAttribution\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/optimize\",\n            \"display_name\": \"Optimize Container ID\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/protocolMappings\",\n            \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n            \"type\": \"map\"\n        },\n        {\n            \"display_name\": \"Sample Rate\",\n            \"value\": 100,\n            \"type\": \"number\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sampleRate\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sendUserId\",\n            \"display_name\": \"Send User-ID to GA\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/domain\",\n            \"display_name\": \"Cookie Domain Name\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/reportUncaughtExceptions\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/siteSpeedSampleRate\",\n            \"display_name\": \"Site Speed Sample Rate\",\n            \"value\": 1,\n            \"type\": \"number\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/contentGroupings\",\n            \"display_name\": \"Content Groupings\",\n            \"type\": \"map\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideClassic\",\n            \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackCategorizedPages\",\n            \"display_name\": \"Track Categorized Pages\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"type\": \"map\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n            \"display_name\": \"Custom Dimensions\",\n            \"value\": {\n                \"User Type\": \"dimension1\",\n                \"Gender\": \"dimension2\"\n            }\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyCategory\",\n            \"display_name\": \"Server Side Identify Event Category\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nonInteraction\",\n            \"display_name\": \"Add the non-interaction flag to all events\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/useGoogleAmpClientId\",\n            \"display_name\": \"Use Google AMP Client ID\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/anonymizeIp\",\n            \"display_name\": \"Anonymize IP Addresses\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/includeSearch\",\n            \"display_name\": \"Include the Querystring in Page Views\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n            \"display_name\": \"Enable Server Side Identify\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/metrics\",\n            \"display_name\": \"Custom Metrics\",\n            \"type\": \"map\"\n        },\n        {\n            \"display_name\": \"Mobile Tracking ID\",\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/mobileTrackingId\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nameTracker\",\n            \"display_name\": \"Name Tracker\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/setAllMappedProps\",\n            \"display_name\": \"Set Custom Dimensions & Metrics to the Page\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        }\n    ],\n    \"create_time\": \"2018-10-17T21:24:06.853Z\",\n    \"update_time\": \"2018-10-17T21:24:06.853Z\"\n}"}],"_postman_id":"8c8647f8-f9ff-452d-8b25-974082d8c2a4"},{"name":"Get Destination","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"07b02e39-2ffe-4208-ab72-72f62308a99a"}}],"id":"ae5742f6-de76-49be-a7f0-4fd538ed10a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"0363350c-de56-431e-8d6b-af8c1f89ee75","name":"Get Destination","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n    \"parent\": \"workspaces/myworkspace/sources/js\",\n    \"display_name\": \"Google Analytics\",\n    \"enabled\": false,\n    \"config\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyEventName\",\n            \"display_name\": \"Server Side Identify Event Action\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"display_name\": \"Ignored Referrers\",\n            \"type\": \"multi-line-string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/ignoredReferrers\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackNamedPages\",\n            \"display_name\": \"Track Named Pages\",\n            \"value\": true\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n            \"display_name\": \"Website Tracking ID\",\n            \"value\": \"UA-970334309-1\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/classic\",\n            \"display_name\": \"Use Classic Analytics on Your Site\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/doubleClick\",\n            \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedEcommerce\",\n            \"display_name\": \"Enable Enhanced Ecommerce\"\n        },\n        {\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideTrackingId\",\n            \"display_name\": \"Serverside Tracking ID\"\n        },\n        {\n            \"display_name\": \"Enable Enhanced Link Attribution\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedLinkAttribution\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/optimize\",\n            \"display_name\": \"Optimize Container ID\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/protocolMappings\",\n            \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n            \"type\": \"map\"\n        },\n        {\n            \"display_name\": \"Sample Rate\",\n            \"value\": 100,\n            \"type\": \"number\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sampleRate\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sendUserId\",\n            \"display_name\": \"Send User-ID to GA\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/domain\",\n            \"display_name\": \"Cookie Domain Name\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/reportUncaughtExceptions\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/siteSpeedSampleRate\",\n            \"display_name\": \"Site Speed Sample Rate\",\n            \"value\": 1,\n            \"type\": \"number\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/contentGroupings\",\n            \"display_name\": \"Content Groupings\",\n            \"type\": \"map\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideClassic\",\n            \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackCategorizedPages\",\n            \"display_name\": \"Track Categorized Pages\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"type\": \"map\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n            \"display_name\": \"Custom Dimensions\",\n            \"value\": {\n                \"User Type\": \"dimension1\",\n                \"Gender\": \"dimension2\"\n            }\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyCategory\",\n            \"display_name\": \"Server Side Identify Event Category\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nonInteraction\",\n            \"display_name\": \"Add the non-interaction flag to all events\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/useGoogleAmpClientId\",\n            \"display_name\": \"Use Google AMP Client ID\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/anonymizeIp\",\n            \"display_name\": \"Anonymize IP Addresses\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/includeSearch\",\n            \"display_name\": \"Include the Querystring in Page Views\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n            \"display_name\": \"Enable Server Side Identify\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/metrics\",\n            \"display_name\": \"Custom Metrics\",\n            \"type\": \"map\"\n        },\n        {\n            \"display_name\": \"Mobile Tracking ID\",\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/mobileTrackingId\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nameTracker\",\n            \"display_name\": \"Name Tracker\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/setAllMappedProps\",\n            \"display_name\": \"Set Custom Dimensions & Metrics to the Page\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        }\n    ],\n    \"create_time\": \"2018-10-17T21:24:06.853Z\",\n    \"update_time\": \"2018-10-17T21:24:06.853Z\"\n}"}],"_postman_id":"ae5742f6-de76-49be-a7f0-4fd538ed10a5"},{"name":"Get Destination By ConfigID","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"880b181e-7cf6-40e3-bedb-23cb6a058e87"}}],"id":"d67eafc4-b948-4689-ac3f-6ca1acb4f159","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/{{destination_config_name}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","{{destination_config_name}}"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"491f0c79-2884-496f-8ba2-8394f31e34a2","name":"Get Destination By ConfigID","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/{{destination_config_name}}"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n    \"parent\": \"workspaces/myworkspace/sources/js\",\n    \"display_name\": \"Google Analytics\",\n    \"enabled\": false,\n    \"config\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyEventName\",\n            \"display_name\": \"Server Side Identify Event Action\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"display_name\": \"Ignored Referrers\",\n            \"type\": \"multi-line-string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/ignoredReferrers\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackNamedPages\",\n            \"display_name\": \"Track Named Pages\",\n            \"value\": true\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n            \"display_name\": \"Website Tracking ID\",\n            \"value\": \"UA-970334309-1\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/classic\",\n            \"display_name\": \"Use Classic Analytics on Your Site\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/doubleClick\",\n            \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedEcommerce\",\n            \"display_name\": \"Enable Enhanced Ecommerce\"\n        },\n        {\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideTrackingId\",\n            \"display_name\": \"Serverside Tracking ID\"\n        },\n        {\n            \"display_name\": \"Enable Enhanced Link Attribution\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedLinkAttribution\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/optimize\",\n            \"display_name\": \"Optimize Container ID\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/protocolMappings\",\n            \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n            \"type\": \"map\"\n        },\n        {\n            \"display_name\": \"Sample Rate\",\n            \"value\": 100,\n            \"type\": \"number\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sampleRate\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sendUserId\",\n            \"display_name\": \"Send User-ID to GA\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/domain\",\n            \"display_name\": \"Cookie Domain Name\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/reportUncaughtExceptions\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/siteSpeedSampleRate\",\n            \"display_name\": \"Site Speed Sample Rate\",\n            \"value\": 1,\n            \"type\": \"number\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/contentGroupings\",\n            \"display_name\": \"Content Groupings\",\n            \"type\": \"map\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideClassic\",\n            \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackCategorizedPages\",\n            \"display_name\": \"Track Categorized Pages\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"type\": \"map\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n            \"display_name\": \"Custom Dimensions\",\n            \"value\": {\n                \"User Type\": \"dimension1\",\n                \"Gender\": \"dimension2\"\n            }\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyCategory\",\n            \"display_name\": \"Server Side Identify Event Category\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nonInteraction\",\n            \"display_name\": \"Add the non-interaction flag to all events\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/useGoogleAmpClientId\",\n            \"display_name\": \"Use Google AMP Client ID\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/anonymizeIp\",\n            \"display_name\": \"Anonymize IP Addresses\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/includeSearch\",\n            \"display_name\": \"Include the Querystring in Page Views\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n            \"display_name\": \"Enable Server Side Identify\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/metrics\",\n            \"display_name\": \"Custom Metrics\",\n            \"type\": \"map\"\n        },\n        {\n            \"display_name\": \"Mobile Tracking ID\",\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/mobileTrackingId\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nameTracker\",\n            \"display_name\": \"Name Tracker\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/setAllMappedProps\",\n            \"display_name\": \"Set Custom Dimensions & Metrics to the Page\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        }\n    ],\n    \"create_time\": \"2018-10-17T21:24:06.853Z\",\n    \"update_time\": \"2018-10-17T21:24:06.853Z\"\n}"}],"_postman_id":"d67eafc4-b948-4689-ac3f-6ca1acb4f159"},{"name":"List Destinations","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"903e9563-4b12-4eec-b1e0-87b00d229081"}}],"id":"5a933b81-9b00-425b-ab62-2e6f522ad5fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","destinations",""],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"3c5f0739-9576-4b5f-8bf4-5c2657ccb8f5","name":"List Destinations","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Oct 2018 21:37:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6719"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"498"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"destinations\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n            \"parent\": \"workspaces/myworkspace/sources/js\",\n            \"display_name\": \"Google Analytics\",\n            \"enabled\": true,\n            \"connection_mode\": \"CLOUD\",\n            \"config\": [\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/domain\",\n                    \"display_name\": \"Cookie Domain Name\",\n                    \"value\": \"\",\n                    \"type\": \"string\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/metrics\",\n                    \"display_name\": \"Custom Metrics\",\n                    \"type\": \"map\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/anonymizeIp\",\n                    \"display_name\": \"Anonymize IP Addresses\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/includeSearch\",\n                    \"display_name\": \"Include the Querystring in Page Views\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyEventName\",\n                    \"display_name\": \"Server Side Identify Event Action\",\n                    \"value\": \"\",\n                    \"type\": \"string\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/optimize\",\n                    \"display_name\": \"Optimize Container ID\",\n                    \"value\": \"\",\n                    \"type\": \"string\"\n                },\n                {\n                    \"value\": true,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/setAllMappedProps\",\n                    \"display_name\": \"Set Custom Dimensions & Metrics to the Page\"\n                },\n                {\n                    \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n                    \"value\": false,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/doubleClick\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/contentGroupings\",\n                    \"display_name\": \"Content Groupings\",\n                    \"type\": \"map\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedLinkAttribution\",\n                    \"display_name\": \"Enable Enhanced Link Attribution\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sendUserId\",\n                    \"display_name\": \"Send User-ID to GA\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nameTracker\",\n                    \"display_name\": \"Name Tracker\",\n                    \"value\": false\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nonInteraction\",\n                    \"display_name\": \"Add the non-interaction flag to all events\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"type\": \"string\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyCategory\",\n                    \"display_name\": \"Server Side Identify Event Category\",\n                    \"value\": \"\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedEcommerce\",\n                    \"display_name\": \"Enable Enhanced Ecommerce\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"value\": true,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackCategorizedPages\",\n                    \"display_name\": \"Track Categorized Pages\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n                    \"display_name\": \"Custom Dimensions\",\n                    \"value\": {\n                        \"User Type\": \"dimension1\",\n                        \"Gender\": \"dimension2\"\n                    },\n                    \"type\": \"map\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/mobileTrackingId\",\n                    \"display_name\": \"Mobile Tracking ID\",\n                    \"value\": \"\",\n                    \"type\": \"string\"\n                },\n                {\n                    \"value\": \"\",\n                    \"type\": \"string\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideTrackingId\",\n                    \"display_name\": \"Serverside Tracking ID\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n                    \"display_name\": \"Website Tracking ID\",\n                    \"value\": \"UA-970334309-1\",\n                    \"type\": \"string\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackNamedPages\",\n                    \"display_name\": \"Track Named Pages\",\n                    \"value\": true,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/siteSpeedSampleRate\",\n                    \"display_name\": \"Site Speed Sample Rate\",\n                    \"value\": 1,\n                    \"type\": \"number\"\n                },\n                {\n                    \"value\": true,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n                    \"display_name\": \"Enable Server Side Identify\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/classic\",\n                    \"display_name\": \"Use Classic Analytics on Your Site\",\n                    \"value\": false,\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sampleRate\",\n                    \"display_name\": \"Sample Rate\",\n                    \"value\": 100,\n                    \"type\": \"number\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/ignoredReferrers\",\n                    \"display_name\": \"Ignored Referrers\",\n                    \"type\": \"multi-line-string\"\n                },\n                {\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/protocolMappings\",\n                    \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n                    \"type\": \"map\"\n                },\n                {\n                    \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\",\n                    \"value\": false,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideClassic\"\n                },\n                {\n                    \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n                    \"value\": false,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/reportUncaughtExceptions\"\n                },\n                {\n                    \"value\": false,\n                    \"type\": \"boolean\",\n                    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/useGoogleAmpClientId\",\n                    \"display_name\": \"Use Google AMP Client ID\"\n                }\n            ],\n            \"create_time\": \"2018-10-17T21:24:06.853Z\",\n            \"update_time\": \"2018-10-17T21:31:09.582Z\"\n        }\n    ],\n    \"next_page_token\": \"\"\n}"}],"_postman_id":"5a933b81-9b00-425b-ab62-2e6f522ad5fe"},{"name":"Update Destination","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Destination\" until the end","postman.setNextRequest(\"Create Tracking Plan\");"],"type":"text/javascript","id":"903a8b56-9f1f-4639-b291-aaefbe750934"}}],"id":"7e51883b-5946-4f95-adc3-c2bc3aa859c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"destination\": {\n\t\t\"enabled\": true,\n\t\t\"config\": [\n\t\t\t{\n\t\t\t\t\"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\"value\": true\n        \t}\n    \t]\n    },\n    \"update_mask\": {\n\t\t\"paths\": [\n\t\t\t\"destination.config\",\n\t\t\t\"destination.enabled\"\n\t\t]\n    }\n  }"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics","description":"<p>Note:</p>\n<p>If you attempt to update read-only settings for your destination you'll encounter the following behavior:</p>\n<ul>\n<li><p>If only read-only properties are being updated, the endpoint will return an HTTP 400 error.</p>\n</li>\n<li><p>If there's a mix of writable and read-only properties in the payload, the request will be accepted, the writable properties will be updated and the read-only properties ignored.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"645a17da-8147-44ee-b115-cae25c06a876","name":"Update Destination","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"destination\": {\n\t\t\"enabled\": true,\n\t\t\"config\": [\n\t\t\t{\n\t\t\t\t\"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\"value\": true\n        \t}\n    \t]\n    },\n    \"update_mask\": {\n\t\t\"paths\": [\n\t\t\t\"destination.config\",\n\t\t\t\"destination.enabled\"\n\t\t]\n    }\n  }"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Oct 2018 21:31:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6289"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"247"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n    \"parent\": \"workspaces/myworkspace/sources/js\",\n    \"display_name\": \"Google Analytics\",\n    \"enabled\": true,\n    \"connection_mode\": \"CLOUD\",\n    \"config\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/siteSpeedSampleRate\",\n            \"display_name\": \"Site Speed Sample Rate\",\n            \"value\": 1,\n            \"type\": \"number\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedLinkAttribution\",\n            \"display_name\": \"Enable Enhanced Link Attribution\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sendUserId\",\n            \"display_name\": \"Send User-ID to GA\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/metrics\",\n            \"display_name\": \"Custom Metrics\",\n            \"type\": \"map\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nameTracker\",\n            \"display_name\": \"Name Tracker\",\n            \"value\": false\n        },\n        {\n            \"display_name\": \"Serverside Tracking ID\",\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideTrackingId\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n            \"display_name\": \"Website Tracking ID\",\n            \"value\": \"UA-970334309-1\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n            \"display_name\": \"Custom Dimensions\",\n            \"value\": {\n                \"User Type\": \"dimension1\",\n                \"Gender\": \"dimension2\"\n            },\n            \"type\": \"map\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/classic\",\n            \"display_name\": \"Use Classic Analytics on Your Site\",\n            \"value\": false\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/domain\",\n            \"display_name\": \"Cookie Domain Name\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/doubleClick\",\n            \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/ignoredReferrers\",\n            \"display_name\": \"Ignored Referrers\",\n            \"type\": \"multi-line-string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/reportUncaughtExceptions\",\n            \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideClassic\",\n            \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/anonymizeIp\",\n            \"display_name\": \"Anonymize IP Addresses\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyCategory\",\n            \"display_name\": \"Server Side Identify Event Category\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nonInteraction\",\n            \"display_name\": \"Add the non-interaction flag to all events\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedEcommerce\",\n            \"display_name\": \"Enable Enhanced Ecommerce\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n            \"display_name\": \"Enable Server Side Identify\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyEventName\",\n            \"display_name\": \"Server Side Identify Event Action\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"value\": true,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/setAllMappedProps\",\n            \"display_name\": \"Set Custom Dimensions & Metrics to the Page\"\n        },\n        {\n            \"display_name\": \"Track Named Pages\",\n            \"value\": true,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackNamedPages\"\n        },\n        {\n            \"type\": \"map\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/contentGroupings\",\n            \"display_name\": \"Content Groupings\"\n        },\n        {\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/optimize\",\n            \"display_name\": \"Optimize Container ID\"\n        },\n        {\n            \"display_name\": \"Track Categorized Pages\",\n            \"value\": true,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackCategorizedPages\"\n        },\n        {\n            \"display_name\": \"Include the Querystring in Page Views\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/includeSearch\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/protocolMappings\",\n            \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n            \"type\": \"map\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sampleRate\",\n            \"display_name\": \"Sample Rate\",\n            \"value\": 100,\n            \"type\": \"number\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/useGoogleAmpClientId\",\n            \"display_name\": \"Use Google AMP Client ID\",\n            \"value\": false\n        },\n        {\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/mobileTrackingId\",\n            \"display_name\": \"Mobile Tracking ID\",\n            \"value\": \"\"\n        }\n    ],\n    \"create_time\": \"2018-10-17T21:24:06.853Z\",\n    \"update_time\": \"2018-10-17T21:31:09.582Z\"\n}"}],"_postman_id":"7e51883b-5946-4f95-adc3-c2bc3aa859c2"},{"name":"Update Destination By ConfigID","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Destination\" until the end","postman.setNextRequest(\"Create Tracking Plan\");"],"type":"text/javascript","id":"4379fa25-d334-424b-adbf-443685c3b48d"}}],"id":"0a160179-fa6a-4771-91c2-2eb5ac1f0c58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/{{destination_config_name}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","{{destination_config_name}}"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"d5511a10-f85d-41c2-8bee-1ad28de630b5","name":"Update Destination By ConfigID","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/{{destination_config_name}}"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics\",\n    \"parent\": \"workspaces/myworkspace/sources/js\",\n    \"display_name\": \"Google Analytics\",\n    \"enabled\": true,\n    \"connection_mode\": \"CLOUD\",\n    \"config\": [\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/siteSpeedSampleRate\",\n            \"display_name\": \"Site Speed Sample Rate\",\n            \"value\": 1,\n            \"type\": \"number\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedLinkAttribution\",\n            \"display_name\": \"Enable Enhanced Link Attribution\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sendUserId\",\n            \"display_name\": \"Send User-ID to GA\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/metrics\",\n            \"display_name\": \"Custom Metrics\",\n            \"type\": \"map\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nameTracker\",\n            \"display_name\": \"Name Tracker\",\n            \"value\": false\n        },\n        {\n            \"display_name\": \"Serverside Tracking ID\",\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideTrackingId\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackingId\",\n            \"display_name\": \"Website Tracking ID\",\n            \"value\": \"UA-970334309-1\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/dimensions\",\n            \"display_name\": \"Custom Dimensions\",\n            \"value\": {\n                \"User Type\": \"dimension1\",\n                \"Gender\": \"dimension2\"\n            },\n            \"type\": \"map\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/classic\",\n            \"display_name\": \"Use Classic Analytics on Your Site\",\n            \"value\": false\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/domain\",\n            \"display_name\": \"Cookie Domain Name\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/doubleClick\",\n            \"display_name\": \"Remarketing, Display Ads and Demographic Reports.\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/ignoredReferrers\",\n            \"display_name\": \"Ignored Referrers\",\n            \"type\": \"multi-line-string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/reportUncaughtExceptions\",\n            \"display_name\": \"Send Uncaught Exceptions to GA (Mobile)\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/serversideClassic\",\n            \"display_name\": \"Use Classic Analytics for Your Serverside Tracking\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/anonymizeIp\",\n            \"display_name\": \"Anonymize IP Addresses\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyCategory\",\n            \"display_name\": \"Server Side Identify Event Category\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/nonInteraction\",\n            \"display_name\": \"Add the non-interaction flag to all events\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enhancedEcommerce\",\n            \"display_name\": \"Enable Enhanced Ecommerce\",\n            \"value\": false,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/enableServerIdentify\",\n            \"display_name\": \"Enable Server Side Identify\",\n            \"value\": true,\n            \"type\": \"boolean\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/identifyEventName\",\n            \"display_name\": \"Server Side Identify Event Action\",\n            \"value\": \"\",\n            \"type\": \"string\"\n        },\n        {\n            \"value\": true,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/setAllMappedProps\",\n            \"display_name\": \"Set Custom Dimensions & Metrics to the Page\"\n        },\n        {\n            \"display_name\": \"Track Named Pages\",\n            \"value\": true,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackNamedPages\"\n        },\n        {\n            \"type\": \"map\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/contentGroupings\",\n            \"display_name\": \"Content Groupings\"\n        },\n        {\n            \"value\": \"\",\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/optimize\",\n            \"display_name\": \"Optimize Container ID\"\n        },\n        {\n            \"display_name\": \"Track Categorized Pages\",\n            \"value\": true,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/trackCategorizedPages\"\n        },\n        {\n            \"display_name\": \"Include the Querystring in Page Views\",\n            \"value\": false,\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/includeSearch\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/protocolMappings\",\n            \"display_name\": \"Map Traits or Properties to Measurement Protocol Params\",\n            \"type\": \"map\"\n        },\n        {\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/sampleRate\",\n            \"display_name\": \"Sample Rate\",\n            \"value\": 100,\n            \"type\": \"number\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/useGoogleAmpClientId\",\n            \"display_name\": \"Use Google AMP Client ID\",\n            \"value\": false\n        },\n        {\n            \"type\": \"string\",\n            \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/mobileTrackingId\",\n            \"display_name\": \"Mobile Tracking ID\",\n            \"value\": \"\"\n        }\n    ],\n    \"create_time\": \"2018-10-17T21:24:06.853Z\",\n    \"update_time\": \"2018-10-17T21:31:09.582Z\"\n}"}],"_postman_id":"0a160179-fa6a-4771-91c2-2eb5ac1f0c58"},{"name":"Delete Destination","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Source\" until the end","postman.setNextRequest(\"Delete Source\");"],"type":"text/javascript","id":"8a4a2c7f-75af-475e-a18e-984f241e882d"}}],"id":"b4c0cfe5-15d2-482f-a2ba-b7e20fd7c8a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"ccf7087d-1526-41d4-a10e-5f477c3c4ed9","name":"Delete Destination","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics"],"query":[{"key":"page_size","value":"2","disabled":true},{"key":"page_token","value":"MjAxNi0wNC0yOVQxNTo0OTozMi40Wg==","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"834"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"55"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"b4c0cfe5-15d2-482f-a2ba-b7e20fd7c8a6"},{"name":"Delete Destination By ConfigID","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Source\" until the end","postman.setNextRequest(\"Delete Source\");"],"type":"text/javascript","id":"bf7b4aff-9a00-4bda-af4b-5ebf96258245"}}],"id":"4a5c68d4-6ebc-4075-9d2b-553009d99302","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/{{destination_config_name}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","{{destination_config_name}}"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"49831595-deea-4dbc-8a31-dcb49e28bc55","name":"Delete Destination By ConfigID","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics"],"query":[{"key":"page_size","value":"2","disabled":true},{"key":"page_token","value":"MjAxNi0wNC0yOVQxNTo0OTozMi40Wg==","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"834"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"55"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"4a5c68d4-6ebc-4075-9d2b-553009d99302"}],"id":"b7d47b24-e4cc-4577-be56-a8d358144273","description":"<h2 id=\"destination-model\">Destination Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>create_time</td>\n<td>datetime</td>\n<td>Time the destination was created</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Display name of the destination</td>\n<td>required</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the destination</td>\n<td>required</td>\n</tr>\n<tr>\n<td>catalog_id</td>\n<td>string</td>\n<td>Catalog ID of the destination</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>parent</td>\n<td>string</td>\n<td>Parent source of the destination</td>\n<td>required</td>\n</tr>\n<tr>\n<td>connection_mode</td>\n<td>string</td>\n<td>Connection mode of the destination</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>enabled</td>\n<td>bool</td>\n<td>Delivery enabled for the destination</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>config</td>\n<td>object</td>\n<td>Config of the destination</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>update_time</td>\n<td>datetime</td>\n<td>Time the destination was updated</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <code>config</code> options and <code>name</code> is available in the destination catalog APIs.\n<code>catalog_id</code> can be used in place of <code>catalog_name</code> and is available in the Functions APIs for Destination Functions.</p>\n<p>For destinations that support <code>connection_mode</code>, valid values are <code>CLOUD</code> or <code>DEVICE</code>.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"f0a6f344-4cb8-43c3-8cc3-709836e9a571"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"0c324487-7a07-4d0f-877a-30a76ce0d007"}}],"_postman_id":"b7d47b24-e4cc-4577-be56-a8d358144273","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Tracking Plans","item":[{"name":"Create Tracking Plan","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","var r = pm.response.json();","pm.environment.set(\"tracking_plan_name\", r.name);"],"type":"text/javascript","id":"ebbf52a0-fc1e-4a7a-98e8-7ab8523e973e"}}],"id":"7b395204-a36c-42c5-9e96-bcf249a0aee9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n      \"display_name\": \"Kicks App\",\n      \"rules\": {\n        \"global\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"librarry\": {\n                  \"type\": [ \"object\" ]\n                }\n              },\n              \"required\": [ \"library\" ]\n            },\n            \"properties\": {},\n            \"traits\": {}\n          }\n        },\n        \"events\": [\n          {\n            \"name\": \"Order Completed\",\n            \"description\": \"Who bought what\",\n            \"rules\": {\n              \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n              \"type\": \"object\",\n              \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"product\": {\n                      \"type\": [ \"string\" ]\n                    },\n                    \"price\": {\n                      \"type\": [ \"number\" ]\n                    },\n                    \"amount\": {\n                      \"type\": [ \"number\" ]\n                    }\n                  },\n                  \"required\": [\n                    \"product\",\n                    \"price\",\n                    \"amount\"\n                  ]\n                },\n                \"traits\": {}\n              }\n            }\n          }\n        ],\n        \"identify\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {},\n            \"properties\": {},\n            \"traits\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"name\": {\n                  \"type\": [ \"string\" ]\n                },\n                \"age\": {\n                  \"type\": [ \"number\" ]\n                },\n                \"occupation\": {\n                  \"type\": [ \"string\" ]\n                }\n              },\n              \"required\": [ \"name\" ]\n            }\n          }\n        },\n        \"group\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {},\n            \"properties\": {},\n            \"traits\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"company\": {\n                  \"type\": [ \"object\" ]\n                }\n              },\n              \"required\": [ \"company\" ]\n            }\n          }\n        }\n      }\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","tracking-plans",""],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"15565039-a545-412f-a025-a2ac22b78a60","name":"Create Tracking Plan","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n      \"display_name\": \"Kicks App\",\n      \"rules\": {\n        \"global\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"librarry\": {\n                  \"type\": [ \"object\" ]\n                }\n              },\n              \"required\": [ \"library\" ]\n            },\n            \"properties\": {},\n            \"traits\": {}\n          }\n        },\n        \"events\": [\n          {\n            \"name\": \"Order Completed\",\n            \"description\": \"Who bought what\",\n            \"rules\": {\n              \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n              \"type\": \"object\",\n              \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"product\": {\n                      \"type\": [ \"string\" ]\n                    },\n                    \"price\": {\n                      \"type\": [ \"number\" ]\n                    },\n                    \"amount\": {\n                      \"type\": [ \"number\" ]\n                    }\n                  },\n                  \"required\": [\n                    \"product\",\n                    \"price\",\n                    \"amount\"\n                  ]\n                },\n                \"traits\": {}\n              }\n            }\n          }\n        ],\n        \"identify\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {},\n            \"properties\": {},\n            \"traits\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"name\": {\n                  \"type\": [ \"string\" ]\n                },\n                \"age\": {\n                  \"type\": [ \"number\" ]\n                },\n                \"occupation\": {\n                  \"type\": [ \"string\" ]\n                }\n              },\n              \"required\": [ \"name\" ]\n            }\n          }\n        },\n        \"group\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {},\n            \"properties\": {},\n            \"traits\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"company\": {\n                  \"type\": [ \"object\" ]\n                }\n              },\n              \"required\": [ \"company\" ]\n            }\n          }\n        }\n      }\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Oct 2018 22:48:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"845"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"110"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"tracking_plan\": {\n      \"display_name\": \"Kicks App\",\n      \"rules\": {\n        \"global\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"librarry\": {\n                  \"type\": [ \"object\" ]\n                }\n              },\n              \"required\": [ \"library\" ]\n            },\n            \"properties\": {},\n            \"traits\": {}\n          }\n        },\n        \"events\": [\n          {\n            \"name\": \"Order Completed\",\n            \"version\": 1,\n            \"description\": \"Who bought what\",\n            \"rules\": {\n              \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n              \"type\": \"object\",\n              \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"product\": {\n                      \"type\": [ \"string\" ]\n                    },\n                    \"price\": {\n                      \"type\": [ \"number\" ]\n                    },\n                    \"amount\": {\n                      \"type\": [ \"number\" ]\n                    }\n                  },\n                  \"required\": [\n                    \"product\",\n                    \"price\",\n                    \"amount\"\n                  ]\n                },\n                \"traits\": {}\n              }\n            }\n          }\n        ],\n        \"identify\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {},\n            \"properties\": {},\n            \"traits\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"name\": {\n                  \"type\": [ \"string\" ]\n                },\n                \"age\": {\n                  \"type\": [ \"number\" ]\n                },\n                \"occupation\": {\n                  \"type\": [ \"string\" ]\n                }\n              },\n              \"required\": [ \"name\" ]\n            }\n          }\n        },\n        \"group\": {\n          \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n          \"type\": \"object\",\n          \"properties\": {\n            \"context\": {},\n            \"properties\": {},\n            \"traits\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"company\": {\n                  \"type\": [ \"object\" ]\n                }\n              },\n              \"required\": [ \"company\" ]\n            }\n          }\n        }\n      }\n    }\n}"}],"_postman_id":"7b395204-a36c-42c5-9e96-bcf249a0aee9"},{"name":"Get Tracking Plan","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"8acb79d2-0265-40fc-894e-2fef3d4e5805"}}],"id":"300a6917-b8af-4170-8785-46d6879d4887","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123","description":"<p>It is expected that a tracking plan that includes a <code>null</code> enum value as a property field will denote that value as a string (\"null\"). See documented <code>Get Tracking Plan With Null Enum</code> call, and documented <code>Update Tracking Plan With Null Enum</code> calls for examples.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"4322348f-cdc0-4a02-b390-81d935a29c73","name":"Get Tracking Plan","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Oct 2018 21:41:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"119"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"8"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/tracking-plans/rs_123\",\n    \"display_name\": \"Kicks App\",\n    \"rules\": {\n        \"identify_traits\": [],\n        \"group_traits\": [],\n        \"events\": [\n            {\n                \"name\": \"Order Completed\",\n                \"description\": \"Who bought what\",\n                \"version\": 1,\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"context\": {},\n                        \"traits\": {},\n                        \"properties\": {\n                            \"required\": [\n                                \"product\",\n                                \"price\",\n                                \"amount\"\n                            ],\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                },\n                                \"amount\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        ],\n        \"global\": {\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"context\": {\n                    \"required\": [\n                        \"library\"\n                    ],\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"librarry\": {\n                            \"type\": [\n                                \"object\"\n                            ]\n                        }\n                    }\n                },\n                \"traits\": {},\n                \"properties\": {}\n            }\n        },\n        \"identify\": {\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"traits\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"occupation\": {\n                            \"type\": [\n                                \"string\"\n                            ]\n                        },\n                        \"age\": {\n                            \"type\": [\n                                \"number\"\n                            ]\n                        },\n                        \"name\": {\n                            \"type\": [\n                                \"string\"\n                            ]\n                        }\n                    },\n                    \"required\": [\n                        \"name\"\n                    ]\n                },\n                \"properties\": {},\n                \"context\": {}\n            }\n        },\n        \"group\": {\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"properties\": {},\n                \"context\": {},\n                \"traits\": {\n                    \"properties\": {\n                        \"company\": {\n                            \"type\": [\n                                \"object\"\n                            ]\n                        }\n                    },\n                    \"required\": [\n                        \"company\"\n                    ],\n                    \"type\": \"object\"\n                }\n            }\n        }\n    },\n    \"create_time\": \"2019-02-05T01:21:25Z\",\n    \"update_time\": \"2019-02-05T01:21:25Z\"\n}"},{"id":"f80e970a-c4a5-41e1-a4b8-add3e7b7b2d7","name":"Get Tracking Plan With Null Enum","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/business/tracking-plans/rs_1bxb4RSGi54Poxe5naPiiqswDXE\",\n  \"display_name\": \"Kicks App\",\n  \"rules\": {\n    \"identify_traits\": [],\n    \"group_traits\": [],\n    \"events\": [\n      {\n        \"name\": \"New Event\",\n        \"rules\": {\n          \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n          \"properties\": {\n            \"context\": {\n              \"type\": \"object\"\n            },\n            \"properties\": {\n              \"properties\": {\n                \"item_description\": {\n                  \"description\": \"\",\n                  \"type\": [\n                    \"string\",\n                    \"null\"\n                  ]\n                },\n                \"item_name\": {\n                  \"description\": \"\",\n                  \"enum\": [\n                    \"null\"\n                  ],\n                  \"type\": [\n                    \"string\",\n                    \"null\"\n                  ]\n                }\n              },\n              \"type\": \"object\"\n            },\n            \"traits\": {\n              \"type\": \"object\"\n            }\n          },\n          \"type\": \"object\"\n        },\n        \"version\": 1\n      }\n    ],\n    \"global\": {\n      \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n      \"properties\": {\n        \"context\": {\n          \"type\": \"object\"\n        },\n        \"properties\": {\n          \"type\": \"object\"\n        },\n        \"traits\": {\n          \"type\": \"object\"\n        }\n      },\n      \"type\": \"object\"\n    },\n    \"identify\": null,\n    \"group\": null\n  },\n  \"create_time\": \"2020-05-15T21:01:39Z\",\n  \"update_time\": \"2020-06-30T19:29:26Z\"\n}"}],"_postman_id":"300a6917-b8af-4170-8785-46d6879d4887"},{"name":"List Tracking Plans","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"bf6c05cf-19d0-498f-b2df-6a816525b4e2"}}],"id":"c288e169-e9ee-45b5-8e72-bf6dda8018a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/","description":"<p>Note: does not currently support pagination.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","tracking-plans",""],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"21dcfa7f-2301-429c-9587-af1dfd4f5e5c","name":"List Tracking Plans","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Oct 2018 21:41:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"119"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"8"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"tracking_plans\": [\n        {\n            \"name\": \"workspaces/myworkspace/tracking-plans/rs_123\",\n            \"display_name\": \"Kicks App\",\n            \"rules\": {\n                \"identify_traits\": [],\n                \"group_traits\": [],\n                \"events\": []\n            },\n            \"create_time\": \"2019-02-05T00:28:31Z\",\n            \"update_time\": \"2019-02-05T00:28:31Z\"\n        }\n    ]\n}"}],"_postman_id":"c288e169-e9ee-45b5-8e72-bf6dda8018a5"},{"name":"Update Tracking Plan","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"4c7ba580-05ea-4c0a-b7ee-c8bc1aadd701"}}],"id":"d33a6844-369b-4849-be4d-7573766bbfa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"update_mask\": {\n    \"paths\": [\n      \"tracking_plan.display_name\",\n      \"tracking_plan.rules\"\n    ]\n  },\n  \"tracking_plan\": {\n    \"display_name\": \"Kicks App - Updated\",\n    \"rules\": {\n      \"global\": {\n        \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n        \"type\": \"object\",\n        \"properties\": {\n          \"context\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"userAgent\": {}\n            },\n            \"required\": [\n              \"userAgent\"\n            ]\n          }\n        },\n        \"required\": [\n          \"context\"\n        ]\n      },\n      \"events\": [\n        {\n          \"name\": \"Product Viewed\",\n          \"description\": \"Who checked out what\",\n          \"rules\": {\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n              \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"product\": {\n                    \"type\": [\"string\"]\n                  }\n                },\n                \"required\": [\n                  \"product\"\n                ]\n              }\n            },\n            \"required\": [\n              \"properties\"\n            ]\n          }\n        }\n      ]\n    }\n  }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123","description":"<p>To update a tracking plan field, include it in <code>update_mask.paths</code>. For example, if <code>tracking_plan.rules</code> is included in the paths array, existing rules will be replaced by rules specified in the request body. <strong>If a field is listed in the paths array, but is not included in the request body, it will be overwritten with an empty object.</strong> </p>\n<p>It is expected that including a <code>null</code> enum value as a property field will return a tracking plan that denotes that value as a string (\"null\"). See documented example call.</p>\n<p>Depending on the size of the tracking plan, the returned payload might not include the updated events. Use the GET endpoint or the UI instead.</p>\n<p>Emojis are not currently supported in tracking plan JSON schemas.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"09fc8459-d139-4c46-b7cd-c4d114e337fa","name":"Update Tracking Plan","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"update_mask\": {\n    \"paths\": [\n      \"tracking_plan.display_name\",\n      \"tracking_plan.rules\"\n    ]\n  },\n  \"tracking_plan\": {\n    \"display_name\": \"Kicks App - Updated\",\n    \"rules\": {\n      \"global\": {\n        \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n        \"type\": \"object\",\n        \"properties\": {\n          \"context\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"userAgent\": {}\n            },\n            \"required\": [\n              \"userAgent\"\n            ]\n          }\n        },\n        \"required\": [\n          \"context\"\n        ]\n      },\n      \"events\": [\n        {\n          \"name\": \"Product Viewed\",\n          \"description\": \"Who checked out what\",\n          \"rules\": {\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n              \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"product\": {\n                    \"type\": [\"string\"]\n                  }\n                },\n                \"required\": [\n                  \"product\"\n                ]\n              }\n            },\n            \"required\": [\n              \"properties\"\n            ]\n          }\n        }\n      ]\n    }\n  }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Oct 2018 23:04:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1419"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"108"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/myworkspace/tracking-plans/rs_123\",\n    \"display_name\": \"Kicks App - Updated\",\n    \"rules\": {\n        \"identify_traits\": [],\n        \"group_traits\": [],\n        \"events\": [\n            {\n                \"name\": \"Product Viewed\",\n                \"version\": 1,\n                \"description\": \"Who checked out what\",\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"traits\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                }\n                            },\n                            \"required\": [\n                                \"product\"\n                            ]\n                        },\n                        \"context\": {}\n                    },\n                    \"required\": [\n                        \"properties\"\n                    ]\n                }\n            }\n        ],\n        \"global\": {\n            \"required\": [\n                \"context\"\n            ],\n            \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"context\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"userAgent\": {}\n                    },\n                    \"required\": [\n                        \"userAgent\"\n                    ]\n                },\n                \"traits\": {},\n                \"properties\": {}\n            }\n        }\n    },\n    \"create_time\": \"2019-02-05T00:28:31Z\",\n    \"update_time\": \"2019-02-05T00:32:15Z\"\n}"},{"id":"057adc7c-3262-41ae-a716-dc899878cd73","name":"Update Tracking Plan With Null Enum","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"update_mask\": {\n        \"paths\": [\n            \"tracking_plan.rules\"\n        ]\n    },\n    \"tracking_plan\": {\n        \"rules\": {\n            \"identify_traits\": [],\n            \"group_traits\": [],\n            \"events\": [\n                {\n                    \"name\": \"New Event\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"properties\": {\n                            \"context\": {\n                                \"type\": \"object\"\n                            },\n                            \"properties\": {\n                                \"properties\": {\n                                    \"item_description\": {\n                                        \"description\": \"\",\n                                        \"type\": [\n                                            \"string\",\n                                            \"null\"\n                                        ]\n                                    },\n                                    \"item_name\": {\n                                        \"description\": \"\",\n                                        \"enum\": [\n                                            null\n                                        ],\n                                        \"type\": [\n                                            \"string\",\n                                            \"null\"\n                                        ]\n                                    }\n                                },\n                                \"type\": \"object\"\n                            },\n                            \"traits\": {\n                                \"type\": \"object\"\n                            }\n                        },\n                        \"type\": \"object\"\n                    },\n                    \"version\": 1\n                }\n            ],\n            \"global\": null,\n            \"identify\": null,\n            \"group\": null\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/business/tracking-plans/rs_1bxb4RSGi54Poxe5naPiiqswDXE\",\n  \"display_name\": \"Kicks App\",\n  \"rules\": {\n    \"identify_traits\": [],\n    \"group_traits\": [],\n    \"events\": [\n      {\n        \"name\": \"New Event\",\n        \"rules\": {\n          \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n          \"properties\": {\n            \"context\": {\n              \"type\": \"object\"\n            },\n            \"properties\": {\n              \"properties\": {\n                \"item_description\": {\n                  \"description\": \"\",\n                  \"type\": [\n                    \"string\",\n                    \"null\"\n                  ]\n                },\n                \"item_name\": {\n                  \"description\": \"\",\n                  \"enum\": [\n                    \"null\"\n                  ],\n                  \"type\": [\n                    \"string\",\n                    \"null\"\n                  ]\n                }\n              },\n              \"type\": \"object\"\n            },\n            \"traits\": {\n              \"type\": \"object\"\n            }\n          },\n          \"type\": \"object\"\n        },\n        \"version\": 1\n      }\n    ],\n    \"global\": null,\n    \"identify\": null,\n    \"group\": null\n  },\n  \"create_time\": \"2020-05-15T21:01:39Z\",\n  \"update_time\": \"2020-06-30T19:33:59Z\"\n}"}],"_postman_id":"d33a6844-369b-4849-be4d-7573766bbfa0"},{"name":"Batch Create Tracking Plan Source Connections","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"014b3caa-03ef-4324-81bc-6693510e23da"}}],"id":"4c699285-3562-4340-8855-fca9a843c3d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"source_names\": [\"workspaces/myworkspace/sources/js\"]\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections:batchCreateConnections","description":"<p>Connect existing sources to an existing tracking plan</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123","source-connections:batchCreateConnections"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"f95744ef-941d-447d-ac16-2663972229a1","name":"Batch Create Tracking Plan Source Connection","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"source_names\": [\"workspaces/myworkspace/sources/js\"]\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Oct 2018 21:27:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"41"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"connections\": [\n        {\n            \"source_name\": \"workspaces/myworkspace/sources/js\",\n            \"tracking_plan_id\": \"rs_1Gjkh9ZKmpyHjdSZYaLTXRRgCPp\"\n        }\n    ]\n}"}],"_postman_id":"4c699285-3562-4340-8855-fca9a843c3d9"},{"name":"Create Tracking Plan Source Connection","event":[{"listen":"test","script":{"exec":["// Segment Engineering","// Don't fail if connection fails","pm.test(\"Status code is 200 or 503\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200,503]);","});"],"type":"text/javascript","id":"76ee981b-203a-4851-a318-a4f71421ebde"}}],"id":"50beef47-b4e1-4256-840e-9d9e1c04a5d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"source_name\": \"workspaces/myworkspace/sources/js\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections","description":"<p>Connect existing sources to an existing tracking plan</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123","source-connections"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"788e31fb-2514-4e04-80c8-4020622400bc","name":"Create Tracking Plan Source Connection","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"source_name\": \"workspaces/myworkspace/sources/js\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Oct 2018 21:27:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"41"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"source_name\": \"workspaces/myworkspace/sources/js\",\n    \"tracking_plan_id\": \"rs_1Gjkh9ZKmpyHjdSZYaLTXRRgCPp\"\n}"}],"_postman_id":"50beef47-b4e1-4256-840e-9d9e1c04a5d6"},{"name":"List Tracking Plan Source Connections","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"2b2ce817-59c0-45b6-b68f-9061c11ed1b8"}}],"id":"7e1ab838-a49a-4b87-8d1b-896ce346beae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections","description":"<p>List all sources connected to this tracking plan.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123","source-connections"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"f648f681-8253-434c-9040-4b9e0b6e4db1","name":"List Tracking Plan Source Connections","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Oct 2018 21:41:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"119"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"8"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n    \"connections\": [\n        {\n            \"source_name\": \"workspaces/myworkspace/sources/js\",\n            \"tracking_plan_id\": \"rs_1Gjkh9ZKmpyHjdSZYaLTXRRgCPp\"\n        }\n    ]\n}"}],"_postman_id":"7e1ab838-a49a-4b87-8d1b-896ce346beae"},{"name":"Delete Tracking Plan Source Connection","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"65a1070d-d752-45ae-8f81-f1e4473710e3"}}],"id":"a5747d6e-1129-4c67-8ee6-72eb5e366597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections/{{source_slug}}","description":"<p>Remove a source from this tracking plan.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123","source-connections","{{source_slug}}"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"5e7c612d-816a-488e-ae5a-94de0e31a8fd","name":"Delete Tracking Plan Source Connection","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123/source-connections/js"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Oct 2018 21:41:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"23"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"a5747d6e-1129-4c67-8ee6-72eb5e366597"},{"name":"Delete Tracking Plan","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"4fdff146-7a68-4d81-ae45-77f2a55abc32"}}],"id":"1697990b-e436-4acb-b755-46f13d9f1593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/tracking-plans/rs_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"31969cb3-7830-45be-9e7f-6d4a515fc00e","name":"Delete Tracking Plan","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/tracking-plans/rs_123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Oct 2018 23:07:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"7"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"1697990b-e436-4acb-b755-46f13d9f1593"}],"id":"4698f0b7-abff-4281-8c22-6757c1d069ad","description":"<p>Protocols APIs govern the data that flows through Segment. You can define a strict schema of event names and properties, track how the data conforms to this schema, and block non-conforming data from delivery to destinations.</p>\n<h2 id=\"tracking-plan-model\">Tracking Plan Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the tracking plan</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Display name of the tracking plan</td>\n<td>required</td>\n</tr>\n<tr>\n<td>rules</td>\n<td>Rules</td>\n<td>Rules for the tracking plan</td>\n<td>required</td>\n</tr>\n<tr>\n<td>create_time</td>\n<td>datetime</td>\n<td>Time the tracking plan was created</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>update_time</td>\n<td>datetime</td>\n<td>Time the tracking plan was updated</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"rules-model\">Rules Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>global</td>\n<td>object</td>\n<td>Rules applied to all messages</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>events</td>\n<td>array[object]</td>\n<td>Rules applied to Track calls</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>idenitfy</td>\n<td>object</td>\n<td>Rules applied to Identify calls</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>group</td>\n<td>object</td>\n<td>Rules applied to Group calls</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>group_traits</td>\n<td>array[object]</td>\n<td>Deprecated</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>identify_traits</td>\n<td>array[object]</td>\n<td>Deprecated</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div><p>Every rule object is represented as JSON Schema.</p>\n<h2 id=\"events-model\">Events Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Event name</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>version</td>\n<td>int</td>\n<td>Event version, defaults to 1 when not specified</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Event description</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>rules</td>\n<td>JSON</td>\n<td>Event JSON rules</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"4e99181a-530e-418c-b24c-023101d0bf15"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"8e67adba-7c20-41a2-9b02-a3cb1aab702c"}}],"_postman_id":"4698f0b7-abff-4281-8c22-6757c1d069ad","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Event Delivery Metrics","item":[{"name":"Get Metric Timeseries","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"56f37e64-0acb-494f-8e6e-5917d2eae848"}}],"id":"e93fd8e4-72ce-4089-8bb0-5a6d40492fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes","description":"<p>Get timeseries data for a specific metric for a source-destination pair. </p>\n<p>If you have multi-instance destinations configured for your source you must send the destination configuration id of the instance you are fetching metric timeseries data for. An example request, List - Multi Destination Enabled, can be found in the Example requests dropdown. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics","metrics","successes"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"b8f3c3c1-4e55-4399-a6ae-153044192685","name":"Get","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes\",\n  \"granularity\": \"DAY\",\n  \"datapoints\": [\n    {\n      \"value\": 172615,\n      \"timestamp\": \"2019-01-20T00:00:00Z\"\n    },\n    {\n      \"value\": 170609,\n      \"timestamp\": \"2019-01-21T00:00:00Z\"\n    },\n    {\n      \"value\": 170668,\n      \"timestamp\": \"2019-01-22T00:00:00Z\"\n    },\n    {\n      \"value\": 170422,\n      \"timestamp\": \"2019-01-23T00:00:00Z\"\n    },\n    {\n      \"value\": 170519,\n      \"timestamp\": \"2019-01-24T00:00:00Z\"\n    },\n    {\n      \"value\": 166422,\n      \"timestamp\": \"2019-01-25T00:00:00Z\"\n    }\n  ],\n  \"start_time\": \"2019-01-20T00:00:00Z\",\n  \"end_time\": \"2019-01-25T00:00:00Z\"\n}"},{"id":"7eaf8aaa-eb22-49cf-98b5-11be23a60a60","name":"Get - Multi Destination Enabled","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/confiig/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successe"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes\",\n  \"granularity\": \"DAY\"\n  \"datapoints\": [\n    {\n      \"value\": 172615,\n      \"timestamp\": \"2019-01-20T00:00:00Z\"\n    },\n    {\n      \"value\": 170609,\n      \"timestamp\": \"2019-01-21T00:00:00Z\"\n    },\n    {\n      \"value\": 170668,\n      \"timestamp\": \"2019-01-22T00:00:00Z\"\n    },\n    {\n      \"value\": 170422,\n      \"timestamp\": \"2019-01-23T00:00:00Z\"\n    },\n    {\n      \"value\": 170519,\n      \"timestamp\": \"2019-01-24T00:00:00Z\"\n    },\n    {\n      \"value\": 166422,\n      \"timestamp\": \"2019-01-25T00:00:00Z\"\n    }\n  ],\n  \"start_time\": \"2019-01-20T00:00:00Z\",\n  \"end_time\": \"2019-01-25T00:00:00Z\"\n}"}],"_postman_id":"e93fd8e4-72ce-4089-8bb0-5a6d40492fc1"},{"name":"List Metric Timeseries","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"Error message is no metrics found\", function() {","    var r = pm.response.json();","    pm.expect(r.error).to.include(\"no metrics found for the given source\");","});",""],"type":"text/javascript","id":"02c34df0-d026-48b6-942a-0584a6a1418f"}}],"id":"7366208f-2b0b-4314-9257-90ee1d24d197","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics","description":"<p>Timeseries data for all metrics for a source-destination pair.</p>\n<p>If you have multi-instance destinations configured for your source you must send the destination configuration id of the instance you are fetching metric timeseries data for. An example in List - Multi Destination Enabled in the Example requests. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics","metrics"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"07d13d3a-0b50-4368-8282-4023f59debc6","name":"List Event Delivery Metrics","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"event_delivery_metrics\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/expired\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 1319,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 38,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 9,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 20,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 4,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 21,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 19,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_502\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 9,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 8,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 17,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 4,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 10,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 19,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_504\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 21,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 1,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 2,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 11,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_ECONNABORTED\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 8,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 1,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 172615,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 170609,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 170668,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 170422,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 170519,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 166929,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes_after_retry\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 3596,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 3442,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 4006,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 3697,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 3496,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 3637,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes_on_first_attempt\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 169019,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 167167,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 166662,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 166725,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 167023,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 163292,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt_average\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 5.502818496,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 3.706166541,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 3.228996959,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 3.517764604,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 4.645016078,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 3.495370896,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt_p95\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 3.055067164,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 3.063505857,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 3.149659938,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 3.482212419,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 3.8428379,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 3.453382997,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    }\n  ],\n  \"next_page_token\": \"dGltZV90b19zdWNjZXNzX2F2ZXJhZ2U=\"\n}"},{"id":"43a9fd39-626a-496e-b004-c00ac6e4088a","name":"List Event Delivery Metrics - Multi Destination Enabled","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics","protocol":"https","host":["platform","segmentapis","com"],"path":["v1beta","workspaces","myworkspace","sources","js","destinations","google-analytics","config","1a2b3c5d6e7f8g9h0i1a2b3c5","metrics"],"query":[{"key":"","value":"","disabled":true},{"key":"","value":null,"disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"event_delivery_metrics\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/expired\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 1319,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 38,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 9,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 20,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 4,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 21,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 19,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_502\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 9,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 8,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 17,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 4,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 10,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 19,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_504\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 21,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 1,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 2,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 11,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_ECONNABORTED\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 8,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 1,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 0,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 172615,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 170609,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 170668,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 170422,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 170519,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 166929,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes_after_retry\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 3596,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 3442,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 4006,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 3697,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 3496,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 3637,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes_on_first_attempt\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 169019,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 167167,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 166662,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 166725,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 167023,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 163292,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt_average\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 5.502818496,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 3.706166541,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 3.228996959,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 3.517764604,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 4.645016078,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 3.495370896,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt_p95\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 3.055067164,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 3.063505857,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 3.149659938,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 3.482212419,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        },\n        {\n          \"value\": 3.8428379,\n          \"timestamp\": \"2019-01-24T00:00:00Z\"\n        },\n        {\n          \"value\": 3.453382997,\n          \"timestamp\": \"2019-01-25T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    }\n  ],\n  \"next_page_token\": \"dGltZV90b19zdWNjZXNzX2F2ZXJhZ2U=\"\n}"}],"_postman_id":"7366208f-2b0b-4314-9257-90ee1d24d197"},{"name":"Batch Get Metric Timeseries","event":[{"listen":"test","script":{"exec":["// Segment Engineering","// Don't fail on validation error","pm.test(\"Status code is 200 or 400\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200,400]);","});",""],"type":"text/javascript","id":"81c8e165-dea9-4d6e-9e5b-a6be51cef797"}}],"id":"c4d13d26-3617-437c-8ad1-a1e4cd2b673f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"names\": [\n        \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes\",\n        \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_502\"\n    ]\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics:batchGet","description":"<p>Timeseries data for a provided list of metric names for a source-destination pair.</p>\n<p>If you have multi-instance destinations configured for your source you must send the destination configuration id of the instance you are fetching metric timeseries data for. An example request, Batch Get Summary - Multi Destination Enabled, can be found in the Example requests dropdown. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics","metrics:batchGet"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"9936797d-c3c2-43a9-af7a-9977cdabd499","name":"Batch Get Event Delivery Metrics","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics:batchGet"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"event_delivery_metrics\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 172615,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 170609,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 170668,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 170422,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-23T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_502\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 9,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 8,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 17,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 4,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-23T00:00:00Z\"\n    }\n  ]\n}"},{"id":"3136ca75-e4ac-41b6-9064-4508653f027b","name":"Batch Get Event Delivery Metrics - Multi Destination Enabled","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics:batchGet"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"event_delivery_metrics\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 172615,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 170609,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 170668,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 170422,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-23T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_502\",\n      \"granularity\": \"DAY\",\n      \"datapoints\": [\n        {\n          \"value\": 9,\n          \"timestamp\": \"2019-01-20T00:00:00Z\"\n        },\n        {\n          \"value\": 8,\n          \"timestamp\": \"2019-01-21T00:00:00Z\"\n        },\n        {\n          \"value\": 17,\n          \"timestamp\": \"2019-01-22T00:00:00Z\"\n        },\n        {\n          \"value\": 4,\n          \"timestamp\": \"2019-01-23T00:00:00Z\"\n        }\n      ],\n      \"start_time\": \"2019-01-20T00:00:00Z\",\n      \"end_time\": \"2019-01-23T00:00:00Z\"\n    }\n  ]\n}"}],"_postman_id":"c4d13d26-3617-437c-8ad1-a1e4cd2b673f"},{"name":"Get Metric Summary","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"a8ef7327-8858-4c98-9b30-9dc4d1301893"}}],"id":"85b484c5-73aa-47f7-83c7-9514ec60f19c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics:getSummary","description":"<p>Summary of metrics for a source-destination pair.</p>\n<p>If you have multi-instance destinations configured for your source you must send the destination configuration id of the instance you are fetching metric timeseries data for. An example in Get Summary - Multi Destination Enabled in the Example requests. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics","metrics:getSummary"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"230d30f6-a38b-4680-a472-b70cb1886df6","name":"Get Summary","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/metrics:getSummary"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics\",\n  \"metric_summary\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes\",\n      \"total\": 5331287,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes_on_first_attempt\",\n          \"value\": 5211864\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes_after_retry\",\n          \"value\": 119419\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/expired\",\n      \"total\": 28455,\n      \"metric_breakdown\": []\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/discarded\",\n      \"total\": 3,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/discarded_404\",\n          \"value\": 3\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried\",\n      \"total\": 792,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_502\",\n          \"value\": 326\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_504\",\n          \"value\": 405\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_ECONNABORTED\",\n          \"value\": 55\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_ECONNRESET\",\n          \"value\": 6\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_success\",\n      \"total\": 0,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_success_average\",\n          \"value\": 9.097975393\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_success_p95\",\n          \"value\": 3.367597643\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt\",\n      \"total\": 0,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt_average\",\n          \"value\": 4.163448849\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt_p95\",\n          \"value\": 3.3699638370000002\n        }\n      ]\n    }\n  ],\n  \"start_time\": \"2018-12-26T00:00:00Z\",\n  \"end_time\": \"2019-01-25T00:00:00Z\"\n}"},{"id":"4f210997-eb43-4d99-933c-b9f5b9fdea05","name":"Get Summary - Multi Destination Enabled","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics:getSummary"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics\",\n  \"metric_summary\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes\",\n      \"total\": 5331287,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes_on_first_attempt\",\n          \"value\": 5211864\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes_after_retry\",\n          \"value\": 119419\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/expired\",\n      \"total\": 28455,\n      \"metric_breakdown\": []\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/discarded\",\n      \"total\": 3,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/discarded_404\",\n          \"value\": 3\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried\",\n      \"total\": 792,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_502\",\n          \"value\": 326\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_504\",\n          \"value\": 405\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_ECONNABORTED\",\n          \"value\": 55\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried_ECONNRESET\",\n          \"value\": 6\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_success\",\n      \"total\": 0,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_success_average\",\n          \"value\": 9.097975393\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_success_p95\",\n          \"value\": 3.367597643\n        }\n      ]\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt\",\n      \"total\": 0,\n      \"metric_breakdown\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt_average\",\n          \"value\": 4.163448849\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt_p95\",\n          \"value\": 3.3699638370000002\n        }\n      ]\n    }\n  ],\n  \"start_time\": \"2018-12-26T00:00:00Z\",\n  \"end_time\": \"2019-01-25T00:00:00Z\"\n}"}],"_postman_id":"85b484c5-73aa-47f7-83c7-9514ec60f19c"},{"name":"Batch Get Metric Summary","event":[{"listen":"test","script":{"exec":["// Segment Engineering","// Don't fail on validation error","pm.test(\"Status code is 200 or 400\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200,400]);","});",""],"type":"text/javascript","id":"c7cd096e-505c-4239-8e5a-b1fb93bede49"}}],"id":"079557c7-ca59-4fbf-9dc3-4ece0df67f9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"names\": [\n        \"workspaces/myworkspace/sources/js/destinations/google-analytics\"\n    ]\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/event-delivery-metrics:batchGetSummary","description":"<p>Summaries for a provided list of source-destination pairs.</p>\n<p>If you have multi-instance destinations configured for your source you must send the destination configuration id of the instance you are fetching metric timeseries data for. An example in Batch Get Metric Summary - Multi Destination Enabled in the Example requests. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","event-delivery-metrics:batchGetSummary"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"d307a4ae-61b8-4bab-8dc6-3dda2b81497d","name":"Batch Get Summary","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/event-delivery-metrics:batchGetSummary"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"event_delivery_metric_summaries\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk\",\n      \"metric_summary\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/successes\",\n          \"total\": 5331287,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/successes_on_first_attempt\",\n              \"value\": 5211864\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/successes_after_retry\",\n              \"value\": 119419\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/expired\",\n          \"total\": 0,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/discarded\",\n          \"total\": 5289153,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/discarded_UNSUPPORTED_EVENT_TYPE\",\n              \"value\": 5289153\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/retried\",\n          \"total\": 0,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/time_to_success\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/time_to_success_average\",\n              \"value\": 0\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/time_to_success_p95\",\n              \"value\": 0\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/time_to_first_attempt\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/time_to_first_attempt_average\",\n              \"value\": 3.80065656\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/metrics/time_to_first_attempt_p95\",\n              \"value\": 3.379069625\n            }\n          ]\n        }\n      ],\n      \"start_time\": \"2018-12-26T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks\",\n      \"metric_summary\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/successes\",\n          \"total\": 2989,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/successes_on_first_attempt\",\n              \"value\": 2920\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/successes_after_retry\",\n              \"value\": 69\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/expired\",\n          \"total\": 2955,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/discarded\",\n          \"total\": 0,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/retried\",\n          \"total\": 35296,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/retried_ENOTFOUND\",\n              \"value\": 35295\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/retried_ECONNABORTED\",\n              \"value\": 1\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/time_to_success\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/time_to_success_average\",\n              \"value\": 9.293602542\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/time_to_success_p95\",\n              \"value\": 2.885951956\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/time_to_first_attempt\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/time_to_first_attempt_average\",\n              \"value\": 4.399057602\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/time_to_first_attempt_p95\",\n              \"value\": 2.913386417\n            }\n          ]\n        }\n      ],\n      \"start_time\": \"2018-12-26T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    }\n  ]\n}"},{"id":"6cbdc2bf-de31-4d16-b386-0b4821733269","name":"Batch Get Summary - Multi Destination Enabled","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/event-delivery-metrics:batchGetSummary"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"event_delivery_metric_summaries\": [\n    {\n      \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5\",\n      \"metric_summary\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes\",\n          \"total\": 5331287,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes_on_first_attempt\",\n              \"value\": 5211864\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/successes_after_retry\",\n              \"value\": 119419\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/expired\",\n          \"total\": 0,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/discarded\",\n          \"total\": 5289153,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/discarded_UNSUPPORTED_EVENT_TYPE\",\n              \"value\": 5289153\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/retried\",\n          \"total\": 0,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_success\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_success_average\",\n              \"value\": 0\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_success_p95\",\n              \"value\": 0\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt_average\",\n              \"value\": 3.80065656\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/js/destinations/zendesk/config/1a2b3c5d6e7f8g9h0i1a2b3c5/metrics/time_to_first_attempt_p95\",\n              \"value\": 3.379069625\n            }\n          ]\n        }\n      ],\n      \"start_time\": \"2018-12-26T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    },\n    {\n      \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1\",\n      \"metric_summary\": [\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/successes\",\n          \"total\": 2989,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/successes_on_first_attempt\",\n              \"value\": 2920\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/successes_after_retry\",\n              \"value\": 69\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/config/5c3b2a1i0h9g8f7e6d5c3b2a1/webhooks/metrics/expired\",\n          \"total\": 2955,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/discarded\",\n          \"total\": 0,\n          \"metric_breakdown\": []\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/retried\",\n          \"total\": 35296,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/retried_ENOTFOUND\",\n              \"value\": 35295\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/retried_ECONNABORTED\",\n              \"value\": 1\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/time_to_success\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/time_to_success_average\",\n              \"value\": 9.293602542\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/config/5c3b2a1i0h9g8f7e6d5c3b2a1/metrics/time_to_success_p95\",\n              \"value\": 2.885951956\n            }\n          ]\n        },\n        {\n          \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metric/config/5c3b2a1i0h9g8f7e6d5c3b2a1s/time_to_first_attempt\",\n          \"total\": 0,\n          \"metric_breakdown\": [\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/config/5c3b2a1i0h9g8f7e6d5c3b2a1/time_to_first_attempt_average\",\n              \"value\": 4.399057602\n            },\n            {\n              \"name\": \"workspaces/myworkspace/sources/go/destinations/webhooks/metrics/config/5c3b2a1i0h9g8f7e6d5c3b2a1/time_to_first_attempt_p95\",\n              \"value\": 2.913386417\n            }\n          ]\n        }\n      ],\n      \"start_time\": \"2018-12-26T00:00:00Z\",\n      \"end_time\": \"2019-01-25T00:00:00Z\"\n    }\n  ]\n}"}],"_postman_id":"079557c7-ca59-4fbf-9dc3-4ece0df67f9b"}],"id":"4b5db186-3514-4ac8-a362-b8a582ab7cfb","description":"<p>The Event Delivery Metrics APIs allow you to get delivery metrics for events sent to any destination <a href=\"https://segment.com/docs/destinations/#connection-modes\">configured in cloud mode</a>.</p>\n<h2 id=\"timeseries-apis\">Timeseries APIs</h2>\n<p>Timeseries APIs allow you to get a breakdown of a specific metric name for a source-destination pair over a specified time range, broken out by a specific granularity. Based on the granularity, there are retrictions on the time range you can query:</p>\n<p><strong>Minute Granularity</strong><br /><em>Max time range</em>: 4 hours<br /><em>Oldest possible start time</em>: 48 hours in the past</p>\n<p><strong>Hour Granularity</strong><br /><em>Max Time range</em>: 1 week<br /><em>Oldest possible start time</em>: 10 days in the past</p>\n<p><strong>Day Granularity</strong><br /><em>Max time range</em>: 60 days<br /><em>Oldest possible start time</em>: 60 days in the past</p>\n<p><strong>Defaults</strong><br />The defaults for granularity, start time, and end time if not set are:<br /><em>Granularity</em>: minute<br /><em>End Time</em>: current time<br /><em>Start Time</em>:  </p>\n<ul>\n<li>for minute granularity: now - 1 hour</li>\n<li>for hour granularity: now - 7 days</li>\n<li>for day granularity: now - 30 days</li>\n</ul>\n<h3 id=\"timeseries-model\">Timeseries Model</h3>\n<p>Note that all timestamps are in UTC.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>end_time</td>\n<td>datetime</td>\n<td>End time of the time range</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>datapoints</td>\n<td>array[objects]</td>\n<td>Breakdown of value and timestamp for a given metric.</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>granularity</td>\n<td>string</td>\n<td>Granularity of time range</td>\n<td>optional. values allowed: minute, hour, or day</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the metric</td>\n<td>required</td>\n</tr>\n<tr>\n<td>start_time</td>\n<td>datetime</td>\n<td>Start time of the time range</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"summary-apis\">Summary APIs</h2>\n<p>Summary APIs allow you to get the total of all metrics for source-destination pairs over a specific time range. 60 days is the oldest possible start day allowed.</p>\n<h3 id=\"summary-model\">Summary Model</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>end_time</td>\n<td>datetime</td>\n<td>End time of the time range</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>metric_summary</td>\n<td>array[objects]</td>\n<td>Metric summary over specified time range</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the source destination pair</td>\n<td>required</td>\n</tr>\n<tr>\n<td>start_time</td>\n<td>datetime</td>\n<td>Start time of the time range</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"metric-names\">Metric Names</h2>\n<p>The following all possible metric names you can get from the Event Delivery APIs:</p>\n<h3 id=\"success-metrics\">Success Metrics</h3>\n<p><strong>Unit</strong>: integer</p>\n<ul>\n<li><code>successes</code>: total number of successfully delivered event to the destination.</li>\n<li><code>successes_on_first_attempt</code>: total number of successfully delivered events on the first attempt.</li>\n<li><code>successes_after_retry</code>: total number of successfully delivered events after more than one attempt. An event is retried because it was rejected from a destination with a specific error type. Events with these error types will be retried for up to 4 hours. <a href=\"https://segment.com/docs/destinations/#retries\">See more info on Segment's destination retry policy here</a>.</li>\n</ul>\n<h3 id=\"error-metrics\">Error Metrics</h3>\n<p><strong>Unit</strong>: integer</p>\n<ul>\n<li><p><code>discarded</code>: total number of events that were rejected by the destination and Segment will <strong>not</strong> retry.</p>\n</li>\n<li><p><code>discareded_&lt;error_type&gt;</code>: total number of a specific discarded error type. With a few exceptions, these error types are generally set by the destinations' API. Examples are:</p>\n<ul>\n<li><code>discarded_MESSAGE_REJECTED</code></li>\n<li><code>discarded_400</code></li>\n<li><code>discarded_ENOTFOUND</code></li>\n</ul>\n</li>\n<li><p><code>retried</code>: total number of events that were rejected by a destination and Segment <strong>will</strong> retry. Every time an event is rejected by a destination with a retryable error, it gets counted as 1 <code>retried</code>. This means that a single event can be counted multiple times for <strong>each</strong> attempt Segment makes trying to deliver it. For example, if we tried to send an event 7 times and then it was successful on the 8th attempt, the <code>retried</code> count will be 7 and <code>successes</code> will be 1.</p>\n</li>\n<li><p><code>retried_&lt;error_type&gt;</code>: total number of a specific retried error type. These error types are set by the destinations' API. Examples are:</p>\n<ul>\n<li><code>retried_500</code></li>\n<li><code>retried_429</code></li>\n</ul>\n</li>\n<li><p><code>expired</code>: total number of retried events that have reached their max retry attempts and will no longer be retried by Segment.</p>\n</li>\n</ul>\n<h3 id=\"latency-metrics\">Latency Metrics</h3>\n<p><strong>Unit</strong>: seconds</p>\n<ul>\n<li><code>time_to_first_attempt_average</code>: average time it took to attempt to send events to the destination.</li>\n<li><code>time_to_first_attempt_p95</code>: time it took to attempt to send 95% of your evnets to the destination.</li>\n<li><code>time_to_success_average</code>: average time it took for events to be successful to the destination. This includes the time it took for retried events to be successful.</li>\n<li><code>time_to_success_p95</code>: time it took for 95% of your events to be successful. This includes the time it took for retried events to be successful.</li>\n</ul>\n<h2 id=\"segment-error-types\">Segment Error Types</h2>\n<p>Before attempting to send an event to a destination, Segment will do initial checks and reject events we know won't be successfully delivered to the destination. The following error types are set by Segment:</p>\n<p><strong>MESSAGE_REJECTED</strong><br />This error type means the event payload is missing a required destination field such as <code>user_id</code> or <code>email</code>.</p>\n<p><strong>INVALID_SETTINGS</strong><br />This error type means that required destination settings are missing or invalid.</p>\n<p><strong>UNSUPPORTED_EVENT_TYPE</strong><br />This error type means the destination does not support the <a href=\"https://segment.com/docs/spec/\">Segment event type</a>.</p>\n<h2 id=\"event-delivery-metrics-in-the-app-vs-apis\">Event Delivery Metrics in the App vs APIs</h2>\n<p>The name of the metrics you can view in the Segment App are different than the name of the metrics returned from the API. However, the values are the same. Here is a breakdown of the name of the metrics in the App and their names returned from the Event Delivery APIs:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>App Metric Name</th>\n<th>API Metric Name</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Delivered on first try</td>\n<td><code>successes_on_first_attempt</code></td>\n</tr>\n<tr>\n<td>Delivered on retry</td>\n<td><code>successes_after_retry</code></td>\n</tr>\n<tr>\n<td>Failed events</td>\n<td><code>discarded</code> + <code>expired</code></td>\n</tr>\n<tr>\n<td>Unsupported Events</td>\n<td><code>discarded_UNSUPPORTED_EVENT_TYPE</code></td>\n</tr>\n<tr>\n<td>P95 Latency</td>\n<td><code>time_to_success_p95</code></td>\n</tr>\n<tr>\n<td>Delivery Issues Breakdown Count</td>\n<td><code>discarded_&lt;error_type&gt;</code> or <code>retried_&lt;error_type&gt;</code></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"71b86c06-8d76-4793-819b-9caab03f3d51"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"7a95dfb5-c7d3-423f-aa4b-8c954333d1ed"}}],"_postman_id":"4b5db186-3514-4ac8-a362-b8a582ab7cfb","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Destination Filters","item":[{"name":"Create Filter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","var r = pm.response.json();","pm.environment.set(\"filter_name\", r.name);"],"type":"text/javascript","id":"a2f239a7-cbe0-4636-a418-85912becb915"}}],"id":"41c4fcef-afec-4b55-87bf-3cd984cecb1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"title\": \"Only allow track events\",\n\t\t\"if\": \"type != 'track'\",\n\t\t\"actions\": [\n\t\t\t{\n\t\t\t\t\"type\": \"drop_event\"\n\t\t\t}\t\n\t\t],\n\t\t\"enabled\": true\n\t}\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/","description":"<p>Create a destination filter for a specific source and destination pair. </p>\n<p>If you have multi-instance destinations configured to the specific source you must supply a destination configuration id in the request parameters. An example request, Create Filter - Multi Destination Enabled, can be found in the Example requests dropdown. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics","filters",""],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"d3b1097c-fdea-4839-b41a-1548cef7b4af","name":"Create Filter","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"title\": \"Only allow track events\",\n\t\t\"if\": \"type != 'track'\",\n\t\t\"actions\": [\n\t\t\t{\n\t\t\t\t\"type\": \"drop_event\"\n\t\t\t}\t\n\t\t],\n\t\t\"enabled\": true\n\t}\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Apr 2019 16:25:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"302"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=LBrB8JF9xsJMtjbvMnk1ZqstIrB3NBczPwJmXXURfHyPLuVozXAlaI+YzDksQmDqKqLRYdySyL7Wdeixc1jGOvYzcp4oAxSphvMT40+yXDoOyTXRZI8/0jeQ/bJJ; Expires=Thu, 18 Apr 2019 16:25:40 GMT; Path=/"},{"key":"x-envoy-upstream-service-time","value":"144"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/developer-plan/sources/diggory-filters/destinations/google-analytics/filters/df_1JjE7f3gz8OXU6lVbUGuDhHcyKl\",\n    \"if\": \"type != 'track'\",\n    \"actions\": [\n        {\n            \"type\": \"drop_event\",\n            \"fields\": {}\n        }\n    ],\n    \"title\": \"Only allow track events\",\n    \"description\": \"\",\n    \"enabled\": true\n}"},{"id":"f11bf659-d729-4d3e-b859-c005153dd981","name":"Create Filter - Multi Destination Enabled","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"title\": \"Only allow track events\",\n\t\t\"if\": \"type != 'track'\",\n\t\t\"actions\": [\n\t\t\t{\n\t\t\t\t\"type\": \"drop_event\"\n\t\t\t}\t\n\t\t],\n\t\t\"enabled\": true\n\t}\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/filters/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/developer-plan/sources/diggory-filters/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/filters/df_1JjE7f3gz8OXU6lVbUGuDhHcyKl\",\n    \"if\": \"type != 'track'\",\n    \"actions\": [\n        {\n            \"type\": \"drop_event\",\n            \"fields\": {}\n        }\n    ],\n    \"title\": \"Only allow track events\",\n    \"description\": \"\",\n    \"enabled\": true\n}"}],"_postman_id":"41c4fcef-afec-4b55-87bf-3cd984cecb1b"},{"name":"Get Filter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Filter is created\", function () {","    var jsonData = pm.response.json();","    var destinationName = pm.environment.get(\"destination_name\");","    pm.expect(jsonData.name).to.include(destinationName);","    pm.expect(jsonData.if).to.not.be.empty;","});"],"type":"text/javascript","id":"fe303d95-b30e-4d19-82ef-7d3bc85da421"}}],"id":"6d1277fd-0d57-450f-9396-71b909b466ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123","description":"<p>Get a destination filter by the destination filter id.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"f357b983-781d-4b72-bd96-9f3bf0fca54c","name":"Get Filter","originalRequest":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Apr 2019 16:26:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"302"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=msXRnDUuGyJv6WUljK0SlodNIBZuqTA/o/fVkWP/UZLkLRABWSsq0xDA2ovOq8+A12lCmE4Pmh2kMTx9ydyewovJYm5zZXZcNIet+/RxvC7dxsGN0rlZ5lDpax1x; Expires=Thu, 18 Apr 2019 16:26:16 GMT; Path=/"},{"key":"x-envoy-upstream-service-time","value":"67"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/developer-plan/sources/diggory-filters/destinations/google-analytics/filters/df_1JjE7f3gz8OXU6lVbUGuDhHcyKl\",\n    \"if\": \"type != 'track'\",\n    \"actions\": [\n        {\n            \"type\": \"drop_event\",\n            \"fields\": {}\n        }\n    ],\n    \"title\": \"Only allow track events\",\n    \"description\": \"\",\n    \"enabled\": true\n}"}],"_postman_id":"6d1277fd-0d57-450f-9396-71b909b466ae"},{"name":"List Filters","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Filters are returned\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.filters).to.be.an('array').that.is.not.empty;","});"],"type":"text/javascript","id":"bfbb9db8-e785-4182-adcb-b0985eafbe44"}}],"id":"69bc13d5-e1f8-4e3f-bea6-102a4ba618c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters","description":"<p>List destination filters for a specific source and destination pair. </p>\n<p>If you have multi-instance destinations configured to the specific source you must supply a destination configuration id in the request parameters. An example request, List Filters - Multi Destination Enabled, can be found in the Example requests dropdown. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as \"instances/$destinationConfigurationId/configuration\".</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics","filters"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"4b3b94ed-002a-4089-b0dc-e6d7ea5a1b59","name":"List Filters","originalRequest":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Apr 2019 16:26:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"960"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=hM4+/VFR3iCWFFYDOGOzyEsBJJaoiMBdf3/zXTvAJs+rVXQEtl/Tu0iUpBnxSUhiGmIYQg9PzRDZcyALmmDysbeixAvYd8xyEsyODeSQlxuJ0MHGMTPT6udYZQhP; Expires=Thu, 18 Apr 2019 16:26:40 GMT; Path=/"},{"key":"x-envoy-upstream-service-time","value":"87"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"filters\": [\n        {\n            \"name\": \"workspaces/developer-plan/sources/diggory-filters/destinations/google-analytics/filters/df_1JjE7f3gz8OXU6lVbUGuDhHcyKl\",\n            \"if\": \"type != 'track'\",\n            \"actions\": [\n                {\n                    \"type\": \"drop_event\",\n                    \"fields\": {}\n                }\n            ],\n            \"title\": \"Only allow track events\",\n            \"description\": \"\",\n            \"enabled\": true\n        }\n    ]\n}"},{"id":"2a6cbb55-1640-4178-9610-88720630cd9a","name":"List Filters - Multi Destination Enabled","originalRequest":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/filters"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"filters\": [\n        {\n            \"name\": \"workspaces/developer-plan/sources/diggory-filters/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5/filters/df_1JjE7f3gz8OXU6lVbUGuDhHcyKl\",\n            \"if\": \"type != 'track'\",\n            \"actions\": [\n                {\n                    \"type\": \"drop_event\",\n                    \"fields\": {}\n                }\n            ],\n            \"title\": \"Only allow track events\",\n            \"description\": \"\",\n            \"enabled\": true\n        }\n    ]\n}"}],"_postman_id":"69bc13d5-e1f8-4e3f-bea6-102a4ba618c2"},{"name":"Update Filter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Filter is updated\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.if).to.eql(\"type = 'identify' and !contains(traits.email, '@mycompany.com')\");","    pm.expect(jsonData.title).to.eql(\"Drop PII from identify events\");","});"],"type":"text/javascript","id":"58567407-efe6-438d-b912-d9802ecf1ff8"}}],"id":"d7529815-a789-4293-973c-ad78a4e0ca62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n    \t\"if\": \"type = 'identify' and !contains(traits.email, '@mycompany.com')\",\n    \t\"actions\": [\n    \t\t{\n    \t\t\t\"type\": \"blacklist_fields\",\n    \t\t\t\"fields\": {\n    \t\t\t\t\"traits\": {\n    \t\t\t\t\t\"fields\": [\"email\", \"name\"]\n    \t\t\t\t}\n    \t\t\t}\n    \t\t}\n    \t],\n    \t\"title\": \"Drop PII from identify events\"\n    },\n    \"update_mask\": {\n    \t\"paths\": [\"if\", \"actions\", \"title\"]\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123","description":"<p>Update a destination filter.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7529815-a789-4293-973c-ad78a4e0ca62"},{"name":"Delete Filter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"aac731ec-571d-4295-91f9-12a613eb2224"}}],"id":"ef71e1c6-7ff7-4e08-a4d3-c18bdf3fbef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123","description":"<p>Delete a destination filter.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef71e1c6-7ff7-4e08-a4d3-c18bdf3fbef5"},{"name":"Preview Filter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Segment Engineering","// Defer calling \"Delete Destination\" until the end","postman.setNextRequest(\"Delete Destination\");"],"type":"text/javascript","id":"fab177d7-2d6f-4325-a2d4-ca6091ae89dd"}}],"id":"08e3dc19-93fc-4a83-942d-329e26a08e28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"if\": \"all\",\n\t\t\"actions\": [\n\t\t\t{\n\t\t\t\t\"type\": \"blacklist_fields\",\n\t\t\t\t\"fields\": {\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"fields\": [\"name\", \"age\"]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t],\n\t\t\"enabled\": true\n\t},\n\t\"input\": \"{ \\\"userId\\\": \\\"6592\\\", \\\"properties\\\": { \\\"name\\\": \\\"Bob Smith\\\", \\\"age\\\": \\\"40\\\", \\\"order\\\": \\\"129\\\" } }\"\n}"},"url":"https://platform.segmentapis.com/v1beta/filters/preview","description":"<p>This endpoint allows you to preview a Destination Filter against an arbitrary JSON payload without touching your production data. This is useful for testing.</p>\n<p><strong>Request Body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>filter</code></td>\n<td><code>filter</code></td>\n<td>The filter that you wish to test. The only required fields are \"if\" and \"actions\".</td>\n<td>required</td>\n</tr>\n<tr>\n<td><code>input</code></td>\n<td><code>string</code></td>\n<td>A serialized JSON payload that you want to apply the filter to.</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response Body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>input</code></td>\n<td><code>string</code></td>\n<td>The original input JSON payload, pre-filter.</td>\n</tr>\n<tr>\n<td><code>output</code></td>\n<td><code>string</code></td>\n<td>The filtered JSON payload.</td>\n</tr>\n<tr>\n<td><code>diff</code></td>\n<td><code>string</code></td>\n<td>A textual diff of the input and output JSON payload.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","filters","preview"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"61467a2e-135a-42f4-ba2c-5d602ca4beb0","name":"Preview Filter","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"if\": \"all\",\n\t\t\"actions\": [\n\t\t\t{\n\t\t\t\t\"type\": \"blacklist_fields\",\n\t\t\t\t\"fields\": {\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"fields\": [\"name\", \"age\"]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t],\n\t\t\"enabled\": true\n\t},\n\t\"input\": \"{ \\\"userId\\\": \\\"6592\\\", \\\"properties\\\": { \\\"name\\\": \\\"Bob Smith\\\", \\\"age\\\": \\\"40\\\", \\\"order\\\": \\\"129\\\" } }\"\n}"},"url":"https://platform.segmentapis.com/v1beta/filters/preview"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Apr 2019 16:27:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"349"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=yfvCr/6jwU8ngW8wjoTzQVNVbvWCRjdzOrd/bt1eeuQ6sbwlNKNUu9PY90MVEXFn9bvvwaiUW26Kgu10EqvQiuD7dDfqcca6TzWRTmCaRzr+vcGvwCVkMcqq8lfh; Expires=Thu, 18 Apr 2019 16:27:13 GMT; Path=/"},{"key":"x-envoy-upstream-service-time","value":"2"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"input\": \"{ \\\"userId\\\": \\\"6592\\\", \\\"properties\\\": { \\\"name\\\": \\\"Bob Smith\\\", \\\"age\\\": \\\"40\\\", \\\"order\\\": \\\"129\\\" } }\",\n    \"output\": \"{\\\"properties\\\":{ \\\"order\\\": \\\"129\\\" },\\\"userId\\\":\\\"6592\\\"}\",\n    \"diff\": \" {\\n \\t\\\"properties\\\": {\\n-\\t\\t\\\"age\\\": \\\"40\\\",\\n-\\t\\t\\\"name\\\": \\\"Bob Smith\\\",\\n \\t\\t\\\"order\\\": \\\"129\\\"\\n \\t},\\n \\t\\\"userId\\\": \\\"6592\\\"\\n }\"\n}"}],"_postman_id":"08e3dc19-93fc-4a83-942d-329e26a08e28"}],"id":"161989fb-595c-4cb5-9ef9-4cd8ca82e52f","description":"<p>Note: The Destination Filters API is available only to Business customers. If\nyou would like to know more, please don't hesitate to reach out to us at\n<a href=\"mailto:friends@segment.com\">friends@segment.com</a>.</p>\n<h2 id=\"overview\">Overview</h2>\n<p>The Destination Filters API provides fine-grained controls that allow you to\nconditionally prevent data from being delivered to specific cloud-based\n(server-side) destinations. You can filter entire events (for example,\nselectively drop them) or whitelist / blacklist individual fields in events\nbefore they are sent. You can conditionally apply filters to each event based\non the contents of that event’s payload. For example, you could apply a filter\nonly to Track events with a \"plan\" property equal to \"Professional\" or you\ncould apply a filter only to events with a user email address that does not\nmatch \"*@mycompany.com\".</p>\n<h3 id=\"use-cases\">Use Cases</h3>\n<p>Destination Filters are a great for:</p>\n<ul>\n<li><p>Reducing the volume of events being delivered to a destination to save on\ncosts</p>\n</li>\n<li><p>Filtering out Personally Identifying Informaion (PII) from events being sent\nto a destination that shouldn't get PII</p>\n</li>\n<li><p>Preventing internal user activity from reaching an analytics tool</p>\n</li>\n<li><p>Sending only the events that you care about to an custom webhook</p>\n</li>\n</ul>\n<h3 id=\"availability\">Availability</h3>\n<p>Destination Filters are available on a beta basis to all Business customers,\nand are only supported for cloud-based (server-side) destinations. S3 and warehouse destinations are not yet supported.</p>\n<h3 id=\"types-of-filters\">Types of Filters</h3>\n<p>There are three filters that can be applied to events:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Action</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>drop_event</code></td>\n<td>Do not send the event to the destination.</td>\n</tr>\n<tr>\n<td><code>sample_event</code></td>\n<td>Send only a percentage of events through to the destination. You can optionally sample based on a field. For example, you can sample 10% of users by sampling on <code>userId</code> instead of a random 10% of all events, which is the default.</td>\n</tr>\n<tr>\n<td><code>whitelist_fields</code></td>\n<td>Whitelist fields in the event by specifying nested JSON objects (e.g. <code>context</code>, <code>properties.productDetails</code>, etc.) and a list of fields that should be retained in that nested object, with all others dropped before the event is sent to the destination.</td>\n</tr>\n<tr>\n<td><code>blacklist_fields</code></td>\n<td>Blacklist fields in the event by specifying nested JSON objects (e.g. <code>context</code>, <code>properties.productDetails</code>, etc.) and a list of fields to drop from those nested objects before the event is sent to the destination.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <code>whitelist_fields</code>  and <code>blacklist_fields</code> filters may only filter fields\ninside the following top-level fields of Segment events:</p>\n<ul>\n<li><code>properties</code></li>\n<li><code>context</code></li>\n<li><code>traits</code></li>\n</ul>\n<h3 id=\"filter-order\">Filter Order</h3>\n<p>Filters are applied in the following order for each event:</p>\n<ol>\n<li><code>drop_event</code></li>\n<li><code>sample_event</code></li>\n<li><code>whitelist_fields</code></li>\n<li><code>blacklist_fields</code></li>\n</ol>\n<h3 id=\"conditional-filters\">Conditional Filters</h3>\n<p>Filters can optionally be applied to an event by writing an \"if\" statement\nusing Filter Query Language (\"FQL\"), Segment’s simple query language for\nstreaming JSON. FQL statements evaluate to true or false based on the contents\nof each event, allowing you to only apply filters to specific events.</p>\n<p>For example, given the following event payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"event\": \"Button Clicked\",\n  \"type\": \"track\",\n  \"context\": {\n    \"library\": {\n      \"name\": \"analytics.js\",\n      \"version\": \"1.0\",\n    }\n  }\n}\n</code></pre>\n<p>The following FQL statements will evaluate to \"true\", causing the filter to be\napplied:</p>\n<ul>\n<li><code>event = 'Button Clicked'</code></li>\n<li><code>event = 'Button Clicked' and type = 'track'</code></li>\n<li><code>match(context.library.version, '1.*')</code></li>\n<li><code>type = 'identify' or type = 'track'</code></li>\n</ul>\n<p>And the following FQL statements will evaluate to \"false\", causing the filter to be skipped:</p>\n<ul>\n<li><code>event = 'Screen Tapped'</code></li>\n<li><code>context.path.path = '/login'</code></li>\n<li><code>match (context.library.version, '2.*')</code></li>\n</ul>\n<p>For more detailed documentation including a list of all operators and functions,\nsee the <a href=\"https://segment.com/docs/config-api/destination-filters/fql/\">FQL Documentation</a>.</p>\n<h3 id=\"universal-filters\">Universal Filters</h3>\n<p>To apply a filter to <em>all</em> events going to a destination, you can supply an \"if\"\nstatement of \"all\". All actions in that filter will be applied to events before\nbeing delivered to that destination.</p>\n<h2 id=\"limits\">Limits</h2>\n<p>Destination Filters currently have the following limits:</p>\n<ul>\n<li>Each Destination may have no more than 10 filters.</li>\n<li>FQL \"if\" statements may be a maxiumum of 3Kb in size.</li>\n<li>Filters may have a maxiumum of 4 actions.</li>\n<li>Whitelist / blacklist fields filters may target a maximum of 8 objects and\neach object may have a maxiumum of 64 fields in the whitelist or blacklist.</li>\n<li>The Preview API \"input\" payload may be a maximum of 128Kb.</li>\n</ul>\n<p>If you would like any of these limits lifted, please reach out to us at\n<a href=\"mailto:friends@segment.com\">friends@segment.com</a>.</p>\n<h2 id=\"api-models\">API Models</h2>\n<h3 id=\"filter\">Filter</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td><code>string</code></td>\n<td>The URL path of this filter.</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td><code>enabled</code></td>\n<td><code>boolean</code></td>\n<td>Whether or not this filter should be active.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td><code>string</code></td>\n<td>A human-readable title for this filter.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td><code>string</code></td>\n<td>A longer human-readable description of this filter.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>if</code></td>\n<td><code>string</code></td>\n<td>A FQL statement that causes this filter’s action to be applied if it evaluates to true. \"all\" will cause the filter to be applied to all events.</td>\n<td>required</td>\n</tr>\n<tr>\n<td><code>actions</code></td>\n<td><code>[]action</code></td>\n<td>The filtering action to take on events that match the \"if\" statement. Must be one of: \"drop_event\", \"whitelist_fields\", or \"blacklist_fields\".</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"action\">Action</h3>\n<h4 id=\"drop-event\">Drop Event</h4>\n<p>The <code>drop_event</code> action will cause the event to be dropped and not sent to the\ndestination if the \"if\" statement evaluates to true.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td><code>string</code></td>\n<td>The action name. For the drop event action, this must be <code>\"drop_event\"</code>.</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"sample-event\">Sample Event</h4>\n<p>The <code>sample_event</code> action will allow only a percentage of events through. It can\nsample randomly or, if given a <code>path</code> attribute, it can sample a percentage of\nevents based on the contents of a field. This is useful for sampling all events\nfor a percentage of <em>users</em> rather than a percentage of all events for all\nusers.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td><code>string</code></td>\n<td>The action name. For the sample event action, this must be <code>\"sample_event\"</code>.</td>\n<td>required</td>\n</tr>\n<tr>\n<td><code>percent</code></td>\n<td><code>float</code></td>\n<td>A percentage in the range [0.0, 1.0] that determines the percent of events to allow through. 0.0 will allow no events and 1.0 will allow all events. The default is 0.0.</td>\n<td>required</td>\n</tr>\n<tr>\n<td><code>path</code></td>\n<td><code>string</code></td>\n<td>If non-empty, events will be sampled based on the value at this path. For example, if <code>path</code> is <code>userId</code>, a percentage of <em>users</em> will have their events allowed through to the destination.</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"whitelist-fields\">Whitelist Fields</h4>\n<p>The <code>whitelist_fields</code> action takes a list of nested objects (e.g. <code>context</code>,\n<code>properties.orderDetails</code>) and a list of fields for each object that should be\nallowed, with all other fields in those objects dropped.</p>\n<p>| Attribute | Type                         | Description                                                                                                                                                                                                                                                                                                                                                        |          |\n| --------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------- | -------- |\n| <code>type</code>    | <code>string</code>                     | The action name. For the whitelist fields action, this must be <code>\"whitelist_fields\"</code>.                                                                                                                                                                                                                                                                               | required |\n| <code>fields</code>  | <code>map of string → Field List</code> | A map of nested JSON objects that should have their properties filtered. The map key is the path to the nested JSON object (e.g. <code>context.ip</code>, <code>properties</code>, etc.) and the value is a field list object (see below) that specifies which fields within the object to allow.<br /><br />Nested JSON objects not specified in this map will be untouched by this filter. | required |</p>\n<h4 id=\"blacklist-fields\">Blacklist Fields</h4>\n<p>The <code>blacklist_fields</code> action takes a list of nested objects (e.g. <code>context</code>,\n<code>properties.orderDetails</code>) and a list of fields for each object that should be\ndropped, with all other fields in those objects untouched.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td><code>string</code></td>\n<td>The action name. For the blacklist fields action, this must be <code>\"blacklist_fields\"</code>.</td>\n<td>required</td>\n</tr>\n<tr>\n<td><code>fields</code></td>\n<td><code>map of string → Field List</code></td>\n<td>A map of nested JSON objects that should have their properties filtered. The map key is the path to the nested JSON object (e.g. <code>context.ip</code>, <code>properties</code>, etc.) and the value is a field list object (see below) that specifies which fields within the object to drop.<br /><br />Nested JSON objects not specified in this map will be untouched by this filter.</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"field-list\">Field List</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>fields</code></td>\n<td><code>[]string</code></td>\n<td>One or more JSON object field names. Nested fields (i.e. dot-separated field names) are not supported.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"462c33b5-960d-435a-9503-bfb93b9f57d5"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"158de249-230c-4ca2-b3f9-37457524f253"}}],"_postman_id":"161989fb-595c-4cb5-9ef9-4cd8ca82e52f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Deletion and Suppression","item":[{"name":"Create Regulation","id":"fc85b824-cced-4e99-ad4c-bc4457d7dba7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"regulation_type\": \"Suppress_With_Delete\",\n    \"attributes\": {\n        \"name\": \"userId\",\n        \"values\": [\n            \"foo-user\",\n            \"bar-user\"\n        ]\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations","description":"<p>The create regulation endpoint will be used to create new regulations on the particular workspace. You can set the regulation type and the attributes to regulate.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","regulations"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"276c3ef1-9639-4d1d-95f1-d7a44e9b091b","name":"Create Regulation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"regulation_type\": \"Suppress_With_Delete\",\n    \"attributes\": {\n        \"name\": \"userId\",\n        \"values\": [\n            \"foo-user\",\n            \"bar-user\"\n        ]\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2019 23:14:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"7"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"regulate_id\": \"REDACTED\"\n}"}],"_postman_id":"fc85b824-cced-4e99-ad4c-bc4457d7dba7"},{"name":"Get Regulation","id":"ee68cf23-ce52-4e9d-a078-678f3cb27fe5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations/1KQVncbOPeRGjRcpuOHdnhDwPn7","description":"<p>Get regulation fetches the information about a previously submitted regulation. You supply the regultion id you got back when you created the regulation request. You get back the status of the regulation, when it was created, when it was finished and the attributes being regulated.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","regulations","1KQVncbOPeRGjRcpuOHdnhDwPn7"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"1b8a0f6f-8835-427a-a5c5-21d998c1da3a","name":"Get Regulation","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations/1KQVncbOPeRGjRcpuOHdnhDwPn7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2019 23:22:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1457"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"20"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"workspace_id\": \"REDACTED\",\n    \"overall_status\": \"finished\",\n    \"stream_status\": [\n        {\n            \"id\": \"REDACTED\",\n            \"destination_status\": [\n                {\n                    \"name\": \"Segment\",\n                    \"id\": \"segment\",\n                    \"status\": \"finished\",\n                    \"err_string\": \"\",\n                    \"finished_at\": \"0001-01-01T00:00:00Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"REDACTED\",\n            \"destination_status\": [\n                {\n                    \"name\": \"Segment\",\n                    \"id\": \"segment\",\n                    \"status\": \"finished\",\n                    \"err_string\": \"\",\n                    \"finished_at\": \"0001-01-01T00:00:00Z\"\n                }\n            ]\n        }\n    ],\n    \"created_at\": \"2019-04-27T00:12:56Z\",\n    \"finished_at\": \"2019-04-28T22:50:07Z\"\n}"}],"_postman_id":"ee68cf23-ce52-4e9d-a078-678f3cb27fe5"},{"name":"Delete Regulation","id":"1c74a5fd-b1c4-4f66-a13a-fccb15207d7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations/1KYs688u4F8nDaARd1nrFyN5LbJ","description":"<p>Regulations that are still in the initialized state can be deleted using this endpoint</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","regulations","1KYs688u4F8nDaARd1nrFyN5LbJ"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"40c6001c-5dd6-490b-8f3d-629347fa9be1","name":"Delete Regulation","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations/1KYs688u4F8nDaARd1nrFyN5LbJ"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2019 23:26:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"9"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"1c74a5fd-b1c4-4f66-a13a-fccb15207d7f"},{"name":"List Regulations","id":"33a152f1-7bdc-4940-b59f-afb2d9b515ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations","description":"<p>This endpoint can list regulations present in the workspace and their status, times of creation and finishing.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","regulations"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"bb9cfcc6-9fc8-48e8-bb2c-b94a08d9236f","name":"List Regulations","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2019 23:28:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4391"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"87"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"entries\": [\n        {\n            \"regulate_id\": \"REDACTED\",\n            \"attributes\": {\n                \"name\": \"userId\",\n                \"values\": [\n                    \"REDACTED\"\n                ]\n            },\n            \"status\": \"initialized\",\n            \"created_at\": \"2019-04-29T19:02:27Z\"\n        },\n        {\n            \"regulate_id\": \"REDACTED\",\n            \"attributes\": {\n                \"name\": \"userId\",\n                \"values\": [\n                    \"REDACTED\"\n                ]\n            },\n            \"status\": \"initialized\",\n            \"created_at\": \"2019-04-29T19:02:27Z\"\n        }\n    ],\n    \"next_page_token\": \"REDACTED\"\n}"}],"_postman_id":"33a152f1-7bdc-4940-b59f-afb2d9b515ba"},{"name":"List Regulations based on status","id":"31f71aa6-bb67-4db8-8b0e-9624957ef50e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations?status=failed&regulation_types=Suppress_With_Delete&regulation_types=Suppress","description":"<p>The list regulations endpoint also takes in a query parameter for status and regulation type using which you can narrow down the regulations which satisfy the query parameters</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","regulations"],"host":["https://platform.segmentapis.com"],"query":[{"description":{"content":"<p>status filter can be set to <code>failed</code>, <code>finished</code>, <code>running</code> and <code>initialized</code></p>\n","type":"text/plain"},"key":"status","value":"failed"},{"description":{"content":"<p>regulations_types can be specified multiple times as a query parameter with all the regulation types you are interested in.</p>\n","type":"text/plain"},"key":"regulation_types","value":"Suppress_With_Delete"},{"key":"regulation_types","value":"Suppress"}],"variable":[]}},"response":[{"id":"3cbbf130-162b-4582-ac94-f69223109a95","name":"List Regulations based on status","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":{"raw":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/regulations?status=failed&regulation_types=Suppress_With_Delete&regulation_types=Suppress","host":["https://platform.segmentapis.com"],"path":["v1beta","workspaces/myworkspace","regulations"],"query":[{"key":"status","value":"failed","description":"status filter can be set to `failed`, `finished`, `running` and `initialized`"},{"key":"regulation_types","value":"Suppress_With_Delete","description":"regulations_types can be specified multiple times as a query parameter with all the regulation types you are interested in."},{"key":"regulation_types","value":"Suppress"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2019 23:37:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"5121"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"235"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"entries\": [\n        {\n            \"regulate_id\": \"REDACTED\",\n            \"attributes\": {\n                \"name\": \"userId\",\n                \"values\": [\n                    \"REDACTED\"\n                ]\n            },\n            \"status\": \"failed\",\n            \"created_at\": \"2019-04-26T20:02:55Z\",\n            \"finished_at\": \"2019-04-28T09:48:52Z\"\n        },\n        {\n            \"regulate_id\": \"REDACTED\",\n            \"attributes\": {\n                \"name\": \"userId\",\n                \"values\": [\n                    \"REDACTED\"\n                ]\n            },\n            \"status\": \"failed\",\n            \"created_at\": \"2019-04-26T18:18:46Z\",\n            \"finished_at\": \"2019-04-28T07:58:51Z\"\n        },\n        {\n            \"regulate_id\": \"REDACTED\",\n            \"attributes\": {\n                \"name\": \"userId\",\n                \"values\": [\n                    \"REDACTED\"\n                ]\n            },\n            \"status\": \"failed\",\n            \"created_at\": \"2019-04-26T18:18:46Z\",\n            \"finished_at\": \"2019-04-28T07:58:51Z\"\n        },\n        {\n            \"regulate_id\": \"REDACTED\",\n            \"attributes\": {\n                \"name\": \"userId\",\n                \"values\": [\n                    \"REDACTED\"\n                ]\n            },\n            \"status\": \"failed\",\n            \"created_at\": \"2019-04-26T18:18:46Z\",\n            \"finished_at\": \"2019-04-28T07:58:51Z\"\n        }\n    ],\n    \"next_page_token\": \"2019-04-25T23:54:08.149538Z\"\n}"}],"_postman_id":"31f71aa6-bb67-4db8-8b0e-9624957ef50e"},{"name":"Create Regulation on a source","id":"247117b5-3dc2-4965-b41c-6c1aacdf4762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"regulation_type\": \"Suppress_With_Delete\",\n    \"attributes\": {\n        \"name\": \"userId\",\n        \"values\": [\n            \"foo-user\",\n            \"bar-user\"\n        ]\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/regulations","description":"<p>By using this endpoint you can create a regulation that is specific to a source.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","regulations"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"99079f01-859a-4df1-a886-7cc6fe5ac1ea","name":"Create Regulaton on a source","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"regulation_type\": \"Suppress_With_Delete\",\n    \"attributes\": {\n        \"name\": \"userId\",\n        \"values\": [\n            \"foo-user\",\n            \"bar-user\"\n        ]\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/regulations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Apr 2019 18:51:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"78"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"regulate_id\": \"REDACTED\"\n}"}],"_postman_id":"247117b5-3dc2-4965-b41c-6c1aacdf4762"},{"name":"Delete Object from a Cloud Source","id":"01d75cc7-5256-44a7-af9b-62e255854f20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"regulation_type\": \"Suppress_With_Delete\",\n    \"attributes\": {\n        \"name\": \"objectId\",\n        \"values\": [\n            \"foo-user\",\n            \"bar-user\"\n        ]\n    },\n    \"collection\": \"app-collection\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/regulations","description":"<p>This end point deletes an object from a specific cloud source.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/sources/js","regulations"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"a537a369-b8ce-444f-a586-153911f5d82b","name":"Delete Object from a Cloud Source","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"regulation_type\": \"Suppress_With_Delete\",\n    \"attributes\": {\n        \"name\": \"objectId\",\n        \"values\": [\n            \"foo-user\",\n            \"bar-user\"\n        ]\n    },\n    \"collection\": \"app-collection\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/sources/js/regulations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Apr 2019 18:57:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"44"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"regulate_id\": \"REDACTED\"\n}"}],"_postman_id":"01d75cc7-5256-44a7-af9b-62e255854f20"},{"name":"List suppressed users for a workspace","id":"39a1b03d-f265-465a-a0eb-2199dd114189","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/suppressed-users","description":"<p>This endpoint lists the actively suppressed users for a workspace</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","suppressed-users"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"338f82f3-0cbd-48b9-b2fc-27ac116d5e47","name":"List suppressed users for a workspace","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/suppressed-users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 May 2019 14:48:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1408"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"108"},{"key":"server","value":"envoy"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""}],"cookie":[],"responseTime":null,"body":"{\n    \"attributes\": [\n        {\n            \"name\": \"userId\",\n            \"values\": [\n                \"Redacted\"\n            ]\n        },\n        {\n            \"name\": \"userId\",\n            \"values\": [\n                \"Redacted\"\n            ]\n        }\n    ],\n    \"next_page_token\": \"redacted\"\n}"}],"_postman_id":"39a1b03d-f265-465a-a0eb-2199dd114189"}],"id":"a81d2138-3aaf-4034-9452-fdaa74110f12","description":"<p>In keeping with our commitment to support GDPR and future privacy regulations such as the CCPA, we offer the ability to delete and suppress data about end users if they are identified by a <code>userId</code>, should they revoke or alter their consent to data collection. For instance, if an end user in the EU invokes their Right to Object or Right to Erasure under the GDPR, you can use the following features in Segment to block ongoing data collection about the user, and additionally to delete all historical data across Segment’s systems, connected S3 buckets and warehouses, and supported downstream partners.</p>\n<p>PLEASE NOTE (Business Plan Customers): If you utilize this functionality to delete data, this means that you will not be able to Replay that data. For standard Replay requests, we ask that you wait for deletions to complete and not submit any new deletion requests for the period of time that we replay data for you.</p>\n<p>All deletion and suppression actions within Segment are asynchronous, and fall under the umbrella of what we call “Regulations.” Regulations are requests to Segment to impart control over your data flow. They can be issued from your Segment Workspace Settings page under End User Privacy.</p>\n<p><a href=\"https://segment.com/docs/guides/images/asset_N9oxVGCs.png\"></a></p>\n<p>Regulations enable you to issue a single request to delete and suppress data about a user by <code>userId</code>. All regulations are by default scoped to your workspace and target all sources within the workspace. This way, you needn’t page over every source within Segment in order to delete data about a user across all your users.</p>\n<h2 id=\"regulation-types\">Regulation types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Suppress_With_Delete</td>\n<td>Suppress new data and delete existing data</td>\n</tr>\n<tr>\n<td>Delete</td>\n<td>Delete existing data without suppressing any new data</td>\n</tr>\n<tr>\n<td>Unsuppress</td>\n<td>Stop an ongoing suppression</td>\n</tr>\n<tr>\n<td>Suppress</td>\n<td>Suppress new data without deleting existing data</td>\n</tr>\n<tr>\n<td>Delete_Internal</td>\n<td>Delete data from Segment internals only</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"regulation-states\">Regulation States</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>State</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>initialized</td>\n<td>Request is queued and is scheduled for execution</td>\n</tr>\n<tr>\n<td>running</td>\n<td>Request is currently being processed by the backend</td>\n</tr>\n<tr>\n<td>finished</td>\n<td>Request has finished successfully</td>\n</tr>\n<tr>\n<td>failed</td>\n<td>Request has failed with one or more errors. Use the GET endpoint to get specific errors.</td>\n</tr>\n</tbody>\n</table>\n</div><p>You will be modifying/querying the regulations resource to submit new GDPR requests for deletion and suppression.</p>\n<h2 id=\"permissions\">Permissions</h2>\n<p>Before interacting with the regulation endpoints, make sure you have generated access tokens for authentication. Actions which do not modify the state like listing regulations, getting the status of a regulation require read access to the workspace, where as creating new regulations, deleting existing ones require workspace owner permissions.</p>\n<h2 id=\"batching-and-rate-limits\">Batching and Rate limits</h2>\n<h3 id=\"batching\">Batching</h3>\n<p>User submitted requests will first be batched and then executed. The requests are guaranteed to be picked up and batched within a few days of submission while adhering to the workspace level limits on the concurrently running requests. The time to complete a request is dependent on the amount of data we have stored, and most requests finish within 7 days of submission. </p>\n<h3 id=\"per-request-limits\">Per request limits</h3>\n<p>Each regulate request can have at most 5,000 attribute values (either <code>userId</code> or <code>objectId</code>). \nIrrespective of the number of attribute values, each request can have a payload size of at most 4MB. Submitting requests with size greater than 4MB would result in an error. \nThere is no limit on the number of regulate requests that users can submit, although all submissions may not immediately be queued for processing. If you experience backlogs of more than 7 days, please reach out to us at <a href=\"mailto:friends@segment.com\">friends@segment.com</a>. </p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"04cd8799-9253-4d0e-9b40-6681be7abe85"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"5b037dda-98e8-4364-926d-941f4480f8ed"}}],"_postman_id":"a81d2138-3aaf-4034-9452-fdaa74110f12","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"IAM","item":[{"name":"List Roles","id":"22c781c3-4982-42bb-b609-72f8829936b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/roles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","roles"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"22c781c3-4982-42bb-b609-72f8829936b0"},{"name":"List Policies","id":"b7ac6187-08df-4012-b068-e982d32669f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/roles/-/policies","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","roles","-","policies"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7ac6187-08df-4012-b068-e982d32669f4"},{"name":"Create Policy","id":"0862ac9d-3865-4b51-9846-69d363914e74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"subject\": \"users/USER_ID\",\n\t\"resource\": \"workspaces/myworkspace\"\n}"},"url":"https://platform.segmentapis.com/v1beta/{{role_name}}/policies","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","{{role_name}}","policies"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0862ac9d-3865-4b51-9846-69d363914e74"},{"name":"Delete Policy","id":"7af31044-7c0e-4cdb-8167-ae8652fd0b2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://platform.segmentapis.com/v1beta/{{policy_name}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","{{policy_name}}"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7af31044-7c0e-4cdb-8167-ae8652fd0b2d"},{"name":"List Invites","id":"bc984fdc-88bc-465f-b79d-191edf404c88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/invites","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","invites"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"39f06aa8-b133-4419-89e8-be2f7b37513c","name":"List Invites","originalRequest":{"method":"GET","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/invites"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"invites\": [\n\t{\n\t  \"name\": \"workspaces/myworkspace/invites/123\",\n\t  \"email\": \"example@segment.local\",\n\t  \"create_time\": \"2019-05-24T16:37:24Z\",\n\t  \"expire_time\": \"2019-06-23T16:37:24Z\",\n\t  \"policies\": [\n\t    {\n\t      \"role\": \"roles/abc\",\n\t      \"resource\": \"workspaces/myworkspace\"\n\t    }\n\t  ]\n\t}\n  ]\n}"}],"_postman_id":"bc984fdc-88bc-465f-b79d-191edf404c88"},{"name":"Create Invite","id":"b17686f4-a5d7-448f-b392-ffc3264f5d76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"example@segment.local\",\n    \"policies\": [\n        {\n            \"role\": \"role/abc\",\n            \"resource\": \"resource/myworkspace\"\n        }\n    ]\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/invites","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace","invites"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"82336144-f69b-419d-9206-eafdce1d58bd","name":"Create Invite","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"example@segment.local\",\n\t\"policies\": [{\n\t\t\"role\": \"role/ROLE_ID\",\n\t\t\"resource\": \"resource/myworkspace\"\n\t}]\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/invites"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"workspaces/myworkspace/invites/123\",\n  \"email\": \"example@segment.local\",\n  \"create_time\": \"2019-05-24T16:37:24Z\",\n  \"expire_time\": \"2019-06-23T16:37:24Z\",\n  \"policies\": [\n    {\n      \"role\": \"roles/abc\",\n      \"resource\": \"workspaces/myworkspace\"\n    }\n  ]\n}"}],"_postman_id":"b17686f4-a5d7-448f-b392-ffc3264f5d76"},{"name":"Delete Invite","id":"c36bce36-59a7-4f5f-a88f-f05f01302aa9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/invites/123","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/myworkspace/invites/123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"932bc583-91d0-4dd2-8f1f-52acf8d76a6b","name":"Delete Invite","originalRequest":{"method":"DELETE","header":[],"url":"https://platform.segmentapis.com/v1beta/workspaces/myworkspace/invites/123"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c36bce36-59a7-4f5f-a88f-f05f01302aa9"}],"id":"17f61b7a-8fc9-42f0-8593-958a350949f4","description":"<p>Segment’s Identity and Access Management (IAM) model is based on role-based access control, and has three central notions: subjects (mostly users), roles (a logical collection of actions), and policies (a link between a subject, role, and resource). </p>\n<p>The IAM API also allows you to manage invitations to your workspace. Invites can be created for a given email and a list of roles and resources. You can also list all pending invites and revoke / delete any pending invite.</p>\n<p>To see who has what permissions in a workspace, list the policies in that workspace. To grant a new permission, create a policy.</p>\n<h2 id=\"role-model\">Role Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Human-friendly name for a role</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>A description of the role</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the role</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>array[string]</td>\n<td>Actions which the role grants</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"policy-model\">Policy Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Unique name of the policy. Prefixed with the name of the role the policy belongs to.</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>resource</td>\n<td>string</td>\n<td>The resource the policy is granting permissions upon</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>subject</td>\n<td>string</td>\n<td>The subject the policy is granting permissions to</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"invite-model\">Invite Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Email of the user you are inviting</td>\n<td>required</td>\n</tr>\n<tr>\n<td>create_time</td>\n<td>string</td>\n<td>Timestamp marking with invite was created.</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>expire_time</td>\n<td>string</td>\n<td>Timestamp marking when invite is no longer valid.</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>policies</td>\n<td>array[object]</td>\n<td>List of objects with role -&gt; string and resource -&gt; string pairs .</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"a9857b52-18e6-43f7-9625-69140974b80c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"622a65ae-806a-474c-aad8-8d10138e300a"}}],"_postman_id":"17f61b7a-8fc9-42f0-8593-958a350949f4","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}},{"name":"Functions","item":[{"name":"Create Function","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"dbb29618-a2bf-466c-93b8-b80747a67382"}}],"id":"2e9093dc-8cf7-47fe-8362-cef22572bef6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"function\": {\n        \"code\": \"// Learn more about source functions API at\\r\\n// https://segment.com/docs/connections/sources/source-functions\\r\\n\\r\\n/**\\r\\n * Handle incoming HTTP request\\r\\n *\\r\\n * @param  {FunctionRequest} request\\r\\n * @param  {FunctionSettings} settings\\r\\n */\\r\\nasync function onRequest(request, settings) {\\r\\n  const body = request.json()\\r\\n\\r\\n  const endpoint = ''; // replace with your endpoint\\r\\n\\tconst response = await fetch(endpoint, {\\r\\n\\t\\tmethod: 'POST',\\r\\n\\t\\theaders: {\\r\\n\\t\\t\\tAuthorization: `Basic ${btoa(settings.apiKey + ':')}`,\\r\\n\\t\\t\\t'Content-Type': 'application/json'\\r\\n\\t\\t},\\r\\n\\t\\tbody: JSON.stringify(body)\\r\\n  });\\r\\n\\r\\n\\tif (!response.ok) {\\r\\n    console.log(\\\"ERROR fetching information: \\\", response)\\r\\n    return;\\r\\n  }\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/track/\\r\\n  Segment.track({\\r\\n    event: 'Test Event',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      testProperty: 'testValue',\\r\\n      testProperty2: response.propertyName,\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/identify/\\r\\n  Segment.identify({\\r\\n    userId: 'user_id',\\r\\n    traits: {\\r\\n      userName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/group/\\r\\n  Segment.group({\\r\\n    groupId: 'group_id',\\r\\n    userId: 'user_id',\\r\\n    traits: {\\r\\n      groupName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/page/\\r\\n  Segment.page({\\r\\n    name: 'Home page',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      url: 'https://mywebsite.com/about'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/screen/\\r\\n  Segment.screen({\\r\\n    name: 'Test Screen',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      url: 'https://mywebsite.com/about'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\r\\n  Segment.set({\\r\\n    collection: 'users',\\r\\n    id: 'user_id',\\r\\n    properties: {\\r\\n      userName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n}\",\n        \"settings\": [\n            {\n                \"name\": \"myapiKey\",\n                \"label\": \"my api key\",\n                \"type\": \"string\",\n                \"required\": \"false\",\n                \"sensitive\": \"false\"\n            },\n            {\n                \"name\": \"mySecret\",\n                \"label\": \"my secret key\",\n                \"type\": \"string\",\n                \"required\": \"false\",\n                \"sensitive\": \"true\"\n            }\n        ],\n        \"display_name\": \"test source function\"\n    },\n    \"type\": \"SOURCE\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"c85f79ef-2309-488e-b071-72ae9f53ccd4","name":"Create Function","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"function\": {\n        \"code\": \"// Learn more about source functions API at\\r\\n// https://segment.com/docs/connections/sources/source-functions\\r\\n\\r\\n/**\\r\\n * Handle incoming HTTP request\\r\\n *\\r\\n * @param  {FunctionRequest} request\\r\\n * @param  {FunctionSettings} settings\\r\\n */\\r\\nasync function onRequest(request, settings) {\\r\\n  const body = request.json()\\r\\n\\r\\n  const endpoint = ''; // replace with your endpoint\\r\\n\\tconst response = await fetch(endpoint, {\\r\\n\\t\\tmethod: 'POST',\\r\\n\\t\\theaders: {\\r\\n\\t\\t\\tAuthorization: `Basic ${btoa(settings.apiKey + ':')}`,\\r\\n\\t\\t\\t'Content-Type': 'application/json'\\r\\n\\t\\t},\\r\\n\\t\\tbody: JSON.stringify(body)\\r\\n  });\\r\\n\\r\\n\\tif (!response.ok) {\\r\\n    console.log(\\\"ERROR fetching information: \\\", response)\\r\\n    return;\\r\\n  }\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/track/\\r\\n  Segment.track({\\r\\n    event: 'Test Event',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      testProperty: 'testValue',\\r\\n      testProperty2: response.propertyName,\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/identify/\\r\\n  Segment.identify({\\r\\n    userId: 'user_id',\\r\\n    traits: {\\r\\n      userName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/group/\\r\\n  Segment.group({\\r\\n    groupId: 'group_id',\\r\\n    userId: 'user_id',\\r\\n    traits: {\\r\\n      groupName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/page/\\r\\n  Segment.page({\\r\\n    name: 'Home page',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      url: 'https://mywebsite.com/about'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/screen/\\r\\n  Segment.screen({\\r\\n    name: 'Test Screen',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      url: 'https://mywebsite.com/about'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\r\\n  Segment.set({\\r\\n    collection: 'users',\\r\\n    id: 'user_id',\\r\\n    properties: {\\r\\n      userName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n}\",\n        \"settings\": [\n            {\n                \"name\": \"apiKey\",\n                \"label\": \"api key\",\n                \"type\": \"string\",\n                \"required\": \"false\",\n                \"sensitive\": \"false\"\n            },\n            {\n                \"name\": \"mySecret\",\n                \"label\": \"my secret key\",\n                \"type\": \"string\",\n                \"required\": \"false\",\n                \"sensitive\": \"true\"\n            }\n        ],\n        \"display_name\": \"test source function\"\n    },\n    \"type\": \"SOURCE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:44:15 GMT"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"// Learn more about source functions API at\\n// https://segment.com/docs/connections/sources/source-functions\\n\\n/**\\n * Handle incoming HTTP request\\n *\\n * @param  {FunctionRequest} request\\n * @param  {FunctionSettings} settings\\n */\\nasync function onRequest(request, settings) {\\n\\tconst body = request.json();\\n\\tconsole.log(body);\\n\\n\\t// See https://segment.com/docs/connections/spec/track/\\n\\tSegment.track({\\n\\t\\tevent: 'Test Event',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\ttestProperty: 'testValue'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/identify/\\n\\tSegment.identify({\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/group/\\n\\tSegment.group({\\n\\t\\tgroupId: 'group_id',\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tgroupName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/page/\\n\\tSegment.page({\\n\\t\\tname: 'Home page',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/screen/\\n\\tSegment.screen({\\n\\t\\tname: 'Test Screen',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\n\\tSegment.set({\\n\\t\\tcollection: 'users',\\n\\t\\tid: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n}\\n\",\n  \"deployed_at\": \"2020-06-02T21:04:00Z\",\n  \"settings\": [\n    {\n      \"name\": \"apiKey\",\n      \"label\": \"api key\",\n      \"type\": \"string\"\n    },\n    {\n      \"name\": \"mySecret\",\n      \"label\": \"my secret key\",\n      \"type\": \"string\",\n      \"sensitive\": true\n    }\n  ],\n  \"id\": \"sfnc_1234\",\n  \"workspace_id\": \"workspace_id\",\n  \"display_name\": \"my test source function\",\n  \"created_at\": \"2020-07-30T19:15:26.660Z\",\n  \"created_by\": \"user_id\",\n  \"logo_url\": \"https://logo-url\",\n  \"type\": \"SOURCE\",\n  \"catalog_id\": \"1234\"\n}"}],"_postman_id":"2e9093dc-8cf7-47fe-8362-cef22572bef6"},{"name":"Get Function","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"23aaa190-65a8-418d-85d7-109aea407bbe"}}],"id":"ca1ecb0f-2ed6-436e-97d3-88bf98a301fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfnc_123","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions/sfnc_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"cf60405c-54bf-4fc9-a40b-b3f23aad34a8","name":"Get Function","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfnc_123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:32:34 GMT"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"// Learn more about source functions API at\\n// https://segment.com/docs/connections/sources/source-functions\\n\\n/**\\n * Handle incoming HTTP request\\n *\\n * @param  {FunctionRequest} request\\n * @param  {FunctionSettings} settings\\n */\\nasync function onRequest(request, settings) {\\n\\tconst body = request.json();\\n\\tconsole.log(body);\\n\\n\\t// See https://segment.com/docs/connections/spec/track/\\n\\tSegment.track({\\n\\t\\tevent: 'Test Event',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\ttestProperty: 'testValue'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/identify/\\n\\tSegment.identify({\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/group/\\n\\tSegment.group({\\n\\t\\tgroupId: 'group_id',\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tgroupName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/page/\\n\\tSegment.page({\\n\\t\\tname: 'Home page',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/screen/\\n\\tSegment.screen({\\n\\t\\tname: 'Test Screen',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\n\\tSegment.set({\\n\\t\\tcollection: 'users',\\n\\t\\tid: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n}\\n\",\n  \"deployed_at\": \"2020-06-02T21:04:00Z\",\n  \"settings\": [\n    {\n      \"name\": \"myapiKey\",\n      \"label\": \"my api key\",\n      \"type\": \"string\"\n    },\n    {\n      \"name\": \"mySecret\",\n      \"label\": \"my secret key\",\n      \"type\": \"string\",\n      \"sensitive\": true\n    }\n  ],\n  \"id\": \"sfnc_1234\",\n  \"workspace_id\": \"workspace_id\",\n  \"display_name\": \"my test source function\",\n  \"created_at\": \"2020-07-30T19:15:26.660Z\",\n  \"created_by\": \"user_id\",\n  \"logo_url\": \"https://logo-url\",\n  \"type\": \"SOURCE\",\n  \"catalog_id\": \"1234\"\n}"}],"_postman_id":"ca1ecb0f-2ed6-436e-97d3-88bf98a301fe"},{"name":"List Function","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"dd5e0534-5486-4328-83fd-d26d6b314e82"}}],"id":"3a28a2f7-d165-4225-952d-2202c27f68fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"SOURCE\",\n    \"page_size\": 10,\n    \"page_token\": \"\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions","description":"<h2 id=\"list-function-input\">List Function Input</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>workspace_id</code></td>\n<td>string</td>\n<td>Identifier of the workspace the function resides in.</td>\n<td>required</td>\n<td>de76b5055e</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>enum (<code>SOURCE</code>, <code>DESTINATION</code>)</td>\n<td>Type of function to list.</td>\n<td>required</td>\n<td>SOURCE</td>\n</tr>\n<tr>\n<td><code>page_size</code></td>\n<td>integer (1-100, default=10)</td>\n<td>Number of functions to list per page.</td>\n<td>optional</td>\n<td>10</td>\n</tr>\n<tr>\n<td><code>page_token</code></td>\n<td>string</td>\n<td>Token from a previous response, indicating which page to advance to.</td>\n<td>optional</td>\n<td>a3pVcVE2SkxaUg==</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"09166dbb-8459-4252-92d2-ba37bbb3ce91","name":"List Function","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n  \"functions\": [\n    {\n      \"settings\": [\n        {\n          \"name\": \"my setting\",\n          \"label\": \"my setting\",\n          \"type\": \"string\",\n          \"required\": true\n        },\n        {\n          \"name\": \"arraysetting\",\n          \"label\": \"array setting\",\n          \"type\": \"array\"\n        }\n      ],\n      \"id\": \"sfnc_1234\",\n      \"workspace_id\": \"workspace_id\",\n      \"display_name\": \"my function\",\n      \"created_at\": \"2020-07-20T22:35:38.056Z\",\n      \"created_by\": \"user_id\",\n      \"logo_url\": \"https://logo-url\",\n      \"type\": \"SOURCE\",\n      \"catalog_id\": \"1234\"\n    },\n    {\n      \"settings\": [\n        {\n          \"name\": \"myapiKey\",\n          \"label\": \"my api key\",\n          \"type\": \"string\"\n        },\n        {\n          \"name\": \"mySecret\",\n          \"label\": \"my secret key\",\n          \"type\": \"string\",\n          \"sensitive\": true\n        }\n      ],\n      \"id\": \"sfnc_4567\",\n      \"workspace_id\": \"workspace_id\",\n      \"display_name\": \"my second function\",\n      \"created_at\": \"2020-07-30T19:15:26.660Z\",\n      \"created_by\": \"user_id\",\n      \"logo_url\": \"https://logo-url\",\n      \"type\": \"SOURCE\",\n      \"catalog_id\": \"4567\"\n    }\n  ],\n  \"next_page_token\": \"MTI=\"\n}"}],"_postman_id":"3a28a2f7-d165-4225-952d-2202c27f68fc"},{"name":"Preview Function","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"e711f43a-45fb-45b6-bc7e-242ba88f996e"}}],"id":"bcc5dbd3-ad38-422a-9362-15b8b3a1fd8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"function\": {\n        \"code\": \"// Learn more about source functions API at\\r\\n// https://segment.com/docs/connections/sources/source-functions\\r\\n\\r\\n/**\\r\\n * Handle incoming HTTP request\\r\\n *\\r\\n * @param  {FunctionRequest} request\\r\\n * @param  {FunctionSettings} settings\\r\\n */\\r\\nasync function onRequest(request, settings) {\\r\\n  const body = request.json()\\r\\n\\r\\n  const endpoint = ''; // replace with your endpoint\\r\\n\\tconst response = await fetch(endpoint, {\\r\\n\\t\\tmethod: 'POST',\\r\\n\\t\\theaders: {\\r\\n\\t\\t\\tAuthorization: `Basic ${btoa(settings.apiKey + ':')}`,\\r\\n\\t\\t\\t'Content-Type': 'application/json'\\r\\n\\t\\t},\\r\\n\\t\\tbody: JSON.stringify(body)\\r\\n  });\\r\\n\\r\\n\\tif (!response.ok) {\\r\\n    console.log(\\\"ERROR fetching information: \\\", response)\\r\\n    return;\\r\\n  }\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/track/\\r\\n  Segment.track({\\r\\n    event: 'Test Event',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      testProperty: 'testValue',\\r\\n      testProperty2: response.propertyName,\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/identify/\\r\\n  Segment.identify({\\r\\n    userId: 'user_id',\\r\\n    traits: {\\r\\n      userName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/group/\\r\\n  Segment.group({\\r\\n    groupId: 'group_id',\\r\\n    userId: 'user_id',\\r\\n    traits: {\\r\\n      groupName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/page/\\r\\n  Segment.page({\\r\\n    name: 'Home page',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      url: 'https://mywebsite.com/about'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/spec/screen/\\r\\n  Segment.screen({\\r\\n    name: 'Test Screen',\\r\\n    userId: 'user_id',\\r\\n    properties: {\\r\\n      url: 'https://mywebsite.com/about'\\r\\n    }\\r\\n  })\\r\\n\\r\\n  // See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\r\\n  Segment.set({\\r\\n    collection: 'users',\\r\\n    id: 'user_id',\\r\\n    properties: {\\r\\n      userName: 'Unicorn'\\r\\n    }\\r\\n  })\\r\\n}\",\n        \"settings\": [\n            {\n                \"name\": \"myapiKey\",\n                \"label\": \"my api key\",\n                \"type\": \"string\",\n                \"required\": \"false\",\n                \"sensitive\": \"false\"\n            },\n            {\n                \"name\": \"mySecret\",\n                \"label\": \"my secret key\",\n                \"type\": \"string\",\n                \"required\": \"false\",\n                \"sensitive\": \"true\"\n            }\n        ],\n        \"display_name\": \"test source function\"\n    },\n    \"type\": \"SOURCE\"\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/preview","description":"<p><code>Preview</code> is used to test function code before updating and deploying.</p>\n<h2 id=\"preview-input\">Preview Input</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>workspace_id</td>\n<td>string</td>\n<td>Metrics enabled for the source</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>function</td>\n<td>Function Model</td>\n<td>The complete functions object.</td>\n<td>required</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Type of function: <code>SOURCE</code> or <code>DESTINATION</code></td>\n<td>required</td>\n</tr>\n<tr>\n<td>payload</td>\n<td>string</td>\n<td>JSON payload to invoke the function</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example payload (Source Function)</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"payload\": {\n    \"body\": {\"foo\":\"bar\"},\n    \"headers\": {\n      \"Accept\": [\"*/*\"],\n      \"Content-Length\": [\"13\"],\n      \"Content-Type\": [\"application/json\"],\n      \"User-Agent\": [\"curl/7.64.1\"],\n      \"X-Request-Id\": [\"64bcb940-8071-473c-8836-10d4f42b7a24\"]\n    },\n    \"queryParameters\": {}\n  }\n}\n</code></pre><p><strong>Example payload (Destination Function)</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"type\": \"track\",\n  \"event\": \"Test event\",\n  \"userId\": \"foo@example.com\",\n  \"timestamp\": \"2019-11-15T14:26:36-08:00\",\n  \"properties\": {}\n\n</code></pre><p><strong>Example response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"invoke\": {\n    \"success\": true,\n    \"output\": \"{\n      \"events\": [{\n        \"type\": \"track\",\n        \"event\": \"Custom Source 1 Executed\",\n        \"userId\": \"1234\"\n      }],\n      \"objects\": []\n    }\",\n    \"trace\": {\n      \"source\": \"preview-1234\",\n      \"version\": \"1234\",\n      \"specversion\": \"1.0\",\n      \"type\": \"com.segment.event.ack\",\n      \"time\": \"2020-07-31T22:16:25.553Z\",\n      \"trace\": {\n        \"name\": \"invoke\",\n        \"time\": \"2020-07-31T22:16:25.553Z\",\n        \"duration\": \"0.201s\",\n        \"logs\": [{\n          \"time\": \"2020-07-31T22:16:25.653Z\",\n          \"key\": \"NOTICE\",\n          \"value\": \"{ foo: 'bar' }\"\n        }]\n      }\n    }\n  },\n  \"logs\": [{\n    \"message\": \"{ foo: 'bar' }\",\n    \"created_at\": \"2020-07-31T22:16:25.656Z\"\n  }],\n  \"session_id\": \"1234\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions","preview"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"1095222e-1924-4633-8fe9-3321d6dd9cee","name":"Preview Function","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"SOURCE\",\n    \"function\": {\n        \"code\": \"// Learn more about source functions API at\\n// https://segment.com/docs/connections/sources/source-functions\\n\\n/**\\n * Handle incoming HTTP request\\n *\\n * @param  {FunctionRequest} request\\n * @param  {FunctionSettings} settings\\n */\\nasync function onRequest(request, settings) {\\n\\tconst body = request.json();\\n\\tconsole.log(body);\\n\\n\\t// See https://segment.com/docs/connections/spec/track/\\n\\tSegment.track({\\n\\t\\tevent: 'Test Event',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\ttestProperty: 'testValue'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/identify/\\n\\tSegment.identify({\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/group/\\n\\tSegment.group({\\n\\t\\tgroupId: 'group_id',\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tgroupName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/page/\\n\\tSegment.page({\\n\\t\\tname: 'Home page',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/screen/\\n\\tSegment.screen({\\n\\t\\tname: 'Test Screen',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\n\\tSegment.set({\\n\\t\\tcollection: 'users',\\n\\t\\tid: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n}\\n\"\n    },\n    \"payload\": \"\\r\\n{\\r\\n  \\\"payload\\\": {\\r\\n    \\\"body\\\": {\\\"foo\\\":\\\"bar\\\"},\\r\\n    \\\"headers\\\": {\\r\\n      \\\"Accept\\\": [\\\"*/*\\\"],\\r\\n      \\\"Content-Length\\\": [\\\"13\\\"],\\r\\n      \\\"Content-Type\\\": [\\\"application/json\\\"],\\r\\n      \\\"User-Agent\\\": [\\\"curl/7.64.1\\\"],\\r\\n      \\\"X-Request-Id\\\": [\\\"64bcb940-8071-473c-8836-10d4f42b7a24\\\"]\\r\\n    },\\r\\n    \\\"queryParameters\\\": {}\\r\\n  }\\r\\n}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/preview"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:44:15 GMT"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"invoke\": {\n    \"success\": true,\n    \"output\": \"{\\\"events\\\":[{\\\"event\\\":\\\"Test Event\\\",\\\"userId\\\":\\\"user_id\\\",\\\"properties\\\":{\\\"testProperty\\\":\\\"testValue\\\"},\\\"type\\\":\\\"track\\\"},{\\\"userId\\\":\\\"user_id\\\",\\\"traits\\\":{\\\"userName\\\":\\\"Unicorn\\\"},\\\"type\\\":\\\"identify\\\"},{\\\"groupId\\\":\\\"group_id\\\",\\\"userId\\\":\\\"user_id\\\",\\\"traits\\\":{\\\"groupName\\\":\\\"Unicorn\\\"},\\\"type\\\":\\\"group\\\"},{\\\"name\\\":\\\"Home page\\\",\\\"userId\\\":\\\"user_id\\\",\\\"properties\\\":{\\\"url\\\":\\\"https://mywebsite.com/about\\\"},\\\"type\\\":\\\"page\\\"},{\\\"name\\\":\\\"Test Screen\\\",\\\"userId\\\":\\\"user_id\\\",\\\"properties\\\":{\\\"url\\\":\\\"https://mywebsite.com/about\\\"},\\\"type\\\":\\\"screen\\\"}],\\\"objects\\\":[{\\\"collection\\\":\\\"users\\\",\\\"id\\\":\\\"user_id\\\",\\\"properties\\\":{\\\"userName\\\":\\\"Unicorn\\\"}}]}\",\n    \"trace\": {\n      \"source\": \"preview-12324\",\n      \"version\": \"1234\",\n      \"specversion\": \"1.0\",\n      \"type\": \"com.segment.event.ack\",\n      \"time\": \"2020-07-31T22:16:25.553Z\",\n      \"trace\": {\n        \"name\": \"invoke\",\n        \"time\": \"2020-07-31T22:16:25.553Z\",\n        \"duration\": \"0.201s\",\n        \"logs\": [\n          {\n            \"time\": \"2020-07-31T22:16:25.653Z\",\n            \"key\": \"NOTICE\",\n            \"value\": \"{ foo: 'bar' }\"\n          }\n        ]\n      }\n    }\n  },\n  \"logs\": [\n    {\n      \"message\": \"{ foo: 'bar' }\",\n      \"created_at\": \"2020-07-31T22:16:25.656Z\"\n    }\n  ],\n  \"session_id\": \"123456\"\n}"}],"_postman_id":"bcc5dbd3-ad38-422a-9362-15b8b3a1fd8d"},{"name":"Update Function","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"911bcca0-d8b7-4795-91a6-1cec25a2b8ea"}}],"id":"f1895d1a-3e05-455f-b5fe-81c815327bc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"function\": {\n        \"code\": \"// Learn more about source functions API at\\n// https://segment.com/docs/connections/sources/source-functions\\n\\n/**\\n * Handle incoming HTTP request\\n *\\n * @param  {FunctionRequest} request\\n * @param  {FunctionSettings} settings\\n */\\nasync function onRequest(request, settings) {\\n\\tconst body = request.json();\\n\\tconsole.log(body);\\n\\n\\t// See https://segment.com/docs/connections/spec/track/\\n\\tSegment.track({\\n\\t\\tevent: 'Test Event',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\ttestProperty: 'testValue'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/identify/\\n\\tSegment.identify({\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/group/\\n\\tSegment.group({\\n\\t\\tgroupId: 'group_id',\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tgroupName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/page/\\n\\tSegment.page({\\n\\t\\tname: 'Home page',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/screen/\\n\\tSegment.screen({\\n\\t\\tname: 'Test Screen',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\n\\tSegment.set({\\n\\t\\tcollection: 'users',\\n\\t\\tid: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n}\\n\"\n    },\n    \"update_mask\": {\n        \"paths\": [\n            \"function.code\"\n        ]\n    }\n}"},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfnc_123","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Subfield</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>update_mask</code></td>\n<td><code>paths</code></td>\n<td>array of paths to update</td>\n<td>required</td>\n</tr>\n<tr>\n<td><code>function</code></td>\n<td></td>\n<td>functions object</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div><p>update_mask <code>paths</code> may contain: <code>function.code</code>, <code>function.settings</code>, <code>functions.display_name</code>, <code>functions.logo_url</code>, <code>functions.description</code></p>\n<p>Destination Function code updates will <strong>immediately be deployed</strong> to all destination instances.</p>\n<p>Source Function code updates <strong>do not</strong> immediately get deployed to all source instances. You will need to call <code>deploy</code> on each source function instance for code changes to take effect. See the Sources API <code>IsLatestVersion</code> and <code>Deploy</code> endpoints. </p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions/sfnc_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"e21b80b0-73b4-47f5-8f1a-fdefb918f194","name":"Update Function","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"function\": {\n        \"code\": \"// Learn more about source functions API at\\n// https://segment.com/docs/connections/sources/source-functions\\n\\n/**\\n * Handle incoming HTTP request\\n *\\n * @param  {FunctionRequest} request\\n * @param  {FunctionSettings} settings\\n */\\nasync function onRequest(request, settings) {\\n\\tconst body = request.json();\\n\\tconsole.log(body);\\n\\n\\t// See https://segment.com/docs/connections/spec/track/\\n\\tSegment.track({\\n\\t\\tevent: 'Test Event',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\ttestProperty: 'testValue'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/identify/\\n\\tSegment.identify({\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/group/\\n\\tSegment.group({\\n\\t\\tgroupId: 'group_id',\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tgroupName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/page/\\n\\tSegment.page({\\n\\t\\tname: 'Home page',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/screen/\\n\\tSegment.screen({\\n\\t\\tname: 'Test Screen',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\n\\tSegment.set({\\n\\t\\tcollection: 'users',\\n\\t\\tid: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n}\\n\"\n    },\n    \"update_mask\": {\n        \"paths\": [\n            \"function.code\"\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfnc_123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Oct 2018 20:44:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"367"},{"key":"Connection","value":"keep-alive"},{"key":"x-envoy-upstream-service-time","value":"131"},{"key":"grpc-status","value":"0"},{"key":"grpc-message","value":""},{"key":"server","value":"envoy"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"// Learn more about source functions API at\\n// https://segment.com/docs/connections/sources/source-functions\\n\\n/**\\n * Handle incoming HTTP request\\n *\\n * @param  {FunctionRequest} request\\n * @param  {FunctionSettings} settings\\n */\\nasync function onRequest(request, settings) {\\n\\tconst body = request.json();\\n\\tconsole.log(body);\\n\\n\\t// See https://segment.com/docs/connections/spec/track/\\n\\tSegment.track({\\n\\t\\tevent: 'Test Event',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\ttestProperty: 'testValue'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/identify/\\n\\tSegment.identify({\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/group/\\n\\tSegment.group({\\n\\t\\tgroupId: 'group_id',\\n\\t\\tuserId: 'user_id',\\n\\t\\ttraits: {\\n\\t\\t\\tgroupName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/page/\\n\\tSegment.page({\\n\\t\\tname: 'Home page',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/spec/screen/\\n\\tSegment.screen({\\n\\t\\tname: 'Test Screen',\\n\\t\\tuserId: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\turl: 'https://mywebsite.com/about'\\n\\t\\t}\\n\\t});\\n\\n\\t// See https://segment.com/docs/connections/sources/catalog/libraries/server/object-api/\\n\\tSegment.set({\\n\\t\\tcollection: 'users',\\n\\t\\tid: 'user_id',\\n\\t\\tproperties: {\\n\\t\\t\\tuserName: 'Unicorn'\\n\\t\\t}\\n\\t});\\n}\\n\",\n  \"deployed_at\": \"2020-06-02T21:04:00Z\",\n  \"settings\": [\n    {\n      \"name\": \"myapiKey\",\n      \"label\": \"my api key\",\n      \"type\": \"string\"\n    },\n    {\n      \"name\": \"mySecret\",\n      \"label\": \"my secret key\",\n      \"type\": \"string\",\n      \"sensitive\": true\n    }\n  ],\n  \"id\": \"sfnc_1234\",\n  \"workspace_id\": \"workspace_id\",\n  \"display_name\": \"my test source function\",\n  \"created_at\": \"2020-07-30T19:15:26.660Z\",\n  \"created_by\": \"user_id\",\n  \"logo_url\": \"https://logo-url\",\n  \"type\": \"SOURCE\",\n  \"catalog_id\": \"1234\"\n}"}],"_postman_id":"f1895d1a-3e05-455f-b5fe-81c815327bc0"},{"name":"Delete Function","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"486add66-3ee0-4dc9-924f-e181a7e6e768"}}],"id":"405390ac-8cfb-402d-a77b-41ac0960e23f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfnc_123","description":"<p>Deleting a function cannot be undone. A function cannot be deleted if it is currently in use. Delete source function or destination function instances (using the Sources and Destinations APIs) before deleting the function.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}},"urlObject":{"path":["v1beta","workspaces/workspace_id","functions/sfnc_123"],"host":["https://platform.segmentapis.com"],"query":[],"variable":[]}},"response":[{"id":"a62bce32-b6e5-40b8-96ad-ff8adf55e5c8","name":"Delete Function","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ...","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://platform.segmentapis.com/v1beta/workspaces/workspace_id/functions/sfnc_123"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"405390ac-8cfb-402d-a77b-41ac0960e23f"}],"id":"befc1625-5d48-4438-a4df-17d898e0edb0","description":"<h2 id=\"function-model\">Function Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Function ID</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>Display name of the function</td>\n<td>required</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Function type: <code>source</code> or <code>destination</code></td>\n<td>required</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Function code (JavaScript)</td>\n<td>required</td>\n</tr>\n<tr>\n<td>workspace_id</td>\n<td>string</td>\n<td>Workspace ID of the function</td>\n<td>required</td>\n</tr>\n<tr>\n<td>settings</td>\n<td>array[SettingSchema]</td>\n<td>A list of setting schemas</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Function description</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>Logo URL</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>catalog_id</td>\n<td>string</td>\n<td>Catalog ID of the function, for use with the Sources and Destinations APIs</td>\n<td>read-only</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>datetime</td>\n<td>Time the function was created</td>\n<td>read-only</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"setting-schema-model\">Setting Schema Model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n<th></th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the setting</td>\n<td>required</td>\n<td>'apiKey'</td>\n</tr>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>Display name (in the UI)</td>\n<td>required</td>\n<td>'api key'</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>The type of setting ('string', 'boolean', 'text-map', 'array')</td>\n<td>required</td>\n<td>'string'</td>\n</tr>\n<tr>\n<td>sensitive</td>\n<td>boolean</td>\n<td>If the setting contains sensitive data ie. apiKey</td>\n<td>required</td>\n<td>true</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Setting description</td>\n<td>optional</td>\n<td>'Enter the api key'</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"6bba2c93-fc26-4842-8d6d-ba0cc993c00a"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"eb6ca752-82f4-4c1f-85c3-f401c1382b4e"}}],"_postman_id":"befc1625-5d48-4438-a4df-17d898e0edb0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"c88336c1-101b-4ceb-b339-21f904810db4","id":"c88336c1-101b-4ceb-b339-21f904810db4","name":"Segment APIs","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"f6a0a25c-f5f9-409b-9d47-db2ba004fd86"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"5b35a194-921a-43c6-84df-ddba706eefc1"}}],"variable":[{"key":"host","value":"https://platform.segmentapis.com"},{"key":"version","value":"v1beta"},{"key":"user","value":"me@example.com"},{"key":"pass","value":"<PASSWORD>"},{"key":"workspace_name","value":"workspaces/myworkspace"},{"key":"source_name","value":"workspaces/myworkspace/sources/js"},{"key":"destination_name","value":"workspaces/myworkspace/sources/js/destinations/google-analytics"},{"key":"tracking_plan_name","value":"workspaces/myworkspace/tracking-plans/rs_123"},{"key":"invite_name","value":"workspaces/myworkspace/invites/123"},{"key":"filter_name","value":"workspaces/myworkspace/sources/js/destinations/google-analytics/filters/df_123"},{"key":"workspace_id","value":"workspaces/workspace_id"},{"key":"function_id","value":"functions/sfnc_123"},{"key":"config","value":"workspaces/myworkspace/sources/js/destinations/google-analytics/config/1a2b3c5d6e7f8g9h0i1a2b3c5"},{"key":"destination_config_name","value":"{{destination_config_name}}"}]}