{"info":{"_postman_id":"088459e3-cfdf-4bf4-81db-58b4dae7bc3b","name":"RudderStack API","description":"<html><head></head><body><p>Detailed documentation of all the supported RudderStack APIs.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16242548","collectionId":"088459e3-cfdf-4bf4-81db-58b4dae7bc3b","publishedId":"TzeWFT6D","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"10174C"},"publishDate":"2021-06-16T05:33:33.000Z"},"item":[{"name":"HTTP API","item":[{"name":"Identify","id":"87ff0af0-3a0e-4fff-81f3-76f7daf256b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user1\",\n  \"anonymousId\":\"anon-id-new\",\n  \"context\": {\n    \"traits\": {\n       \"trait1\": \"new-val\"  \n    },\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/identify","description":"<p>The <code>identify</code> call lets you capture the relevant details about a visitor user and also record any traits associated with them.</p>\n<blockquote>\n<p>As a best practice, make sure the <code>identify</code> call is made at the start of every session or page load for logged-in users. This will ensure all the latest user traits are captured.</p>\n</blockquote>\n<hr />\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>anonymousId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>userId</code></td>\n<td>String</td>\n<td>Optional, if <code>anonymousId</code> is set.</td>\n<td>Unique identifier for a particular user in your database.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides additional context about the message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>The timestamp associated with the user's arrival.</td>\n</tr>\n<tr>\n<td><code>traits</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of the user traits such as <code>name</code> or <code>email</code>.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","identify"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"a10ca1bb-60ae-4b98-b870-22901022aafe","name":"Identify","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"anonymousId\":\"anon-id-new\",\n  \"context\": {\n    \"traits\": {\n       \"trait1\": \"new-val\"  \n    },\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/identify"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:09:41 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"87ff0af0-3a0e-4fff-81f3-76f7daf256b5"},{"name":"Track","id":"f99dc525-9b9f-4c29-af6a-bf33da7be51b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user123\",\n  \"event\": \"Product Purchased\",\n  \"properties\": {\n    \"name\": \"Rubik's Cube\",\n    \"revenue\": 4.99\n  },\n  \"context\": {\n    \"ip\": \"14.5.67.21\"\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/track","description":"<p>The <code>track</code> call lets you record all the user actions along with their associated properties. </p>\n<blockquote>\n<p>Each user action is considered to be an event.</p>\n</blockquote>\n<hr />\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>anonymousId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>userId</code></td>\n<td>String</td>\n<td>Optional, if <code>anonymousId</code> is set.</td>\n<td>Unique identifier for a particular user in your database.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides additional context about the message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>event</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Name of the user event.</td>\n</tr>\n<tr>\n<td><code>properties</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of the properties associated with the particular event.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>The timestamp associated with the user's arrival.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","track"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"f7191741-31d6-4ace-9c27-fc91adc5d184","name":"Track","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user123\",\n  \"event\": \"Product Purchased\",\n  \"properties\": {\n    \"name\": \"Rubik's Cube\",\n    \"revenue\": 4.99\n  },\n  \"context\": {\n    \"ip\": \"14.5.67.21\"\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/track"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:10:39 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"f99dc525-9b9f-4c29-af6a-bf33da7be51b"},{"name":"Page","id":"ac8adb1e-6c99-4a9c-b091-b8dea3bc3b5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"anonymousId\":\"anon-id-new\",\n  \"name\": \"Page View\",\n  \"properties\": {\n    \"title\": \"Home\",\n    \"path\": \"/\"\n  },\n  \"context\": {\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/page","description":"<p>The <code>page</code> call lets you record your website's page views along with any additional relevant information about the viewed page.</p>\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>anonymousId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>userId</code></td>\n<td>String</td>\n<td>Optional, if <code>anonymousId</code> is set.</td>\n<td>Unique identifier for a particular user in your database.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides additional context about the message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Name of the viewed page.</td>\n</tr>\n<tr>\n<td><code>properties</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of the user traits such as <code>url</code>, <code>referrer</code>, etc.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>The timestamp associated with the user's arrival.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","page"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"102ada83-e358-4f45-8955-b59445aae705","name":"Page","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"anonymousId\":\"anon-id-new\",\n  \"name\": \"Page View\",\n  \"properties\": {\n    \"title\": \"Home\",\n    \"path\": \"/\"\n  },\n  \"context\": {\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/page"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:11:34 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"ac8adb1e-6c99-4a9c-b091-b8dea3bc3b5a"},{"name":"Screen","id":"8a2c9bfe-6f64-49b6-8afa-a9bc9a4766f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"anonymousId\":\"anon-id-new\",\n  \"name\": \"Screen View\",\n  \"properties\": {\n    \"prop1\": \"5\"\n  },\n  \"context\": {\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/screen","description":"<p>The <code>screen</code> call lets you record whenever a mobile app user sees the screen of their mobile device. This call is the <code>page</code> equivalent for a mobile app/device.</p>\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>anonymousId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>userId</code></td>\n<td>String</td>\n<td>Optional, if <code>anonymousId</code> is set.</td>\n<td>Unique identifier for a particular user in your database.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides additional context about the message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Name of the screen being viewed by the user.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>The timestamp associated with the user's arrival.</td>\n</tr>\n<tr>\n<td><code>properties</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of the properties associated with the screen, such as <code>url</code>,<code>referrer</code>, etc.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","screen"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"2bd312e0-206c-4923-a479-7b91eb1c6e5f","name":"Screen","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"anonymousId\":\"anon-id-new\",\n  \"name\": \"Screen View\",\n  \"properties\": {\n    \"prop1\": \"5\"\n  },\n  \"context\": {\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/screen"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:12:21 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"8a2c9bfe-6f64-49b6-8afa-a9bc9a4766f0"},{"name":"Group","id":"d938bfb3-fd60-47bc-8898-2b753215b300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"groupId\": \"group1\",\n  \"traits\": {\n    \"name\": \"Company\",\n    \"industry\": \"Industry\",\n    \"employees\": 123\n  },\n  \"context\": {\n    \"traits\": {\n       \"trait1\": \"new-val\"  \n    },\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/group","description":"<p>The <code>group</code> call lets you associate an identified user with a group such as a company, organization, or an account.</p>\n<p>It also allows you to record any traits associated with that group such as the name of the company, industry, or the number of employees in the organization.</p>\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>anonymousId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>userId</code></td>\n<td>String</td>\n<td>Optional, if <code>anonymousId</code> is set.</td>\n<td>Unique identifier for a particular user in your database.</td>\n</tr>\n<tr>\n<td><code>groupId</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Unique identifier for the particular group in your database.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides additional context about the message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>traits</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of the user traits such as <code>name</code> or <code>email</code>.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>The timestamp associated with the user's arrival.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","group"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"9ad7a028-bb7b-4c69-84f8-39a9cfb18a84","name":"Group","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user12345\",\n  \"groupId\": \"group1\",\n  \"traits\": {\n    \"name\": \"Company\",\n    \"industry\": \"Industry\",\n    \"employees\": 123\n  },\n  \"context\": {\n    \"traits\": {\n       \"trait1\": \"new-val\"  \n    },\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/group"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:13:35 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"d938bfb3-fd60-47bc-8898-2b753215b300"},{"name":"Alias","id":"089f4add-f612-4224-a2cd-6c5a87629f05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user123\",\n  \"previousId\": \"user12345\",\n  \"context\": {\n    \"traits\": {\n       \"trait1\": \"new-val\"  \n    },\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/alias","description":"<p>The <code>alias</code> call captures any relevant details about the user's alternate/past identity. With <code>alias</code>, you can merge or associate a user's past identity with the current one. </p>\n<p>The <code>alias</code> call is quite useful in cases where you need to associate an <code>anonymousId</code> with an identified user on signup (in case of Mixpanel) or associating user identities when the user switches their IDs (in case of Kissmetrics).</p>\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>userId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>previousId</code></td>\n<td>String</td>\n<td>Required</td>\n<td>The previous unique identifier of the user.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides additional context about the message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled.</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>The timestamp associated with the message's arrival.</td>\n</tr>\n<tr>\n<td><code>traits</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of the user traits such as <code>name</code> or <code>email</code>.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","alias"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"ed8d42c1-ed99-427e-9a93-7ba65374036b","name":"Alias","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"user123\",\n  \"previousId\": \"user12345\",\n  \"context\": {\n    \"traits\": {\n       \"trait1\": \"new-val\"  \n    },\n    \"ip\": \"14.5.67.21\",\n    \"library\": {\n        \"name\": \"http\"\n    }\n  },\n  \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/alias"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:14:27 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"089f4add-f612-4224-a2cd-6c5a87629f05"},{"name":"Batch","id":"4d84e133-7230-44fd-83d4-d85048bf5774","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"batch\": [{\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"type\": \"identify\",\n            \"context\": {\n                \"traits\": {\n                    \"trait1\": \"new-val\"\n                },\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"event\": \"Product Purchased new\",\n            \"type\": \"track\",\n            \"properties\": {\n                \"name\": \"Shirt\",\n                \"revenue\": 4.99\n            },\n            \"context\": {\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"name\": \"Page View\",\n            \"type\": \"page\",\n            \"properties\": {\n                \"title\": \"Home\",\n                \"path\": \"/\"\n            },\n            \"context\": {\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"name\": \"Screen View\",\n            \"type\": \"screen\",\n            \"properties\": {\n                \"prop1\": \"5\"\n            },\n            \"context\": {\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"user123\",\n            \"type\": \"group\",\n            \"groupId\": \"group1\",\n            \"traits\": {\n                \"name\": \"Company\",\n                \"industry\": \"Industry\",\n                \"employees\": 123\n            },\n            \"context\": {\n                \"traits\": {\n                    \"trait1\": \"new-val\"\n                },\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n        },\n        {\n            \"userId\": \"user123\",\n            \"previousId\": \"previd1\",\n            \"type\":\"alias\",\n            \"context\": {\n                \"traits\": {\n                    \"trait1\": \"new-val\"\n                },\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n        }\n\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/batch","description":"<p>The <code>batch</code> call lets you send a series of <code>identify</code>, <code>track</code>, <code>page</code>, <code>group</code>, and <code>screen</code> requests in a single batch. This call helps you minimize the number of outbound requests, thus enabling better performance.</p>\n<blockquote>\n<p><strong>RudderStack sets a maximum limit of 4 MB per batch request and 32 KB per call.</strong></p>\n</blockquote>\n<hr />\n<h4 id=\"accepted-fields\">Accepted Fields</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>batch</code></td>\n<td>Array</td>\n<td>Required</td>\n<td>Sets the user ID in cases where there is no unique identifier for the user in the database.</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Dictionary of information that provides context about a message. It is not directly related to the API call.</td>\n</tr>\n<tr>\n<td><code>integrations</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>Contains the list of destinations to be enabled or disabled for the call.</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>The <code>context</code> and <code>integrations</code> fields in the <code>batch</code> call are the same as in case of other calls. However, <strong>they are merged</strong> with the <code>context</code> or <code>integrations</code> (if any) fields in each of the calls included within <code>batch</code>.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":true,"source":{"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189","id":"ef04bfe0-57e0-4138-88e7-782594888189","name":"HTTP API","type":"folder"}},"urlObject":{"path":["v1","batch"],"host":["{{data_plane_url}}"],"query":[],"variable":[]}},"response":[{"id":"87c459b0-8a38-426f-bdf5-6d95b0c174aa","name":"Batch","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"batch\": [{\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"type\": \"identify\",\n            \"context\": {\n                \"traits\": {\n                    \"trait1\": \"new-val\"\n                },\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"event\": \"Product Purchased new\",\n            \"type\": \"track\",\n            \"properties\": {\n                \"name\": \"Shirt\",\n                \"revenue\": 4.99\n            },\n            \"context\": {\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"name\": \"Page View\",\n            \"type\": \"page\",\n            \"properties\": {\n                \"title\": \"Home\",\n                \"path\": \"/\"\n            },\n            \"context\": {\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"identified user id\",\n            \"anonymousId\": \"anon-id-new\",\n            \"name\": \"Screen View\",\n            \"type\": \"screen\",\n            \"properties\": {\n                \"prop1\": \"5\"\n            },\n            \"context\": {\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-02-02T00:23:09.544Z\"\n        },\n        {\n            \"userId\": \"user123\",\n            \"type\": \"group\",\n            \"groupId\": \"group1\",\n            \"traits\": {\n                \"name\": \"Company\",\n                \"industry\": \"Industry\",\n                \"employees\": 123\n            },\n            \"context\": {\n                \"traits\": {\n                    \"trait1\": \"new-val\"\n                },\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n        },\n        {\n            \"userId\": \"user123\",\n            \"previousId\": \"previd1\",\n            \"type\":\"alias\",\n            \"context\": {\n                \"traits\": {\n                    \"trait1\": \"new-val\"\n                },\n                \"ip\": \"14.5.67.21\",\n                \"library\": {\n                    \"name\": \"http\"\n                }\n            },\n            \"timestamp\": \"2020-01-21T00:21:34.208Z\"\n        }\n\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{data_plane_url}}/v1/batch"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 21 Jul 2021 05:15:06 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"openresty/1.19.3.1"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"4d84e133-7230-44fd-83d4-d85048bf5774"}],"id":"ef04bfe0-57e0-4138-88e7-782594888189","description":"<p>The <strong>RudderStack HTTP API</strong> lets you track your customer event data and route it to your desired destinations.</p>\n<blockquote>\n<p>We recommend using the RudderStack SDKs for automatic tagging of the user identity as well as context, batching the events, and leveraging the retry functionality in case of failure. <strong>However, if you cannot use our SDKs, it is possible to send your event data using the HTTP API</strong>.</p>\n</blockquote>\n<hr />\n<h2 id=\"rudderstack-data-plane\">RudderStack Data Plane</h2>\n<p>To send HTTP requests, you should have a RudderStack server configured with your workspace token. Please refer to <a href=\"https://docs.rudderstack.com/getting-started/installing-and-setting-up-rudderstack\"><strong>this section</strong></a> for installing and setting up RudderStack.</p>\n<blockquote>\n<p>For more information on the RudderStack Data Plane, refer to our <a href=\"https://docs.rudderstack.com/get-started/rudderstack-architecture#data-plane-architecture\"><strong>documentation</strong></a>.</p>\n</blockquote>\n<hr />\n<blockquote>\n<p><strong>Note</strong>: RudderStack's HTTP server should be accessible from your HTTP client.</p>\n</blockquote>\n<hr />\n<blockquote>\n<p>A workspace token is unique to your RudderStack workspace.</p>\n</blockquote>\n<hr />\n<img src=\"https://user-images.githubusercontent.com/59817155/126443739-c79ba47e-e0f9-4f2e-9ebb-f03d6042e94a.png\" alt />\n\n<h2 id=\"postman-collection\">Postman Collection</h2>\n<p>Import the Postman collection using this <a href=\"https://www.postman.com/collections/480307c55ad2b9dd4e27\"><strong>URL</strong></a> and edit the variables <code>source_write_key</code> and <code>data_plane_url</code> with your source write key and the RudderStack Data Plane URL. Now you can test all supported requests.</p>\n<blockquote>\n<p><strong>Note</strong>: If you are using RudderStack Cloud, the Data Plane URL should be set to: <a href=\"https://hosted.rudderlabs.com\"><strong>https://hosted.rudderlabs.com</strong></a>.</p>\n</blockquote>\n<hr />\n<h2 id=\"http-authorization\">HTTP Authorization</h2>\n<p>RudderStack uses Basic Authentication for authenticating all the HTTP requests. The HTTP Basic Authentication requires a username and password, where:</p>\n<ul>\n<li>Your source write key is the username, and</li>\n<li>An empty string (<code>\" \"</code>) is the password.</li>\n</ul>\n<p>A source write key is the write key associated with the source you have configured in RudderStack, as shown:</p>\n<img src=\"https://gblobscdn.gitbook.com/assets/-Lq5Ea6fHVg3dSxMCgyQ/-MdWwuzSa0-3wrwkgnpT/-MdWwzPaX4Q0SVIeePn8/Screen Shot 2021-07-01 at 5.27.53 PM.png?alt=media&amp;token=15c7f42a-589f-4c1a-b2ae-bac781bf5b88\" alt />\n\n<p>For example, if your <code>writeKey</code> is <code>1Xk5DChfJAol3xtW7qNnK1apo5p</code>, then your HTTP request must have the following HTTP header:</p>\n<p><code>Authorization: Basic MVhrNURDaGZKQW9sM3h0VzdxTm5LMWFwbzVwOg==</code></p>\n<p>You can refer to this sample <a href=\"https://www.blitter.se/utils/basic-authentication-header-generator/\"><strong>Basic Auth header generator</strong></a> to verify your header.</p>\n<h2 id=\"http-responses\">HTTP Responses</h2>\n<p>RudderStack returns a <code>200</code> response for successful API requests. It returns a <code>400</code> response for invalid requests along with an appropriate error message in the response.</p>\n<p>Some responses to the invalid requests include:</p>\n<ul>\n<li>Request size too large (refer to the <strong>Maximum Allowed Request Size</strong> section below for more information)</li>\n<li>Invalid JSON</li>\n<li>Missing Authorization Header</li>\n<li>Invalid Authorization Header</li>\n</ul>\n<h2 id=\"request-size\">Request Size</h2>\n<p>RudderStack allows a maximum of 32KB message size per call, while the <code>batch</code> API request allows a maximum call size of 4MB. If these limits are exceeded, RudderStack responds with a <code>400 Bad Request</code> response.</p>\n<h2 id=\"event-ordering\">Event ordering</h2>\n<p>To maintain event ordering while using the HTTP API, make sure to include <code>anonymousId</code> as a header in every request.</p>\n<img src=\"https://content.pstmn.io/ee59d00c-f838-4451-9882-537a2e7623d3/aW1hZ2UucG5n\" alt height=\"532\" width=\"981\" />\n\n<h2 id=\"historical-imports\">Historical imports</h2>\n<p>RudderStack lets you import any historical data by adding the <code>timestamp</code> argument to any of your API calls. However, this can be done only for the destinations that accept historical timestamped data, like Amplitude, Mixpanel, etc.</p>\n<blockquote>\n<p>If you are tracking current events, leave out the timestamp field. RudderStack automatically adds the timestamps to the event requests.</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{source_write_key}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e86eb016-3d7f-4cd5-b89b-8abe1eee7f4d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"83cd1ee3-2df2-44e4-97e1-9fbf5f6e7f7c","type":"text/javascript","exec":[""]}}],"_postman_id":"ef04bfe0-57e0-4138-88e7-782594888189"},{"name":"Access Tokens","item":[],"id":"2386c39c-8faf-4db2-ad00-3d0917cc2d04","description":"<p>To consume all the public RudderStack APIs, you will need access to them. This guide details the steps required to generate an access token and the operations associated with it.</p>\n<blockquote>\n<p>Read more about RudderStack's Transformations feature <a href=\"https://rudderstack.com/docs/transformations/#adding-a-transformation\">here</a>.</p>\n</blockquote>\n<hr />\n<h2 id=\"permissions\">Permissions</h2>\n<p>The <a href=\"https://app.rudderstack.com/\"><strong>RudderStack Cloud</strong></a> users who have the Read/Write or Admin privileges can create their own access tokens and use them.</p>\n<h2 id=\"operations-on-the-access-token\">Operations on the Access Token</h2>\n<p>To use all the public RudderStack APIs, you can create your own Access Token by following the steps below:</p>\n<ul>\n<li>Log into your <a href=\"https://app.rudderstack.com/\"><strong>RudderStack dashboard</strong></a>.</li>\n<li>Click on the <a href=\"https://app.rudderstack.com/profile\"><strong>profile</strong></a> tab in the left panel of the dashboard and choose the <a href=\"https://app.rudderstack.com/profile/tokens\"><strong>Personal Access Tokens</strong></a> option, as shown:</li>\n</ul>\n<p><img src=\"https://user-images.githubusercontent.com/59817155/132644830-6542369b-94ae-4af6-b3bb-c1432e64cd2c.png\" alt /></p>\n<ul>\n<li>Then, click on <strong>Generate new token</strong> option. Enter the token <strong>name</strong> in the popup and click on <strong>Generate</strong>, as shown:</li>\n</ul>\n<p><img src=\"https://user-images.githubusercontent.com/59817155/132644851-12db3095-6ea5-423f-aa0c-5890f8d0e62f.png\" alt /></p>\n<ul>\n<li>You will then be able to see and copy the access token, as shown:</li>\n</ul>\n<p><img src=\"https://user-images.githubusercontent.com/59817155/132644881-879f4b14-064b-4168-9e52-69707480926e.png\" alt /></p>\n<blockquote>\n<p>Make sure you copy the generated token. <strong>You won't be able to see it again</strong>.</p>\n</blockquote>\n<hr />\n<ul>\n<li>To delete an existing token, click on the corresponding <strong>Delete</strong> option next to that token, and confirm by clicking on the <strong>Yes, delete</strong> button.</li>\n<li>To delete all the existing tokens, click on the <strong>Revoke all</strong> button on the top right and confirm, as shown:</li>\n</ul>\n<p><img src=\"https://user-images.githubusercontent.com/59817155/132644930-ce2124ac-897c-44d5-b51e-8201e03c1a6c.png\" alt /></p>\n<h2 id=\"contact-us\">Contact Us</h2>\n<p>For any queries on generating or using the access tokens to consume the RudderStack APIs, you can start a conversation on our <a href=\"https://resources.rudderstack.com/join-rudderstack-slack\"><strong>Slack</strong></a> channel.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"06fa6470-ce02-483f-b322-e934a595f3f4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cb30fc1c-f560-4f16-8710-f0b5753dd8da","type":"text/javascript","exec":[""]}}],"_postman_id":"2386c39c-8faf-4db2-ad00-3d0917cc2d04"},{"name":"Transformations API","item":[{"name":"Transformations","item":[{"name":"Create a Transformation","id":"30b5b2e2-9868-4558-9280-41d6e1acaee5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Transformation JS 1\",\n    \"description\": \"Sample transformation\",\n    \"code\": \"export function transformEvent(event) { return event; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations","description":"<p>This request creates a transformation and gets its object as a response.</p>\n<p>The following table highlights the query parameters when making the API request.</p>\n<h2 id=\"query-parameters\">Query Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>publish</code></td>\n<td>Boolean</td>\n<td>Optional</td>\n<td>By default, this flag is set to <code>false</code>. If set to <code>true</code>, it publishes your transformation to the latest version and the code is made live for the incoming traffic.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"body-parameters\">Body Parameters</h2>\n<p>The following table highlights the different body parameters when making the API request.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>events</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>You can pass an array of JSON events to be tested for your code.</td>\n</tr>\n<tr>\n<td><code>destinationIds</code></td>\n<td>Array</td>\n<td>Optional</td>\n<td>You can pass an array of <code>destinationIds</code> that you wish to connect with this transformation. You can connect only if <code>publish</code> is set to <code>true</code>.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Name of the transformation that you wish to create.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Required</td>\n<td>The transformation code goes here.</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>String</td>\n<td>Required</td>\n<td>code language type. Allowed values: <code>javascript</code> and <code>pythonfaas</code> (internal way to represent python)</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>The description of the transformation goes here.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"creating-a-transformation\">Creating a Transformation</h2>\n<p>You can create a transformation in one of the following ways:</p>\n<ul>\n<li><code>publish: true</code> - In this case, RudderStack maintains two copies of the transformation. Among these, one is published and the other is used for revisions. You can connect the published transformation to a destination and its code is made live for incoming traffic.</li>\n<li><code>publish: false</code> - In this case, RudderStack only creates revisions for the transformation. This means that you cannot connect any destinations to the transformation and it cannot be used for any incoming event traffic.</li>\n</ul>\n<blockquote>\n<p><strong>Note</strong>: If you wish to publish some revisions of transformations you can do so using the <strong>Publish API</strong> (refer below).</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"a023b4b6-0e76-43f9-9e34-1054be96810f","name":"Create a Transformation JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Transformation JS 1\",\n    \"description\": \"Sample transformation\",\n    \"code\": \"export function transformEvent(event) { return event; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"330"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:21:09 GMT"},{"key":"X-Request-ID","value":"0119bb00-b927-11ed-bfdc-55489e7f5ed2"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"CEpwEfhWIQoJ5yRtnqzMZUcF34LNseYpcASoLfc2u-ChAWXaVnsBQg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAbR9sEGn10OdSIncjKL4V2rj\",\n    \"versionId\": \"2MTAbQf6NND97jCcEl3OQlaqzki\",\n    \"name\": \"Transformation JS 1\",\n    \"description\": \"Sample transformation\",\n    \"code\": \"export function transformEvent(event) { return event; }\",\n    \"codeVersion\": \"1\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:21:09.262Z\",\n    \"updatedAt\": \"2023-03-02T18:21:09.262Z\"\n}"},{"id":"ac686c9e-49f4-494a-bbc3-8617b8d7e12d","name":"Create a Transformation PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Transformation PY 1\",\n    \"description\": \"Sample transformation\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"329"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:22:01 GMT"},{"key":"X-Request-ID","value":"1ff079b0-b927-11ed-a413-bf43f78e1538"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"bL2zhousTTzBkoqYTLxRaS7jlMNFiDDOBd1hP96IUaoOhsAg3GUheg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAhqAs2Byur1OrhtGhlZ7h8W7\",\n    \"versionId\": \"2MTAhusKppNYQ4gXOC4eeqxl0ql\",\n    \"name\": \"Transformation PY 1\",\n    \"description\": \"Sample transformation\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n    \"codeVersion\": \"1\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:22:00.986Z\",\n    \"updatedAt\": \"2023-03-02T18:22:00.986Z\"\n}"}],"_postman_id":"30b5b2e2-9868-4558-9280-41d6e1acaee5"},{"name":"Create and Publish a Transformation","id":"c89ef350-f376-41b7-b6d0-baeff268e603","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Transformation PY 2\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations?publish=true","description":"<p>This request creates and publishes a transformation.</p>\n<p>You can create a transformation in one of the following ways:</p>\n<ul>\n<li><p><code>publish: true</code> - In this case, RudderStack maintains two copies of the transformer. Among these, one is published and the other is used for revisions. You can connect the published version to a destination and its code is made live for incoming traffic.</p>\n</li>\n<li><p><code>publish: false</code> - In this case, RudderStack only creates revisions for the transformation. This means that you cannot connect any destinations to the transformation and it cannot be used for any incoming event traffic.</p>\n</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations"],"host":["https://api.rudderstack.com"],"query":[{"key":"publish","value":"true"}],"variable":[]}},"response":[{"id":"93203e76-c202-4df9-aaf4-991364220151","name":"Create and Publish a Transformation PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Transformation PY 2\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/transformations?publish=true","host":["https://api.rudderstack.com"],"path":["transformations"],"query":[{"key":"publish","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"326"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:33:08 GMT"},{"key":"X-Request-ID","value":"aa2cb340-b928-11ed-b448-f3a9b5b5acdb"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"WTZOVz0UaM0csoygGXTiO6lBMqpw-SG0wUl0GfPbBb6p6xhCCLfmsA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n    \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n    \"name\": \"Transformation PY 2\",\n    \"description\": \"\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n    \"codeVersion\": \"1\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n    \"updatedAt\": \"2023-03-02T18:33:02.418Z\",\n    \"destinations\": []\n}"},{"id":"b2504b37-4cc0-4cdf-8088-fdf2b53c155c","name":"Create and Publish a Transformation JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Transformation JS 2\",\n    \"code\": \"export function transformEvent(event) { return event; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/transformations?publish=true","host":["https://api.rudderstack.com"],"path":["transformations"],"query":[{"key":"publish","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:23:30 GMT"},{"key":"X-Request-ID","value":"55572130-b927-11ed-a413-bf43f78e1538"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"T4Gqkxhx-szrRX5gwDnwXdIcwXfxcQwIoiH-ku_q5RUNZPJmhAVgag=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n    \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n    \"name\": \"Transformation JS 2\",\n    \"description\": \"\",\n    \"code\": \"export function transformEvent(event) { return event; }\",\n    \"codeVersion\": \"1\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n    \"updatedAt\": \"2023-03-02T18:23:30.580Z\",\n    \"destinations\": []\n}"}],"_postman_id":"c89ef350-f376-41b7-b6d0-baeff268e603"},{"name":"List All Transformations","id":"4eecdd72-0811-4f17-99e1-00b2339c9901","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations","description":"<p>This request gets all the <strong>published transformations</strong> for a particular workspace.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"607314d2-ca2d-4295-a0bd-c129ac573b82","name":"List All Transformations","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"348"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:33:58 GMT"},{"key":"X-Request-ID","value":"cbe9f010-b928-11ed-85e5-930703c0462f"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"GnJas4xr2B-mgKTi8UcmyzO-89mI7IHSRWZIDHe60KtunJE29SKhcQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"transformations\": [\n        {\n            \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n            \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n            \"name\": \"Transformation JS 2\",\n            \"description\": \"\",\n            \"code\": \"export function transformEvent(event) { return event; }\",\n            \"codeVersion\": \"1\",\n            \"language\": \"javascript\",\n            \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n            \"updatedAt\": \"2023-03-02T18:23:30.580Z\",\n            \"destinations\": []\n        },\n        {\n            \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n            \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n            \"name\": \"Transformation PY 2\",\n            \"description\": \"\",\n            \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n            \"codeVersion\": \"1\",\n            \"language\": \"pythonfaas\",\n            \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n            \"updatedAt\": \"2023-03-02T18:33:02.418Z\",\n            \"destinations\": []\n        }\n    ]\n}"}],"_postman_id":"4eecdd72-0811-4f17-99e1-00b2339c9901"},{"name":"Retrieve a Single Transformation","id":"ba1b7fe2-7758-4bba-9d2e-9a6c2ef5a95b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations/{{id}}","description":"<p>This request retrieves the published transformations from the specified transformation <code>id</code>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","{{id}}"],"host":["https://api.rudderstack.com"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"8ff89536-a5b1-469a-9b9a-2f6955ae19bb","name":"Retrieve a Single Transformation PY","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/transformations/2MTC32murTn98ouXpBvRY0H0kyF","host":["https://api.rudderstack.com"],"path":["transformations","2MTC32murTn98ouXpBvRY0H0kyF"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"326"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:35:35 GMT"},{"key":"X-Request-ID","value":"05b7c240-b929-11ed-a941-15e01836cb75"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"jAESBhSsqpAXPO3Ayww--im2dibsN8T5KCiDeRezdAjGLscwR4ODRQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n    \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n    \"name\": \"Transformation PY 2\",\n    \"description\": \"\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n    \"codeVersion\": \"1\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n    \"updatedAt\": \"2023-03-02T18:33:02.418Z\",\n    \"destinations\": []\n}"},{"id":"f0ec4392-64f4-46b0-b2cd-3a946cf9dfc9","name":"Retrieve a Single Transformation JS","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/transformations/2MTAtEZbKRQ527ecEXxT0Pw8O11","host":["https://api.rudderstack.com"],"path":["transformations","2MTAtEZbKRQ527ecEXxT0Pw8O11"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:24:17 GMT"},{"key":"X-Request-ID","value":"7127f2e0-b927-11ed-8792-85195f9b8279"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"Cwnd9hZeV8VBzZMMOEqbVt7eAGCfb7AH0Ub9zl06RkJVcdS7dYdi1A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n    \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n    \"name\": \"Transformation JS 2\",\n    \"description\": \"\",\n    \"code\": \"export function transformEvent(event) { return event; }\",\n    \"codeVersion\": \"1\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n    \"updatedAt\": \"2023-03-02T18:23:30.580Z\",\n    \"destinations\": []\n}"}],"_postman_id":"ba1b7fe2-7758-4bba-9d2e-9a6c2ef5a95b"},{"name":"Update a Transformation","id":"3f3339c2-6df3-4cf1-b978-08c822d9328f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated transformation JS 2\",\n    \"description\": \"Updated description\",\n    \"code\":\"export function transformEvent(event) { return event; }\\n\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/{{id}}","description":"<p>This request updates a transformation by creating a new revision. If the <code>publish</code> flag is set is <code>true</code>, the code becomes live for the event traffic. If the <code>publish</code> flag is <code>false</code> , it only creates a new revision for that transformation without publishing it.</p>\n<blockquote>\n<p>Note: Language cannot be updated i.e. javascript transformation cannot be converted to python or vice versa</p>\n</blockquote>\n<h2 id=\"query-parameters\">Query Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>publish</code></td>\n<td>Boolean</td>\n<td>Optional</td>\n<td>By default, this flag is set to <code>false</code>. If set to <code>true</code>, it publishes your transformation and the code is made live for the incoming traffic.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"body-parameters\">Body Parameters</h2>\n<p>The following table highlights the different body parameters when making this API request.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>events</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>You can pass an array of JSON events to test your code.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Update the code of your existing transformation.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Updated description of the transformation goes here.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","{{id}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"21dd84a2-0658-41eb-b025-92b130809ba2","name":"Update a Transformation JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated transformation JS 2\",\n    \"description\": \"Updated description\",\n    \"code\":\"export function transformEvent(event) { return event; }\\n\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/2MTAtEZbKRQ527ecEXxT0Pw8O11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"338"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:25:45 GMT"},{"key":"X-Request-ID","value":"a58c1e80-b927-11ed-8176-1b5590f03240"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"AqbfSBgzHDyX6RYPUMZuRil_XRJAc379SK-ScgvllV8D7Us6HigI6w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n    \"versionId\": \"2MTBAAFdGs29S080tsvyg8gbsUj\",\n    \"name\": \"Updated transformation JS 2\",\n    \"description\": \"Updated description\",\n    \"code\": \"export function transformEvent(event) { return event; }\\n\",\n    \"codeVersion\": \"1\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n    \"updatedAt\": \"2023-03-02T18:23:30.580Z\"\n}"},{"id":"961ed6fb-3e96-4078-aec0-a480400e83df","name":"Update a Transformation PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated transformation PY 2\",\n    \"description\": \"Updated description\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/2MTC32murTn98ouXpBvRY0H0kyF"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"337"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:36:24 GMT"},{"key":"X-Request-ID","value":"22697e10-b929-11ed-9cf4-5393a63a0b2b"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"aFLLBeqAb0vbK9-5TB5w-wZnKM8aqIy4Es8TSp83j_W1Y-POCWVJ1w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n    \"versionId\": \"2MTCSU4NIE3DEMIiUrdAZGjIbC3\",\n    \"name\": \"Updated transformation PY 2\",\n    \"description\": \"Updated description\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\",\n    \"codeVersion\": \"1\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n    \"updatedAt\": \"2023-03-02T18:33:02.418Z\"\n}"}],"_postman_id":"3f3339c2-6df3-4cf1-b978-08c822d9328f"},{"name":"Update and Publish a Transformation","id":"dd1f2d1b-f1b2-4878-babf-74be0d4c341e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated sample transformation PY 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/{{id}}?publish=true","description":"<p>This request updates a transformation by creating a new revision and publishes it so that the code is live for all the incoming event traffic.</p>\n<blockquote>\n<p>Note: Language cannot be updated i.e. javascript transformation cannot be converted to python or vice versa</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","{{id}}"],"host":["https://api.rudderstack.com"],"query":[{"key":"publish","value":"true"}],"variable":[]}},"response":[{"id":"698a7ce7-9c3d-419b-a4e0-7acec085a372","name":"Update and Publish a Transformation PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated sample transformation PY 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/transformations/2MTC32murTn98ouXpBvRY0H0kyF?publish=true","host":["https://api.rudderstack.com"],"path":["transformations","2MTC32murTn98ouXpBvRY0H0kyF"],"query":[{"key":"publish","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"376"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:37:20 GMT"},{"key":"X-Request-ID","value":"41478fc0-b929-11ed-bcb5-b72b6e9d1094"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"DkeR6hXfLJyp2Zygy3G572UxYJhiBiA48WTEG0C2oq2hevf7fNBvuQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n    \"versionId\": \"2MTCYpl6VQrSmjbjlgK1b3MKbgW\",\n    \"name\": \"Updated sample transformation PY 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\",\n    \"codeVersion\": \"1\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n    \"updatedAt\": \"2023-03-02T18:33:02.418Z\"\n}"},{"id":"a3261526-e0e1-42e0-98b2-76b37e07f7bb","name":"Update and Publish a Transformation JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated sample transformation JS 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\":\"export function transformEvent(event) { return event; }\\n\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/transformations/2MTAtEZbKRQ527ecEXxT0Pw8O11?publish=true","host":["https://api.rudderstack.com"],"path":["transformations","2MTAtEZbKRQ527ecEXxT0Pw8O11"],"query":[{"key":"publish","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"377"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:26:34 GMT"},{"key":"X-Request-ID","value":"c32a0f10-b927-11ed-8792-85195f9b8279"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"FfzozmxKcPfqSOR6DfgQPlwBKKGcwrS-nd6JWwqWezDIj7nE7Og_9Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n    \"versionId\": \"2MTBGMpxfbqBTzINFG6AyNvNVO5\",\n    \"name\": \"Updated sample transformation JS 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\": \"export function transformEvent(event) { return event; }\\n\",\n    \"codeVersion\": \"1\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n    \"updatedAt\": \"2023-03-02T18:23:30.580Z\"\n}"}],"_postman_id":"dd1f2d1b-f1b2-4878-babf-74be0d4c341e"},{"name":"Delete a Transformation","id":"599d1672-4529-46c0-bfe2-96f65860db57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/transformations/{{transformation_id}}","description":"<p>This request deletes a transformation associated with the specified ID.</p>\n<blockquote>\n<p>Note that RudderStack does not delete a transformation revision.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","{{transformation_id}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"59b72c78-e37b-4d9a-9eaa-75f5194ab740","name":"Delete a Transformation JS","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/transformations/2MTAtEZbKRQ527ecEXxT0Pw8O11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:30:05 GMT"},{"key":"X-Request-ID","value":"40740890-b928-11ed-a413-bf43f78e1538"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"ryc6xGDhiO7qYzwh0A6inGc1n8uo55trYvKeSrcj_CqhOx84S6F62Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"65c229f8-41b1-482f-978c-a33ddd81acab","name":"Delete a Transformation PY","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/transformations/2MTC32murTn98ouXpBvRY0H0kyF"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:37:48 GMT"},{"key":"X-Request-ID","value":"54c57da0-b929-11ed-9f5e-613b82a03aee"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"0vgcrV2-c8-G2qQhQRIC-3VLs7gM4m84jvx4fdvlUkHmhKj6jGyFyw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"599d1672-4529-46c0-bfe2-96f65860db57"},{"name":"Get All Transformation Revisions","id":"9cdf6060-c72a-46bb-9cea-ed1717283c38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations/{{id}}/versions","description":"<p>This request gets all your transformation revisions by passing an ID.</p>\n<h4 id=\"query-parameters\">Query Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>count</code></td>\n<td>Number</td>\n<td>Optional</td>\n<td>Gets the number of objects in your array. By default, it always returns the first 5 objects.</td>\n</tr>\n<tr>\n<td><code>orderBy</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>You can get all the versions in the ascending order if you pass <code>ASC</code> as the value, or in the descending order if <code>DESC</code> is passed.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","{{id}}","versions"],"host":["https://api.rudderstack.com"],"query":[{"disabled":true,"description":{"content":"<p>Gets the number of objects in your array. By default, it always returns the first 5 objects.</p>\n","type":"text/plain"},"key":"count","value":""},{"disabled":true,"description":{"content":"<p>You can get all the versions in the ascending order if you pass ASC as the value, or in the descending order if DESC is passed.</p>\n","type":"text/plain"},"key":"orderBy","value":""}],"variable":[]}},"response":[{"id":"2af7a297-c30e-4a72-9766-fbda4e198dd4","name":"Get All Transformation Revisions JS","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/transformations/2MTAtEZbKRQ527ecEXxT0Pw8O11/versions","host":["https://api.rudderstack.com"],"path":["transformations","2MTAtEZbKRQ527ecEXxT0Pw8O11","versions"],"query":[{"key":"count","value":"","description":"Gets the number of objects in your array. By default, it always returns the first 5 objects.","type":"text","disabled":true},{"key":"orderBy","value":"","description":"You can get all the versions in the ascending order if you pass ASC as the value, or in the descending order if DESC is passed.","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1394"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:27:45 GMT"},{"key":"X-Request-ID","value":"ed867af0-b927-11ed-b969-99f58e664909"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"bpsnpCfdfDSwVrsy_7pqu4v28a_taUN-ewxDg4w4AwUMrjpjaIkLIg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"TransformationVersions\": [\n        {\n            \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n            \"versionId\": \"2MTB8QvNmY75thJf61e9ktiZrRE\",\n            \"name\": \"Updated transformation JS 2\",\n            \"description\": \"Updated description\",\n            \"code\": \"export function transformEvent(event) { return event; }\\n\",\n            \"codeVersion\": \"1\",\n            \"language\": \"javascript\",\n            \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n            \"updatedAt\": \"2023-03-02T18:23:30.580Z\"\n        },\n        {\n            \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n            \"versionId\": \"2MTBGMpxfbqBTzINFG6AyNvNVO5\",\n            \"name\": \"Updated sample transformation JS 2\",\n            \"description\": \"Updated sample transformation ready to be published\",\n            \"code\": \"export function transformEvent(event) { return event; }\\n\",\n            \"codeVersion\": \"1\",\n            \"language\": \"javascript\",\n            \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n            \"updatedAt\": \"2023-03-02T18:23:30.580Z\"\n        },\n        {\n            \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n            \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n            \"name\": \"Transformation JS 2\",\n            \"description\": \"\",\n            \"code\": \"export function transformEvent(event) { return event; }\",\n            \"codeVersion\": \"1\",\n            \"language\": \"javascript\",\n            \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n            \"updatedAt\": \"2023-03-02T18:23:30.580Z\"\n        }\n    ]\n}"},{"id":"e116f143-571d-4588-ae68-aa60fa16446f","name":"Get All Transformation Revisions PY","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/transformations/2MTC32murTn98ouXpBvRY0H0kyF/versions","host":["https://api.rudderstack.com"],"path":["transformations","2MTC32murTn98ouXpBvRY0H0kyF","versions"],"query":[{"key":"count","value":"","description":"Gets the number of objects in your array. By default, it always returns the first 5 objects.","type":"text","disabled":true},{"key":"orderBy","value":"","description":"You can get all the versions in the ascending order if you pass ASC as the value, or in the descending order if DESC is passed.","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1052"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:38:06 GMT"},{"key":"X-Request-ID","value":"5f59ed00-b929-11ed-8da8-cf098d65127d"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"RxPtWnXoPGJZmS4SCNKGe9hce9E54nUZO2YAC5-AidJY0irAfG_b3Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"TransformationVersions\": [\n        {\n            \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n            \"versionId\": \"2MTCSU4NIE3DEMIiUrdAZGjIbC3\",\n            \"name\": \"Updated transformation PY 2\",\n            \"description\": \"Updated description\",\n            \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\",\n            \"codeVersion\": \"1\",\n            \"language\": \"pythonfaas\",\n            \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n            \"updatedAt\": \"2023-03-02T18:33:02.418Z\"\n        },\n        {\n            \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n            \"versionId\": \"2MTCYpl6VQrSmjbjlgK1b3MKbgW\",\n            \"name\": \"Updated sample transformation PY 2\",\n            \"description\": \"Updated sample transformation ready to be published\",\n            \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\",\n            \"codeVersion\": \"1\",\n            \"language\": \"pythonfaas\",\n            \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n            \"updatedAt\": \"2023-03-02T18:33:02.418Z\"\n        },\n        {\n            \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n            \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n            \"name\": \"Transformation PY 2\",\n            \"description\": \"\",\n            \"code\": \"def transformEvent(event, metadata):\\n    return event\",\n            \"codeVersion\": \"1\",\n            \"language\": \"pythonfaas\",\n            \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n            \"updatedAt\": \"2023-03-02T18:33:02.418Z\"\n        }\n    ]\n}"}],"_postman_id":"9cdf6060-c72a-46bb-9cea-ed1717283c38"},{"name":"Get a Single Transformation Revision","id":"27769938-d106-4fdb-aa38-c78bb4b778fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations/{{id}}/versions/{{version_id}}","description":"<p>This request fetches a single transformation revision.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","{{id}}","versions","{{version_id}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"3c3f9465-0df7-4ce3-b897-94954b972f06","name":"Get a Single Transformation Revision JS","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations/2MTAtEZbKRQ527ecEXxT0Pw8O11/versions/2MTBGMpxfbqBTzINFG6AyNvNVO5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"377"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:29:32 GMT"},{"key":"X-Request-ID","value":"2ccd5d00-b928-11ed-bcb5-b72b6e9d1094"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"WNxUgfdVnz43HhU_-M5uTNS7mGV7IBOCGNKYuIXQHSFmzKQFeweHqw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTAtEZbKRQ527ecEXxT0Pw8O11\",\n    \"versionId\": \"2MTBGMpxfbqBTzINFG6AyNvNVO5\",\n    \"name\": \"Updated sample transformation JS 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\": \"export function transformEvent(event) { return event; }\\n\",\n    \"codeVersion\": \"1\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:23:30.580Z\",\n    \"updatedAt\": \"2023-03-02T18:23:30.580Z\"\n}"},{"id":"eaf58165-1871-44fe-93cd-5a44e48b3e82","name":"Get a Single Transformation Revision PY","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/transformations/2MTC32murTn98ouXpBvRY0H0kyF/versions/2MTCYpl6VQrSmjbjlgK1b3MKbgW"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"376"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:38:39 GMT"},{"key":"X-Request-ID","value":"730af8d0-b929-11ed-8792-85195f9b8279"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"nDmAGbfACtyawpK2ZfYhtfFCHWG9b_YFGODLo_RbRdiI5R1d8sw_rw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTC32murTn98ouXpBvRY0H0kyF\",\n    \"versionId\": \"2MTCYpl6VQrSmjbjlgK1b3MKbgW\",\n    \"name\": \"Updated sample transformation PY 2\",\n    \"description\": \"Updated sample transformation ready to be published\",\n    \"code\": \"def transformEvent(event, metadata):\\n    return event\\n\",\n    \"codeVersion\": \"1\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:33:02.418Z\",\n    \"updatedAt\": \"2023-03-02T18:33:02.418Z\"\n}"}],"_postman_id":"27769938-d106-4fdb-aa38-c78bb4b778fa"}],"id":"e4483e73-202a-406b-8b24-b08c7fe38e33","description":"<p>RudderStack Transformations let you write custom JavaScript or python code that allows you transform your events into a destination-specific format.</p>\n<p>The following table explains the different fields in the transformer payload:</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>Requirement</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Sets the name of the transformer.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Gives a description of the transformer.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Refers to the user-defined code that maps the source events to the destinations as defined by the user.</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Refers to language in which code is written. Allowed values: <code>javascript</code> and <code>pythonfaas</code>(internal way to represent python)</td>\n</tr>\n<tr>\n<td><code>codeVersion</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>This is an integer data always set to version 1 for the API calls.</td>\n</tr>\n<tr>\n<td><code>createdAt</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>Refers to the timestamp of the transformer when it is created.</td>\n</tr>\n<tr>\n<td><code>updatedAt</code></td>\n<td>Date</td>\n<td>Optional</td>\n<td>Refers to the timestamp of the transformer when it is updated.</td>\n</tr>\n<tr>\n<td><code>versionId</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Maintains a version of the transformer every time it is updated.</td>\n</tr>\n<tr>\n<td><code>workspaceId</code></td>\n<td>Object</td>\n<td>Optional</td>\n<td>The workspace ID on which the transformation is created.</td>\n</tr>\n<tr>\n<td><code>destinations</code></td>\n<td>Array</td>\n<td>Optional</td>\n<td>List of all the destination IDs to which your transformation is connected.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"e4483e73-202a-406b-8b24-b08c7fe38e33","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}}},{"name":"Libraries","item":[{"name":"Create a library","id":"f90890b9-de36-41ba-ac21-86bc3772a7b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Transformation Library JS 1\",\n    \"description\": \"Some library description\",\n    \"code\": \"export default function cube(x) { return x * x * x; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/libraries","description":"<p>This request creates a transformation library and gets the corresponding JSON object as a response.</p>\n<h4 id=\"body-parameters\">Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Name of the transformation library that you wish to create.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Code of transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>The description of the transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Language type of code goes here. Allowed values: <code>javascript</code> and <code>pythonfaas</code> (internal way to represent python)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"277a910c-adb8-493c-a1f5-12964d81eda4","name":"Create a library PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Transformation Library PY 1\",\n    \"description\": \"Some library description\",\n    \"code\": \"def cube(x):\\n  return x * x * x\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/libraries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"340"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:51:12 GMT"},{"key":"X-Request-ID","value":"33f6d4a0-b92b-11ed-8da8-cf098d65127d"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8832671c1cdfc12eb3e37bd40e58b232.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"R70xscKdpx-zMH02zdUKCgkL0ST6FY4cVyNLrKiSJqzjtsQQoOuetQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTEG2QvYmKmlGydNoBSEnrDPd9\",\n    \"versionId\": \"2MTEFzRSqvzz9S5T4tvXAdbIpGj\",\n    \"name\": \"Transformation Library PY 1\",\n    \"description\": \"Some library description\",\n    \"code\": \"def cube(x):\\n  return x * x * x\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:51:12.536Z\",\n    \"updatedAt\": \"2023-03-02T18:51:12.536Z\",\n    \"importName\": \"transformationLibraryPy1\"\n}"},{"id":"3df4c0d2-1ef8-4d77-bafd-530bf8ca9d9c","name":"Create a library JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Transformation Library JS 1\",\n    \"description\": \"Some library description\",\n    \"code\": \"export default function cube(x) { return x * x * x; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/libraries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"361"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:42:06 GMT"},{"key":"X-Request-ID","value":"ee7adb20-b929-11ed-a413-bf43f78e1538"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"y9dC32qJ_caSe4VWAd2l_Gh0oi5dj_mnIitVE5YuN0SihbI-LfZfsQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTD9TwCoKdDQKGWcCdCwT2Xr3R\",\n    \"versionId\": \"2MTD9PPr4b2or0Lbj4M75uI7afc\",\n    \"name\": \"Transformation Library JS 1\",\n    \"description\": \"Some library description\",\n    \"code\": \"export default function cube(x) { return x * x * x; }\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:42:06.456Z\",\n    \"updatedAt\": \"2023-03-02T18:42:06.456Z\",\n    \"importName\": \"transformationLibraryJs1\"\n}"}],"_postman_id":"f90890b9-de36-41ba-ac21-86bc3772a7b2"},{"name":"Create and Publish a Library","id":"4b9f2a74-bd83-4be7-ac54-c8f4260982a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Library description\",\n    \"code\": \"def cube(x):\\n  return x * x * x\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/libraries?publish=true","description":"<p>This request creates and publishes a transformation library.</p>\n<h4 id=\"query-parameters\">Query Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>publish</code></td>\n<td>Boolean</td>\n<td>Optional</td>\n<td>By default, this flag is set to <code>false</code>. If set to <code>true</code>, this option is used to publish your transformation library to its latest version.</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note</strong>: The <code>publish</code> flag for a transformation library works the same way as a transformation.</p>\n</blockquote>\n<hr />\n<h4 id=\"body-parameters\">Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Name of the transformation library that you wish to create.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Code of transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>The description of the transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Language type of code goes here. Allowed values: <code>javascript</code> and <code>pythonfaas</code> (internal way to represent python)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries"],"host":["https://api.rudderstack.com"],"query":[{"key":"publish","value":"true"}],"variable":[]}},"response":[{"id":"9ace6c7d-d7db-4d38-b171-dba4314b4f08","name":"Create and Publish a Library JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Sample Transformation Library JS 2\",\n    \"description\": \"Library description\",\n    \"code\": \"export default function cube(x) { return x * x * x; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/libraries?publish=true","host":["https://api.rudderstack.com"],"path":["libraries"],"query":[{"key":"publish","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"369"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:42:53 GMT"},{"key":"X-Request-ID","value":"0ab3bd70-b92a-11ed-89cb-1766e1e43b8d"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"fGw2LDNm5faHR8JnlK7GcjlMlOiwoYQv9tpRs65fMfA3XYdTY3i7-g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n    \"versionId\": \"2MTDFIMteCUnEvFUIawsSosGo40\",\n    \"name\": \"Sample Transformation Library JS 2\",\n    \"description\": \"Library description\",\n    \"code\": \"export default function cube(x) { return x * x * x; }\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n    \"updatedAt\": \"2023-03-02T18:42:53.821Z\",\n    \"importName\": \"sampleTransformationLibraryJs2\"\n}"},{"id":"f0b0746f-20c6-4c8c-8ee2-6aee8410bd8d","name":"Create and Publish a Library PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Library description\",\n    \"code\": \"def cube(x):\\n  return x * x * x\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/libraries?publish=true","host":["https://api.rudderstack.com"],"path":["libraries"],"query":[{"key":"publish","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"348"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:52:25 GMT"},{"key":"X-Request-ID","value":"5f1ef4f0-b92b-11ed-bfdc-55489e7f5ed2"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8832671c1cdfc12eb3e37bd40e58b232.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"_P3Fz3_mPnkdftHoLwDUt7ZOQSQ-ql1ojNcIiGAviGEmcaHYz4hMng=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n    \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\",\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Library description\",\n    \"code\": \"def cube(x):\\n  return x * x * x\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n    \"updatedAt\": \"2023-03-02T18:52:24.948Z\",\n    \"importName\": \"sampleTransformationLibraryPy2\"\n}"}],"_postman_id":"4b9f2a74-bd83-4be7-ac54-c8f4260982a2"},{"name":"List All Libraries","id":"0efc980d-eb94-4d5c-b144-3eda32dd14d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/libraries","description":"<p>This request fetches all the published transformation libraries.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"6588a1db-beaf-4f24-971b-dbe6ad69afac","name":"List All Libraries","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/libraries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"729"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:53:15 GMT"},{"key":"X-Request-ID","value":"7d3c27a0-b92b-11ed-ac71-f73adacb1951"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8832671c1cdfc12eb3e37bd40e58b232.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"vMfwlRcEXRSsGVH53_baSMrU8ofCyoNOuMeLpwB-VGQInh5kwHdgGQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"libraries\": [\n        {\n            \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n            \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\",\n            \"name\": \"Sample Transformation Library JS 2\",\n            \"description\": \"Updated library description\",\n            \"code\": \"export default function cube(x) { return x * x * x; }\",\n            \"language\": \"javascript\",\n            \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n            \"updatedAt\": \"2023-03-02T18:45:47.510Z\",\n            \"importName\": \"sampleTransformationLibraryJs2\"\n        },\n        {\n            \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n            \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\",\n            \"name\": \"Sample Transformation Library py 2\",\n            \"description\": \"Library description\",\n            \"code\": \"def cube(x):\\n  return x * x * x\",\n            \"language\": \"pythonfaas\",\n            \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n            \"updatedAt\": \"2023-03-02T18:52:24.948Z\",\n            \"importName\": \"sampleTransformationLibraryPy2\"\n        }\n    ]\n}"}],"_postman_id":"0efc980d-eb94-4d5c-b144-3eda32dd14d1"},{"name":"Retrieve a Single Library","id":"504f325b-feab-407b-bca2-41daba586328","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/libraries/:id","description":"<p>Retrieves a single published transformation library based on the specified <code>id</code>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries",":id"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"id":"805c98c9-3ada-497f-aa35-2ad031dfe56f","type":"any","value":"{{library_id}}","key":"id"}]}},"response":[{"id":"5bb1ee3d-edce-4994-8c01-aeafd167e240","name":"Retrieve a Single Library PY","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"variable":[{"key":"id","value":"2MTEP4IhlKLXYtnbOqAOx1kKcBd"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"348"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:53:34 GMT"},{"key":"X-Request-ID","value":"889127e0-b92b-11ed-bd85-1709e3e5a404"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8832671c1cdfc12eb3e37bd40e58b232.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"CkK88zXxly5EfaqC-UhguT1GtzSv3NOErzRxN92b6SGb3UpR63nE3g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n    \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\",\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Library description\",\n    \"code\": \"def cube(x):\\n  return x * x * x\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n    \"updatedAt\": \"2023-03-02T18:52:24.948Z\",\n    \"importName\": \"sampleTransformationLibraryPy2\"\n}"},{"id":"7e066fa1-694b-4eff-a492-c92b161b79fb","name":"Retrieve a Single Library JS","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"variable":[{"key":"id","value":"2MTDFOdoL9qQxFFnhl6oB23oAQ2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"369"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:43:54 GMT"},{"key":"X-Request-ID","value":"2edbb8b0-b92a-11ed-a941-15e01836cb75"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"2Z6qnJRIyf8ppBMjzxuTe8WnKM7sSfUvF_3Rr2yPYGgvi5qk5WNW7A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n    \"versionId\": \"2MTDFIMteCUnEvFUIawsSosGo40\",\n    \"name\": \"Sample Transformation Library JS 2\",\n    \"description\": \"Library description\",\n    \"code\": \"export default function cube(x) { return x * x * x; }\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n    \"updatedAt\": \"2023-03-02T18:42:53.821Z\",\n    \"importName\": \"sampleTransformationLibraryJs2\"\n}"}],"_postman_id":"504f325b-feab-407b-bca2-41daba586328"},{"name":"Update a Library","id":"ddc5a092-786f-4b2b-ac05-2fac5dea9f1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Updated library code from cube function to a sum function\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/libraries/:id","description":"<p>This request lets you update the code and description of the transformation library by specifying its <code>id</code>.</p>\n<blockquote>\n<p><strong>Note</strong>: You <strong>cannot</strong> change the name of the transformation library using this request.</p>\n<p><strong>Note</strong>: <strong>Language</strong> cannot be updated i.e. <strong>javascript</strong> library cannot be converted to <strong>python</strong> or vice versa</p>\n</blockquote>\n<hr />\n<h4 id=\"body-parameters\">Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>The updated description of the transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Required</td>\n<td>The updated code the transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Type of code language</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries",":id"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"id":"e7574fc2-67db-43a3-a7c4-d27354038258","type":"any","value":"{{library_id}}","key":"id"}]}},"response":[{"id":"12f93517-4376-4a92-8d17-8036271cbaab","name":"Update a Library PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Updated library code from cube function to a sum function\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/libraries/:id","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"variable":[{"key":"id","value":"2MTEP4IhlKLXYtnbOqAOx1kKcBd"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"384"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:06:01 GMT"},{"key":"X-Request-ID","value":"459c2000-b92d-11ed-a941-15e01836cb75"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2a5d041359fc84cf7352cd9cc8543898.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"IxkO-cpjaUrpQ_rWSvUyGIjMPXfgLxWGu1M4P_U1Cs09KP5YlmbD8g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n    \"versionId\": \"2MTG3koSsphcIwlzyv8SKthFRPW\",\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Updated library code from cube function to a sum function\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n    \"updatedAt\": \"2023-03-02T18:52:24.948Z\",\n    \"importName\": \"sampleTransformationLibraryPy2\"\n}"},{"id":"f8811399-675d-4027-b4f9-0d2300532a8a","name":"Update a Library JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Updated library code from cube function to a sum function\",\n    \"code\": \"export function sum(a, b) { return a + b; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/libraries/:id","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"variable":[{"key":"id","value":"2MTDFOdoL9qQxFFnhl6oB23oAQ2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"394"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:44:58 GMT"},{"key":"X-Request-ID","value":"554ae4d0-b92a-11ed-85e5-930703c0462f"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"KnM3DZ0Clm_b83fLaMFJe23lbddLMOiAymp_KsJ09tcK8yCJyJX1IA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n    \"versionId\": \"2MTDV59GAPI4H8SDUt9Y2PNOf0j\",\n    \"name\": \"Sample Transformation Library JS 2\",\n    \"description\": \"Updated library code from cube function to a sum function\",\n    \"code\": \"export function sum(a, b) { return a + b; }\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n    \"updatedAt\": \"2023-03-02T18:42:53.821Z\",\n    \"importName\": \"sampleTransformationLibraryJs2\"\n}"}],"_postman_id":"ddc5a092-786f-4b2b-ac05-2fac5dea9f1a"},{"name":"Update and Publish a Library","id":"c264acf0-8e2b-4868-b70e-73ad80008a9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Updated library description\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/libraries/:id?publish=true","description":"<p>This request lets you update the code and description of the transformation library by specifying its <code>id</code> and gives you the option of publishing this library.</p>\n<blockquote>\n<p><strong>Note</strong>: Updating the library with the <code>publish</code> option has the same flow as that of the transformations.  </p>\n<p><strong>Note</strong>: <strong>Language</strong> cannot be updated i.e. <strong>javascript</strong> library cannot be converted to <strong>python</strong> or vice versa</p>\n</blockquote>\n<h4 id=\"query-parameters\">Query Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>publish</code></td>\n<td>Boolean</td>\n<td>Optional</td>\n<td>By default, this flag is set to <code>false</code>. If set to <code>true</code>, this option is used to publish your transformation library to its latest version.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"body-parameters\">Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>The updated description of the transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>The updated code of the transformation library goes here.</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>String</td>\n<td>Required</td>\n<td>Type of code language goes here</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries",":id"],"host":["https://api.rudderstack.com"],"query":[{"key":"publish","value":"true"}],"variable":[{"id":"1c51329b-6415-49c4-864e-e36a98059607","type":"any","value":"{{library_id}}","key":"id"}]}},"response":[{"id":"753577ee-a284-4485-837e-b8cda4ce5bff","name":"Update and Publish a Library PY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Updated library description\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/libraries/:id?publish=true","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"query":[{"key":"publish","value":"true"}],"variable":[{"key":"id","value":"2MTEP4IhlKLXYtnbOqAOx1kKcBd"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:07:18 GMT"},{"key":"X-Request-ID","value":"73949e60-b92d-11ed-9cf4-5393a63a0b2b"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2a5d041359fc84cf7352cd9cc8543898.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"3wMUPbMQ5MfmNuH5UjL24C3eFBW6Ty4QZRwzZpxXwz3gq5JLgatp1Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n    \"versionId\": \"2MTGDV2T2k32dwFvqQdMUEhRbN1\",\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Updated library description\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\",\n    \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n    \"updatedAt\": \"2023-03-02T18:52:24.948Z\",\n    \"importName\": \"sampleTransformationLibraryPy2\"\n}"},{"id":"d7fc3e3c-d091-4f62-b0bd-2643901cba5d","name":"Update and Publish a Library JS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Updated library description\",\n    \"code\": \"export function sum(a, b) { return a + b; }\",\n    \"language\": \"javascript\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/libraries/:id?publish=true","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"query":[{"key":"publish","value":"true"}],"variable":[{"key":"id","value":"2MTDFOdoL9qQxFFnhl6oB23oAQ2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"364"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:45:47 GMT"},{"key":"X-Request-ID","value":"72322f90-b92a-11ed-9f5e-613b82a03aee"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"YeuvDy-Y6QP9Yx-PqDyZPNMPK5S_WJ9e88dHc9eXq3zh1l2HKWYwww=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n    \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\",\n    \"name\": \"Sample Transformation Library JS 2\",\n    \"description\": \"Updated library description\",\n    \"code\": \"export function sum(a, b) { return a + b; }\",\n    \"language\": \"javascript\",\n    \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n    \"updatedAt\": \"2023-03-02T18:42:53.821Z\",\n    \"importName\": \"sampleTransformationLibraryJs2\"\n}"}],"_postman_id":"c264acf0-8e2b-4868-b70e-73ad80008a9d"},{"name":"Delete a Library","id":"68b19f63-7b35-4dfc-a426-3dc410f41220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/libraries/:id","description":"<p>This request lets you delete the library given id</p>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries",":id"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"id":"e7574fc2-67db-43a3-a7c4-d27354038258","type":"any","value":"{{library_id}}","key":"id"}]}},"response":[{"id":"97b72a59-fde9-4e49-b9f8-0cf7625b834c","name":"Delete a Library","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id","host":["https://api.rudderstack.com"],"path":["libraries",":id"],"variable":[{"key":"id","value":"2MTEP4IhlKLXYtnbOqAOx1kKcBd"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:18:43 GMT"},{"key":"X-Request-ID","value":"0bf60f30-b92f-11ed-b969-99f58e664909"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 299f92ec898acef774d2b3d60b36137e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"VXf39qYnLW5BfYOdZH7yr84WSI6VnAmJGEIb6DzbjJ7U6unqFm3AwA=="}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"68b19f63-7b35-4dfc-a426-3dc410f41220"},{"name":"List All Library Revisions","id":"944b2cff-4370-4284-8d29-07dc99a3c814","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/libraries/:id/versions","description":"<p>This request retrieves all the library revisions for the specified library <code>id</code>.</p>\n<h4 id=\"query-parameters\">Query Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>count</code></td>\n<td>Number</td>\n<td>Optional</td>\n<td>If you want a specific number of library versions for the specified library ID, pass this parameter. By default, the request always returns the first 5 versions.</td>\n</tr>\n<tr>\n<td><code>orderBy</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>To get the library versions in the ascending or descending order, pass this key. By default, the request always returns the ascending order of versions by considering the time of creation of the library version.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries",":id","versions"],"host":["https://api.rudderstack.com"],"query":[{"disabled":true,"description":{"content":"<p>(Optional) If you want a specific number of versions for the library ID, pass this key. By default, this request always returns the first 5 objects.</p>\n","type":"text/plain"},"key":"count","value":"5"},{"disabled":true,"description":{"content":"<p>(Optional) To get the library versions in the ascending or descending order, pass this key. By default, the request always returns the ascending order of versions by considering the time of creation of the library version.</p>\n","type":"text/plain"},"key":"orderBy","value":"ASC/DESC"}],"variable":[{"id":"fff9bbcc-b296-4d9d-a741-37fd53ec683c","type":"any","value":"{{library_id}}","key":"id"}]}},"response":[{"id":"8305c843-e2fe-4043-b85b-5c7ba99011c9","name":"List All Library Revisions PY","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id/versions","host":["https://api.rudderstack.com"],"path":["libraries",":id","versions"],"query":[{"key":"count","value":"5","description":"(Optional) If you want a specific number of versions for the library ID, pass this key. By default, this request always returns the first 5 objects.","type":"text","disabled":true},{"key":"orderBy","value":"ASC/DESC","description":"(Optional) To get the library versions in the ascending or descending order, pass this key. By default, the request always returns the ascending order of versions by considering the time of creation of the library version.","type":"text","disabled":true}],"variable":[{"key":"id","value":"2MTEP4IhlKLXYtnbOqAOx1kKcBd"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1104"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:07:45 GMT"},{"key":"X-Request-ID","value":"83ab9380-b92d-11ed-b448-f3a9b5b5acdb"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2a5d041359fc84cf7352cd9cc8543898.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"5hR7MSLZowQ8l-9chIAQKrG6ghLzXXuqbY--fAtaHHjCt2oJD07Cmg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"libraries\": [\n        {\n            \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n            \"versionId\": \"2MTG3koSsphcIwlzyv8SKthFRPW\",\n            \"name\": \"Sample Transformation Library py 2\",\n            \"description\": \"Updated library code from cube function to a sum function\",\n            \"code\": \"def sum(a, b):\\n  return a + b\",\n            \"language\": \"pythonfaas\",\n            \"handleName\": \"sampleTransformationLibraryPy2\",\n            \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n            \"updatedAt\": \"2023-03-02T18:52:24.948Z\"\n        },\n        {\n            \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n            \"versionId\": \"2MTGDV2T2k32dwFvqQdMUEhRbN1\",\n            \"name\": \"Sample Transformation Library py 2\",\n            \"description\": \"Updated library description\",\n            \"code\": \"def sum(a, b):\\n  return a + b\",\n            \"language\": \"pythonfaas\",\n            \"handleName\": \"sampleTransformationLibraryPy2\",\n            \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n            \"updatedAt\": \"2023-03-02T18:52:24.948Z\"\n        },\n        {\n            \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n            \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\",\n            \"name\": \"Sample Transformation Library py 2\",\n            \"description\": \"Library description\",\n            \"code\": \"def cube(x):\\n  return x * x * x\",\n            \"language\": \"pythonfaas\",\n            \"handleName\": \"sampleTransformationLibraryPy2\",\n            \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n            \"updatedAt\": \"2023-03-02T18:52:24.948Z\"\n        }\n    ]\n}"},{"id":"e420d627-5b43-45e7-9445-771d728f568c","name":"List All Library Revisions JS","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id/versions","host":["https://api.rudderstack.com"],"path":["libraries",":id","versions"],"query":[{"key":"count","value":"5","description":"(Optional) If you want a specific number of versions for the library ID, pass this key. By default, this request always returns the first 5 objects.","type":"text","disabled":true},{"key":"orderBy","value":"ASC/DESC","description":"(Optional) To get the library versions in the ascending or descending order, pass this key. By default, the request always returns the ascending order of versions by considering the time of creation of the library version.","type":"text","disabled":true}],"variable":[{"key":"id","value":"2MTDFOdoL9qQxFFnhl6oB23oAQ2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1145"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:46:38 GMT"},{"key":"X-Request-ID","value":"9066e1e0-b92a-11ed-89cb-1766e1e43b8d"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"1nEnRkL1gbh475gNShj0Jq_sIwvRTHykdJXEEz1FEtZJyVk_2PyApw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"libraries\": [\n        {\n            \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n            \"versionId\": \"2MTDV59GAPI4H8SDUt9Y2PNOf0j\",\n            \"name\": \"Sample Transformation Library JS 2\",\n            \"description\": \"Updated library code from cube function to a sum function\",\n            \"code\": \"export function sum(a, b) { return a + b; }\",\n            \"language\": \"javascript\",\n            \"handleName\": \"sampleTransformationLibraryJs2\",\n            \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n            \"updatedAt\": \"2023-03-02T18:42:53.821Z\"\n        },\n        {\n            \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n            \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\",\n            \"name\": \"Sample Transformation Library JS 2\",\n            \"description\": \"Updated library description\",\n            \"code\": \"export function sum(a, b) { return a + b; }\",\n            \"language\": \"javascript\",\n            \"handleName\": \"sampleTransformationLibraryJs2\",\n            \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n            \"updatedAt\": \"2023-03-02T18:42:53.821Z\"\n        },\n        {\n            \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n            \"versionId\": \"2MTDFIMteCUnEvFUIawsSosGo40\",\n            \"name\": \"Sample Transformation Library JS 2\",\n            \"description\": \"Library description\",\n            \"code\": \"export default function cube(x) { return x * x * x; }\",\n            \"language\": \"javascript\",\n            \"handleName\": \"sampleTransformationLibraryJs2\",\n            \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n            \"updatedAt\": \"2023-03-02T18:42:53.821Z\"\n        }\n    ]\n}"}],"_postman_id":"944b2cff-4370-4284-8d29-07dc99a3c814"},{"name":"Retrieve a Single Library Revision","id":"e0de7569-f163-4806-b62b-ad6c61218226","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/libraries/:id/versions/:versionId","description":"<p>This request retrieves a single library revision by specifying the library's <code>versionId</code>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["libraries",":id","versions",":versionId"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"id":"89129224-1b39-425b-92ea-aa720d647edb","type":"any","value":"{{library_id}}","key":"id"},{"id":"68c17ac9-2ec8-429f-9b3d-c88ae8557d8b","type":"any","value":"{{library_version_id}}","key":"versionId"}]}},"response":[{"id":"75ebaa02-2fc0-4b2e-8ebc-8f8382e8b445","name":"Retrieve a Single Library Revision PY","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id/versions/:versionId","host":["https://api.rudderstack.com"],"path":["libraries",":id","versions",":versionId"],"variable":[{"key":"id","value":"2MTEP4IhlKLXYtnbOqAOx1kKcBd"},{"key":"versionId","value":"2MTGDV2T2k32dwFvqQdMUEhRbN1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:08:30 GMT"},{"key":"X-Request-ID","value":"9eace030-b92d-11ed-a546-0b9af3709f57"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2a5d041359fc84cf7352cd9cc8543898.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"8tebdUPdxYnE40vCwj7CG_NaygUBma5j-BOTRn9-UqyTuapjuQ-KpQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTEP4IhlKLXYtnbOqAOx1kKcBd\",\n    \"versionId\": \"2MTGDV2T2k32dwFvqQdMUEhRbN1\",\n    \"name\": \"Sample Transformation Library py 2\",\n    \"description\": \"Updated library description\",\n    \"code\": \"def sum(a, b):\\n  return a + b\",\n    \"language\": \"pythonfaas\",\n    \"handleName\": \"sampleTransformationLibraryPy2\",\n    \"createdAt\": \"2023-03-02T18:52:24.948Z\",\n    \"updatedAt\": \"2023-03-02T18:52:24.948Z\"\n}"},{"id":"c94e7458-75d4-4013-ba38-df1689904a70","name":"Retrieve a Single Library Revision JS","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/libraries/:id/versions/:versionId","host":["https://api.rudderstack.com"],"path":["libraries",":id","versions",":versionId"],"variable":[{"key":"id","value":"2MTDFOdoL9qQxFFnhl6oB23oAQ2"},{"key":"versionId","value":"2MTDbAFBqzB7Wg8mWyWNBIk5DOU"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"364"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 18:47:04 GMT"},{"key":"X-Request-ID","value":"a033fcc0-b92a-11ed-a546-0b9af3709f57"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e4ca8fdcd98418fbcfa506572da16d4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"2P3kO2GIJK59Y6uKofyyO3cLLnBfHF5Zlew3YiFj-QhAY-giwdd_Kw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2MTDFOdoL9qQxFFnhl6oB23oAQ2\",\n    \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\",\n    \"name\": \"Sample Transformation Library JS 2\",\n    \"description\": \"Updated library description\",\n    \"code\": \"export function sum(a, b) { return a + b; }\",\n    \"language\": \"javascript\",\n    \"handleName\": \"sampleTransformationLibraryJs2\",\n    \"createdAt\": \"2023-03-02T18:42:53.821Z\",\n    \"updatedAt\": \"2023-03-02T18:42:53.821Z\"\n}"}],"_postman_id":"e0de7569-f163-4806-b62b-ad6c61218226"}],"id":"8be6459c-9ab6-48c1-8402-20b49b4bf513","description":"<p>RudderStack’s transformation libraries feature lets you reuse the same code in multiple transformations</p>\n","_postman_id":"8be6459c-9ab6-48c1-8402-20b49b4bf513","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}}},{"name":"Test & Publish API","item":[{"name":"Test a Transformation / Library","id":"1dcd2397-39a0-4596-be7b-8d904d2e8356","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"transformations\": [\n        {\n            \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        },\n        {\n            \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        }\n    ],\n    \"libraries\": [\n        {\n            \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\"\n        },\n        {\n            \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/libraries/test","description":"<p>This request tests any transformation or library revisions.</p>\n<h4 id=\"body-parameters\">Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>versionId</code></td>\n<td>String</td>\n<td>Required</td>\n<td>The transformation <code>versionId</code> to be published.</td>\n</tr>\n<tr>\n<td><code>testInput</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Array of JSON objects in a string format.</td>\n</tr>\n<tr>\n<td><code>transformations</code></td>\n<td>Array</td>\n<td>Optional</td>\n<td>An array of objects with the property as <code>versionId</code> and <code>testInput</code>.</td>\n</tr>\n<tr>\n<td><code>libraries</code></td>\n<td>Array</td>\n<td>Optional</td>\n<td>An array of objects with the property as the library <code>versionId</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"note\">Note</h4>\n<p>This API lets you test your transformation and library revisions.</p>\n<blockquote>\n<p><strong>Output response shows successful and failed results</strong></p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","libraries","test"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"0449c9b1-82a2-49bb-9e4e-85db1e9947e6","name":"Test a Transformation / Library","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"transformations\": [\n        {\n            \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        },\n        {\n            \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        }\n    ],\n    \"libraries\": [\n        {\n            \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\"\n        },\n        {\n            \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/libraries/test"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:31:14 GMT"},{"key":"X-Request-ID","value":"c854e8d0-b930-11ed-9f5e-613b82a03aee"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 299f92ec898acef774d2b3d60b36137e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"1_awEV03D0UlmH4OD3_TW23Hp2UqPE4Y1fS3DvT8Qai8v3HQvVHYAg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"successTestResults\": [\n            {\n                \"transformerVersionID\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n                \"result\": {\n                    \"success\": true,\n                    \"output\": {\n                        \"transformedEvents\": [\n                            {\n                                \"anonymousId\": \"8d872292709c6fbe\",\n                                \"channel\": \"mobile\",\n                                \"messageId\": \"m1\"\n                            },\n                            {\n                                \"anonymousId\": \"8d872292709c6fbe\",\n                                \"channel\": \"mobile\",\n                                \"messageId\": \"m2\"\n                            }\n                        ],\n                        \"logs\": []\n                    }\n                }\n            },\n            {\n                \"transformerVersionID\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n                \"result\": {\n                    \"success\": true,\n                    \"output\": {\n                        \"transformedEvents\": [\n                            {\n                                \"anonymousId\": \"8d872292709c6fbe\",\n                                \"messageId\": \"m1\"\n                            },\n                            {\n                                \"anonymousId\": \"8d872292709c6fbe\",\n                                \"messageId\": \"m2\"\n                            }\n                        ],\n                        \"logs\": []\n                    }\n                }\n            }\n        ],\n        \"failedTestResults\": []\n    }\n}"}],"_postman_id":"1dcd2397-39a0-4596-be7b-8d904d2e8356"},{"name":"Publish a Transformation / Library","id":"6b3c16e9-4513-438d-b3f0-035fa46c4c3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"transformations\": [\n        {\n            \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        },\n        {\n            \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        }\n    ],\n    \"libraries\": [\n        {\n            \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\"\n        },\n        {\n            \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/libraries/publish","description":"<p>This request publishes any transformation or library revisions.</p>\n<h4 id=\"body-parameters\">Body Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>versionId</code></td>\n<td>String</td>\n<td>Required</td>\n<td>The transformation <code>versionId</code> to be published.</td>\n</tr>\n<tr>\n<td><code>testInput</code></td>\n<td>String</td>\n<td>Optional</td>\n<td>Array of JSON objects in a string format.</td>\n</tr>\n<tr>\n<td><code>transformations</code></td>\n<td>Array</td>\n<td>Optional</td>\n<td>An array of objects with the property as <code>versionId</code> and <code>testInput</code>.</td>\n</tr>\n<tr>\n<td><code>libraries</code></td>\n<td>Array</td>\n<td>Optional</td>\n<td>An array of objects with the property as the library <code>versionId</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"note\">Note</h4>\n<p>This API lets you publish your transformation and library revisions. However, also note the following:</p>\n<ul>\n<li>You can choose to publish a transformation revision without the libraries.</li>\n<li>You can also choose to publish some library revisions without publishing the transformations.</li>\n</ul>\n<blockquote>\n<p><strong>Note</strong>: Whenever you call the <code>publish</code> API, we run tests in our server to ensure you don't save any transformation/library code that can lead to any exceptions. \n<strong>In case your publish action fails, verify if the transformation code and the libraries it is referring to are correct.</strong></p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}},"urlObject":{"path":["transformations","libraries","publish"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"8c27c3e0-59fd-4ec4-889a-8064bd94726f","name":"Publish a Transformation / Library","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"transformations\": [\n        {\n            \"versionId\": \"2MTC30bbSUANEeLb7TeknDbBeFy\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"channel\": \"mobile\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        },\n        {\n            \"versionId\": \"2MTAtB7m8oR7zLyBJS0QWkuUY93\",\n            \"testInput\": [\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m1\"\n                },\n                {\n                    \"anonymousId\": \"8d872292709c6fbe\",\n                    \"messageId\": \"m2\"\n                }\n            ]\n        }\n    ],\n    \"libraries\": [\n        {\n            \"versionId\": \"2MTDbAFBqzB7Wg8mWyWNBIk5DOU\"\n        },\n        {\n            \"versionId\": \"2MTEP94GdpHFzfwxzqENf5L0WjI\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/transformations/libraries/publish"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"18"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 02 Mar 2023 19:33:12 GMT"},{"key":"X-Request-ID","value":"0f8fc5d0-b931-11ed-85e5-930703c0462f"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2KDKycoVHAOLttVvzBiqw12O3Hr"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 299f92ec898acef774d2b3d60b36137e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD57-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"r8_wSH4FzkPnCEPSK0dSdHxzrWgXphpxJnKXO7eRhG6auBTonLHjRQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"published\": true\n}"}],"_postman_id":"6b3c16e9-4513-438d-b3f0-035fa46c4c3e"}],"id":"0ab28e10-43ca-4d2c-81f6-dd8903398d5f","description":"<p>As an end-user, you can create a transformation/library and perform several edits on it. <strong>Note that  publishing is optional when you create a transformation or a library</strong>.</p>\n<p>Suppose you perform several edits or revisions on a transformation. RudderStack always takes the latest update as the published version, creates a copy of the older versions, and saves them as revisions. Now suppose that you've created 7 to 8 such revisions of your transformation and now want to use the second revision for transforming your event traffic. You can do this by leveraging RudderStack's <strong>Publish API</strong>.</p>\n<h4 id=\"publish-payload\">Publish Payload</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Presence</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>transformations</code></td>\n<td>Array</td>\n<td>Optional (if <code>libraries</code> is present)</td>\n<td>You can pass an array of multiple transformation <code>versionId</code> that you want to publish.</td>\n</tr>\n<tr>\n<td><code>libraries</code></td>\n<td>Array</td>\n<td>Optional (if <code>transformations</code> is present)</td>\n<td>You can pass an array of multiple library <code>versionId</code> that you want to publish.</td>\n</tr>\n<tr>\n<td><br /></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note</strong>: Any one of <code>transformations</code> or <code>libraries</code> must be present in the payload to make a successful <code>publish</code> call.</p>\n</blockquote>\n<hr />\n","event":[{"listen":"prerequest","script":{"id":"b6662905-44b0-4938-81cc-29e52b089403","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"40d9c24d-2ffb-43f6-9cbb-33e27566d548","type":"text/javascript","exec":[""]}}],"_postman_id":"0ab28e10-43ca-4d2c-81f6-dd8903398d5f","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","name":"Transformations API","type":"folder"}}}],"id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9","description":"<p><strong>Transformations</strong> is one of RudderStack's key features. It allows you to leverage custom JavaScript or python functions to transform your source event payload into a destination-specific format.</p>\n<p>RudderStack Transformations can be used across your Event Stream, Warehouse Actions, and Cloud Extract pipelines, allowing you to implement a variety of use-cases, like:</p>\n<ul>\n<li>Filtering or sampling events.</li>\n<li>Enriching events by implementing static logic or leveraging an external API.</li>\n<li>Cleaning data by removing unnecessary bits.</li>\n<li>Masking or removing sensitive PII information in the events to ensure data privacy.</li>\n<li>Aggregating / rolling-up data at a micro-batch level.</li>\n<li>Implementing external actions on the events by means of an API.</li>\n</ul>\n<blockquote>\n<p>Our <a href=\"https://github.com/rudderlabs/sample-user-transformers\"><strong>Sample User Transformations</strong></a> GitHub repository contains some useful templates that you can use to create your own user transformations.</p>\n</blockquote>\n<hr />\n<p>For more information on this feature and how to use it, visit our <a href=\"https://rudderstack.com/docs/transformations/#adding-a-transformation\"><strong>docs</strong></a>.</p>\n<h2 id=\"what-is-the-transformations-api\">What is the Transformations API?</h2>\n<p>RudderStack's Transformations API allows you to create, read, update and delete transformations and libraries programmatically.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>The Transformations API is authenticated via Basic Authentication.</p>\n<p>You can authenticate your account by including your email address as the username and the secret access token in the password field under the <strong>Authorization</strong> tab.</p>\n<p>Any API requests made without the authentication will fail.</p>\n<blockquote>\n<p><strong>Important</strong>: It is mandatory to generate your access token before you make any API calls. To generate the access token, refer to the <strong>Access Token</strong> section.</p>\n</blockquote>\n<hr />\n<p>You can also pass your access token in the authorization header directly, as shown:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Basic {Base64Encoded(:)}\n\n</code></pre><p>For example, if your email address is <code>username@domain.com</code> and the generated access token is <code>1pHxUIA3jmxS2ip01zY696F80j7</code>, then the header will be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Basic {Base64Encoded(username@domain.com:1pHxUIA3jmxS2ip01zY696F80j7)}\n\n</code></pre><blockquote>\n<p><strong>Important</strong>: To make success API requests, all the endpoints covered in this guide must include this header.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"1b131e5e-7eac-4535-b3b8-d71d3c0cce47","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4b36a5cf-3f8a-4209-b14c-ffb770c869ba","type":"text/javascript","exec":[""]}}],"_postman_id":"b16caf6e-4e69-4ba9-b862-a54dc99657c9"},{"name":"Tracking Plan API","item":[{"name":"Tracking Plans","item":[{"name":"Create Tracking Plan","id":"7eec6c80-64e8-444d-bbe4-bd63fb1d886a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"identify\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"traits\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"age\": {\n                                \"type\": \"integer\"\n                            },\n                            \"anonymousId\": {\n                                \"type\": \"string\"\n                            },\n                            \"userId\": {\n                                \"type\": \"string\"\n                            },\n                            \"firstName\": {\n                                \"type\": \"string\"\n                            },\n                            \"lastName\": {\n                                \"type\": \"string\"\n                            },\n                            \"phone\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    }\n                }\n            },\n            \"group\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"traits\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"name\": {\n                                \"type\": \"string\"\n                            },\n                            \"industry\": {\n                                \"type\": \"string\"\n                            },\n                            \"plan\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    }\n                }\n            },\n            \"page\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"title\": {\n                                \"type\": \"string\"\n                            },\n                            \"url\": {\n                                \"type\": \"string\"\n                            }\n                        },\n                        \"additionalProperties\": true\n                    }\n                }\n            },\n            \"screen\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"section\": {\n                                \"type\": [\n                                    \"string\",\n                                    \"null\"\n                                ]\n                            },\n                            \"resolution\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"width\": {\n                                        \"type\": \"integer\"\n                                    },\n                                    \"height\": {\n                                        \"type\": \"integer\"\n                                    }\n                                },\n                                \"additionalProperties\": false\n                            }\n                        },\n                        \"additionalProperties\": true\n                    }\n                }\n            },\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"amount\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\",\n                                    \"amount\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans?overwriteEvents=true","description":"<p>Creates a tracking plan with the provided schema rules for <code>track</code> and non-track ( <code>identify</code>, <code>group</code>, <code>page</code> and <code>screen</code>) events.</p>\n<blockquote>\n<p>You can create an empty tracking plan with no rules. </p>\n</blockquote>\n<hr />\n<h2 id=\"query-parameters\">Query Parameters:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>overwriteEvents</code></strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong><code>overwriteEvents=false</code></strong></td>\n<td>While creating a tracking plan, if an already-existing track event in the workspace is present in request payload, RudderStack does not overwrite event and hence the request fails.  <br />  <br />By default, this is set to <code>false</code>.</td>\n</tr>\n<tr>\n<td><strong><code>overwriteEvents=true</code></strong></td>\n<td>If RudderStack encounters an already-existing track event in the workspace, it is updated. As a result, all the tracking plans connected to this event get updated.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example of</strong> <strong><code>overwriteEvents=true</code></strong></p>\n<p>Suppose a tracking plan <strong>P1</strong> is connected to a track event <strong>E1</strong>. A new tracking plan <strong>P2</strong> is then created with <strong>E1</strong> as the payload. As a result, <strong>E1</strong> gets updated and its connected plan namely <strong>P1</strong> will have latest code of <strong>E1</strong>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans"],"host":["https://api.rudderstack.com"],"query":[{"key":"overwriteEvents","value":"true"}],"variable":[]}},"response":[{"id":"ecffda01-d462-46b7-a308-ef4b3a9464b1","name":"Create Tracking Plan with overwriteEvents set to True","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 2\",\n        \"rules\": {\n            \"identify\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"traits\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"age\": {\n                                \"type\": \"integer\"\n                            },\n                            \"anonymousId\": {\n                                \"type\": \"string\"\n                            },\n                            \"userId\": {\n                                \"type\": \"string\"\n                            },\n                            \"firstName\": {\n                                \"type\": \"string\"\n                            },\n                            \"lastName\": {\n                                \"type\": \"string\"\n                            },\n                            \"phone\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    }\n                }\n            },\n            \"group\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"traits\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"name\": {\n                                \"type\": \"string\"\n                            },\n                            \"industry\": {\n                                \"type\": \"string\"\n                            },\n                            \"plan\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    }\n                }\n            },\n            \"page\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"title\": {\n                                \"type\": \"string\"\n                            },\n                            \"url\": {\n                                \"type\": \"string\"\n                            }\n                        },\n                        \"additionalProperties\": true\n                    }\n                }\n            },\n            \"screen\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"section\": {\n                                \"type\": [\n                                    \"string\",\n                                    \"null\"\n                                ]\n                            },\n                            \"resolution\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"width\": {\n                                        \"type\": \"integer\"\n                                    },\n                                    \"height\": {\n                                        \"type\": \"integer\"\n                                    }\n                                },\n                                \"additionalProperties\": false\n                            }\n                        },\n                        \"additionalProperties\": true\n                    }\n                }\n            },\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"amount\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\",\n                                    \"amount\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans?overwriteEvents=true","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans"],"query":[{"key":"overwriteEvents","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"12"},{"key":"Date","value":"Wed, 14 Jul 2021 07:56:04 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"tp_1vIOHzGFqqmqopsL0vX4Z7QoZuU\",\n    \"name\": \"workspaces/1tcUclryAlPoGR8ksIrH163EeHa/tracking-plans/tp_1vIOHzGFqqmqopsL0vX4Z7QoZuU\",\n    \"display_name\": \"Plan 2\",\n    \"version\": 1,\n    \"workspaceId\": \"1tcUclryAlPoGR8ksIrH163EeHa\"\n}"},{"id":"5265ec69-7e83-4fd1-9861-0f7d605a75c3","name":"Create Tracking Plan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"identify\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"traits\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"age\": {\n                                \"type\": \"integer\"\n                            },\n                            \"anonymousId\": {\n                                \"type\": \"string\"\n                            },\n                            \"userId\": {\n                                \"type\": \"string\"\n                            },\n                            \"firstName\": {\n                                \"type\": \"string\"\n                            },\n                            \"lastName\": {\n                                \"type\": \"string\"\n                            },\n                            \"phone\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    }\n                }\n            },\n            \"group\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"traits\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"name\": {\n                                \"type\": \"string\"\n                            },\n                            \"industry\": {\n                                \"type\": \"string\"\n                            },\n                            \"plan\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    }\n                }\n            },\n            \"page\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"title\": {\n                                \"type\": \"string\"\n                            },\n                            \"url\": {\n                                \"type\": \"string\"\n                            }\n                        },\n                        \"additionalProperties\": true\n                    }\n                }\n            },\n            \"screen\": {\n                \"type\": \"object\",\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"properties\": {\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"section\": {\n                                \"type\": [\n                                    \"string\",\n                                    \"null\"\n                                ]\n                            },\n                            \"resolution\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"width\": {\n                                        \"type\": \"integer\"\n                                    },\n                                    \"height\": {\n                                        \"type\": \"integer\"\n                                    }\n                                },\n                                \"additionalProperties\": false\n                            }\n                        },\n                        \"additionalProperties\": true\n                    }\n                }\n            },\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"amount\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\",\n                                    \"amount\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"111"},{"key":"Date","value":"Mon, 14 Jun 2021 16:13:13 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"tp_1twjlAMEknGfmJ32U7TlvUosdE9\",\n    \"name\": \"workspaces/1tcUclryAlPoGR8ksIrH163EeHa/tracking-plans/tp_1twjlAMEknGfmJ32U7TlvUosdE9\",\n    \"display_name\": \"Plan 1\",\n    \"version\": 1,\n    \"workspaceId\": \"1tcUclryAlPoGR8ksIrH163EeHa\"\n}"}],"_postman_id":"7eec6c80-64e8-444d-bbe4-bd63fb1d886a"},{"name":"Update Tracking Plan","id":"94c64d9b-7027-4fa2-b8aa-b6aa3bda4351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                },\n                {\n                    \"name\": \"Cart Viewed\",\n                    \"description\": \"What cart viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"amount\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"color\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\",\n                                    \"amount\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_1twjlAMEknGfmJ32U7TlvUosdE9?overwriteEvents=true","description":"<p>Updates the existing tracking plan with the provided schema rules for <code>track</code> and non-track ( <code>identify</code>, <code>group</code>, <code>page</code> and <code>screen</code>) events.</p>\n<p><strong>Note that this request supports only partial updates</strong>. For example, suppose events <strong>E1</strong> and <strong>E2</strong> are connected to the tracking plan P1. If you pass only <strong>E2</strong> in the payload to update <strong>E2</strong>, this does not mean that <strong>E1</strong> will lose its connection to the plan <strong>P1</strong>.</p>\n<blockquote>\n<p>This request <strong>does not support</strong> changing the name of the tracking plan. </p>\n</blockquote>\n<h2 id=\"query-parameters\">Query Parameters:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>overwriteEvents</code></strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong><code>overwriteEvents=false</code></strong></td>\n<td>While creating a tracking plan, if an already-existing track event in the workspace is present in request payload, RudderStack does not overwrite event and hence the request fails and you will get a response \"<strong>Event</strong> already exists. Duplicate event name not allowed.\"  <br />  <br />By default, this is set to <code>false</code>.</td>\n</tr>\n<tr>\n<td><strong><code>overwriteEvents=true</code></strong></td>\n<td>If RudderStack encounters an already-existing track event in the workspace, it is updated. As a result, all the tracking plans connected to this event get updated.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","tp_1twjlAMEknGfmJ32U7TlvUosdE9"],"host":["https://api.rudderstack.com"],"query":[{"key":"overwriteEvents","value":"true"}],"variable":[]}},"response":[{"id":"fc5e25a4-df48-4240-a305-f23590a06361","name":"Update Tracking Plan overwriteEvents set to true","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                },\n                {\n                    \"name\": \"Cart Viewed\",\n                    \"description\": \"What cart viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"amount\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"color\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\",\n                                    \"amount\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/{{base_path}}/trackingplans/tp_1twjlAMEknGfmJ32U7TlvUosdE9?overwriteEvents=true","host":["https://api.rudderstack.com"],"path":["{{base_path}}","trackingplans","tp_1twjlAMEknGfmJ32U7TlvUosdE9"],"query":[{"key":"overwriteEvents","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2289"},{"key":"Date","value":"Tue, 13 Jul 2021 13:41:26 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/1tcUclryAlPoGR8ksIrH163EeHa/tracking-plans/tp_1twjlAMEknGfmJ32U7TlvUosdE9\",\n    \"display_name\": \"Tracking plan 1624855263445\",\n    \"version\": 12,\n    \"rules\": {\n        \"events\": [\n            {\n                \"id\": \"ev_1vG8AR1KcZUVyrVyCjFLDaDTDau\",\n                \"name\": \"Order Viewed\",\n                \"description\": \"Whose order viewed\",\n                \"version\": \"3-0-0\",\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                },\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                }\n                            },\n                            \"required\": [\n                                \"product\",\n                                \"price\"\n                            ]\n                        },\n                        \"traits\": {}\n                    }\n                }\n            },\n            {\n                \"id\": \"ev_1vGLsaiMsswxwRhwOhYDkJzUkVN\",\n                \"name\": \"Cart Viewed\",\n                \"description\": \"What cart viewed\",\n                \"version\": \"1-0-0\",\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                },\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"amount\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"color\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                }\n                            },\n                            \"required\": [\n                                \"product\",\n                                \"price\",\n                                \"amount\"\n                            ]\n                        },\n                        \"traits\": {}\n                    }\n                }\n            }\n        ]\n    }\n}"},{"id":"4295d6a2-0727-4bba-9f14-624361c402fe","name":"Update Tracking Plan with overwriteEvents set to false","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                },\n                {\n                    \"name\": \"Cart Viewed\",\n                    \"description\": \"What cart viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"amount\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    },\n                                    \"color\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\",\n                                    \"amount\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/{{base_path}}/trackingplans/tp_1twjlAMEknGfmJ32U7TlvUosdE9?overwriteEvents=false","host":["https://api.rudderstack.com"],"path":["{{base_path}}","trackingplans","tp_1twjlAMEknGfmJ32U7TlvUosdE9"],"query":[{"key":"overwriteEvents","value":"false"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"Date","value":"Tue, 13 Jul 2021 13:33:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Order Viewed already exists. Duplicate event name not allowed\"\n}"}],"_postman_id":"94c64d9b-7027-4fa2-b8aa-b6aa3bda4351"},{"name":"Upsert Tracking Plan","id":"3b9f36e8-8c78-40fb-8841-04bb1006d79c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 2\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans?overwriteEvents=true","description":"<p>Creates or updates a tracking plan with the provided schema rules.</p>\n<blockquote>\n<p>Tracking plan <code>display_name</code> is a required field in the <strong>Body</strong> JSON. </p>\n</blockquote>\n<ul>\n<li>If a tracking plan by the given name already exists, this request updates the plan.</li>\n<li>If a tracking plan by the given name does not exist, this request creates a new plan.</li>\n</ul>\n<h2 id=\"query-parameters\">Query Parameters:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong><code>overwriteEvents</code></strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong><code>overwriteEvents=false</code></strong></td>\n<td>While creating a tracking plan, if an already-existing track event in the workspace is present in request payload, RudderStack does not overwrite event and hence the request fails.  <br />  <br />By default, <code>overwriteEvents</code> is set to <code>false</code>.</td>\n</tr>\n<tr>\n<td><strong><code>overwriteEvents=true</code></strong></td>\n<td>If RudderStack encounters an already-existing track event in the workspace, it is updated. As a result, all the tracking plans connected to this event get updated.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example of</strong> <strong><code>overwriteEvents=true</code></strong></p>\n<p>Suppose a tracking plan <strong>P1</strong> is connected to a track event <strong>E1</strong>. A new tracking plan <strong>P2</strong> is then created with <strong>E1</strong> as the payload. As a result, <strong>E1</strong> gets updated and its connected plan namely <strong>P1</strong> will have latest code of <strong>E1</strong>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans"],"host":["https://api.rudderstack.com"],"query":[{"key":"overwriteEvents","value":"true"}],"variable":[]}},"response":[{"id":"72442d51-9753-4a89-8f33-d865f08356c9","name":"Upsert Tracking Plan: overwrite set to false","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic dGVzdDE2MjQ4NTUyNjM0NDVAcnVkZGVybGFicy5jb206MXVZdkpQS1JwU3pESUp3b2NDanhLMDlaSWU4","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\",\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                },\n                {\n                    \"name\": \"Items Viewed\",\n                    \"description\": \"What items viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans?overwriteEvents=false","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans"],"query":[{"key":"overwriteEvents","value":"false"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"Date","value":"Wed, 14 Jul 2021 06:50:26 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Order Viewed already exists. Duplicate event name not allowed\"\n}"},{"id":"e026a8f4-0ede-4d6e-b276-707bfb70852d","name":"Upsert Tracking Plan","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 1\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\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\": [\n                                            \"string\",\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                },\n                {\n                    \"name\": \"Items Viewed\",\n                    \"description\": \"What items viewed\",\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\": [\n                                            \"string\"\n                                        ]\n                                    },\n                                    \"price\": {\n                                        \"type\": [\n                                            \"number\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\",\n                                    \"price\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans?overwriteEvents=true","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans"],"query":[{"key":"overwriteEvents","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2656"},{"key":"Date","value":"Wed, 14 Jul 2021 06:53:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/1uYvJRE0aXPpZBhc4jaEltNM2aO/tracking-plans/tp_1uYvJmOo8q4WhrJYNTZ8AteqUmY\",\n    \"display_name\": \"Plan 1\",\n    \"version\": 13,\n    \"rules\": {\n        \"events\": [\n            {\n                \"id\": \"ev_1vGLsaiMsswxwRhwOhYDkJzUkVN\",\n                \"name\": \"Cart Viewed\",\n                \"description\": \"What cart viewed\",\n                \"version\": \"1-0-0\",\n                \"rules\": {\n                    \"type\": \"object\",\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"properties\": {\n                        \"traits\": {},\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"required\": [\n                                \"product\",\n                                \"price\",\n                                \"amount\"\n                            ],\n                            \"properties\": {\n                                \"color\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                },\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"amount\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                }\n                            }\n                        }\n                    }\n                }\n            },\n            {\n                \"id\": \"ev_1vG8AR1KcZUVyrVyCjFLDaDTDau\",\n                \"name\": \"Order Viewed\",\n                \"description\": \"Whose order viewed\",\n                \"version\": \"5-0-0\",\n                \"rules\": {\n                    \"type\": \"object\",\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"properties\": {\n                        \"traits\": {},\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"required\": [\n                                \"product\",\n                                \"price\"\n                            ],\n                            \"properties\": {\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                }\n                            }\n                        }\n                    }\n                }\n            },\n            {\n                \"id\": \"ev_1vINRejosp7AuBnlq4qwoHSWNzZ\",\n                \"name\": \"Items Viewed\",\n                \"description\": \"What items viewed\",\n                \"version\": \"1-0-0\",\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                },\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                }\n                            },\n                            \"required\": [\n                                \"product\",\n                                \"price\"\n                            ]\n                        },\n                        \"traits\": {}\n                    }\n                }\n            }\n        ]\n    }\n}"},{"id":"9d4e4733-c747-44a5-a731-e2826c8d7179","name":"Upsert Tracking Plan: create tracking plan (given new name) overwriteEvents set to true","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_plan\": {\n        \"display_name\": \"Plan 2\",\n        \"rules\": {\n            \"events\": [\n                {\n                    \"name\": \"Order Viewed\",\n                    \"description\": \"Whose order viewed\",\n                    \"rules\": {\n                        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"context\": {},\n                            \"properties\": {\n                                \"type\": \"object\",\n                                \"properties\": {\n                                    \"product\": {\n                                        \"type\": [\n                                            \"string\"\n                                        ]\n                                    }\n                                },\n                                \"required\": [\n                                    \"product\"\n                                ]\n                            },\n                            \"traits\": {}\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans?overwriteEvents=true","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans"],"query":[{"key":"overwriteEvents","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1010"},{"key":"Date","value":"Wed, 14 Jul 2021 07:00:53 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/1tcUclryAlPoGR8ksIrH163EeHa/tracking-plans/tp_1vIOHzGFqqmqopsL0vX4Z7QoZuU\",\n    \"display_name\": \"Plan 2\",\n    \"version\": 1,\n    \"rules\": {\n        \"events\": [\n            {\n                \"id\": \"ev_1vG8AR1KcZUVyrVyCjFLDaDTDau\",\n                \"name\": \"Order Viewed\",\n                \"description\": \"Whose order viewed\",\n                \"version\": \"7-0-0\",\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                }\n                            },\n                            \"required\": [\n                                \"product\"\n                            ]\n                        },\n                        \"traits\": {}\n                    }\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"3b9f36e8-8c78-40fb-8841-04bb1006d79c"},{"name":"Get Tracking Plan by ID","id":"cac4b791-4fb9-4e0a-bad0-5036e43341dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_1twjlAMEknGfmJ32U7TlvUosdE9?version=1","description":"<p>Fetches the tracking plan by its ID, linked events, as well as the <code>track</code> and non-track ( <code>identify</code>, <code>group</code>, <code>page</code> and <code>screen</code>) schemas.</p>\n<blockquote>\n<p>You can also get the previous tracking plan versions with an optional query parameter <code>version</code> . </p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","tp_1twjlAMEknGfmJ32U7TlvUosdE9"],"host":["https://api.rudderstack.com"],"query":[{"key":"version","value":"1"}],"variable":[]}},"response":[{"id":"3f121583-907c-40ea-bb2c-f9d913d75870","name":"Get the Tracking Plan by ID","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_1twjlAMEknGfmJ32U7TlvUosdE9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1166"},{"key":"Date","value":"Mon, 14 Jun 2021 16:16:47 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"workspaces/1tcUclryAlPoGR8ksIrH163EeHa/tracking-plans/tp_1twjlAMEknGfmJ32U7TlvUosdE9\",\n    \"display_name\": \"Plan 1\",\n    \"version\": 1,\n    \"rules\": {\n        \"events\": [\n            {\n                \"id\": \"ev_1twjlAeyZLr0B0fFvHI7NIqKX32\",\n                \"name\": \"Order Viewed\",\n                \"description\": \"Whose order viewed\",\n                \"version\": \"1-0-0\",\n                \"rules\": {\n                    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"context\": {},\n                        \"properties\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"product\": {\n                                    \"type\": [\n                                        \"string\"\n                                    ]\n                                },\n                                \"price\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                },\n                                \"amount\": {\n                                    \"type\": [\n                                        \"number\"\n                                    ]\n                                }\n                            },\n                            \"required\": [\n                                \"product\",\n                                \"price\",\n                                \"amount\"\n                            ]\n                        },\n                        \"traits\": {}\n                    }\n                }\n            }\n        ]\n    },\n    \"create_time\": \"2021-06-14T16:13:13.648Z\",\n    \"update_time\": \"2021-06-14T16:13:13.648Z\"\n}"}],"_postman_id":"cac4b791-4fb9-4e0a-bad0-5036e43341dc"},{"name":"Get All Tracking Plans","id":"bb55d961-b127-43e6-bd9e-a00717ee9689","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans","description":"<p>Fetches all the tracking plans present in the authenticated user's workspace.</p>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"862d1deb-0376-47cc-a9b4-748acacd02c2","name":"Tracking Plan List","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1938"},{"key":"Date","value":"Mon, 14 Jun 2021 16:18:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"tracking_plans\": [\n        {\n            \"name\": \"workspaces/1tcUclryAlPoGR8ksIrH163EeHa/tracking-plans/tp_1twjlAMEknGfmJ32U7TlvUosdE9\",\n            \"display_name\": \"Plan 1\",\n            \"version\": 1,\n            \"rules\": {\n                \"events\": [\n                    {\n                        \"id\": \"ev_1twjlAeyZLr0B0fFvHI7NIqKX32\",\n                        \"name\": \"Order Viewed\",\n                        \"description\": \"Whose order viewed\",\n                        \"version\": \"1-0-0\",\n                        \"rules\": {\n                            \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"context\": {},\n                                \"properties\": {\n                                    \"type\": \"object\",\n                                    \"properties\": {\n                                        \"product\": {\n                                            \"type\": [\n                                                \"string\"\n                                            ]\n                                        },\n                                        \"price\": {\n                                            \"type\": [\n                                                \"number\"\n                                            ]\n                                        },\n                                        \"amount\": {\n                                            \"type\": [\n                                                \"number\"\n                                            ]\n                                        }\n                                    },\n                                    \"required\": [\n                                        \"product\",\n                                        \"price\",\n                                        \"amount\"\n                                    ]\n                                },\n                                \"traits\": {}\n                            }\n                        }\n                    }\n                ]\n            },\n            \"create_time\": \"2021-06-14T16:13:13.648Z\",\n            \"update_time\": \"2021-06-14T16:13:13.648Z\"\n        }\n    ]\n}"}],"_postman_id":"bb55d961-b127-43e6-bd9e-a00717ee9689"},{"name":"Delete Tracking Plan","id":"333557c9-6870-4b8f-9b12-3f7ab01ef356","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/{{tracking_plan_id}}","description":"<p>Deletes a tracking plan specified by the ID.</p>\n<blockquote>\n<p>Make sure the tracking plan is not linked to any source.</p>\n<p>If you try to delete a tracking plan that is connected to a source, you will get a <strong>403 Forbidden</strong> error.</p>\n</blockquote>\n<p>For more information on unlinking a tracking plan from a source, see <a href=\"https://documenter.getpostman.com/view/16242548/TzeWFT6D#1ac49332-3c6f-44ee-9041-3065900cf5f6\">Delete Tracking Plan-Source Connection</a>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","{{tracking_plan_id}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"1ac50acc-8c51-4b98-b270-e4e8fdf089e7","name":"Delete Tracking Plan","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/{{tracking_plan_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 06 Apr 2023 07:25:53 GMT"},{"key":"X-Request-ID","value":"43657900-d44c-11ed-b382-130d4942cd29"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2HE8UjUYZa31Hmg0CUMr1eQqSNC"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5b606f2bb4210a5fee31ecb5e5cc7612.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"WWw3Bpi7VspnO1wrrWD-dKJgQONSGQNDs5jTGSAdG6iuV00PM7Kjqw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"333557c9-6870-4b8f-9b12-3f7ab01ef356"}],"id":"2a5b999c-b417-4622-ad13-d212e4e211d1","description":"<p>Tracking Plan lets you proactively monitor and act on any non-compliant event data coming into your RudderStack sources based on predefined plans. This can help you prevent or de-risk situations where missing or improperly configured event data can break your downstream destinations.</p>\n<blockquote>\n<p>Tracking plans let you define specific event names and properties for your <code>track</code> calls, and properties for your non-track ( identify, group, page and screen) calls. </p>\n</blockquote>\n<p>For more information on the Tracking Plans feature, refer to the <a href=\"https://www.rudderstack.com/docs/data-governance/tracking-plans/\"><strong>Tracking Plans</strong></a> documentation.</p>\n","_postman_id":"2a5b999c-b417-4622-ad13-d212e4e211d1","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}}},{"name":"Tracking Plan Rules","item":[{"name":"Events","item":[{"name":"Create Events in the User Workspace","id":"f03a3fed-8016-4159-a12c-033097a908aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"name\": \"New Event 1\",\n        \"description\": \"New event\",\n        \"rules\": {\n            \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"product\": {\n                            \"type\": [\n                                \"string\"\n                            ]\n                        },\n                        \"price\": {\n                            \"type\": [\n                                \"number\"\n                            ]\n                        }\n                    },\n                    \"required\": [\n                        \"product\",\n                        \"price\"\n                    ]\n                },\n                \"traits\": {}\n            }\n        }\n    },\n    {\n        \"name\": \"New Event 2\",\n        \"description\": \"New event\",\n        \"rules\": {\n            \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"product\": {\n                            \"type\": [\n                                \"string\"\n                            ]\n                        },\n                        \"amount\": {\n                            \"type\": [\n                                \"number\"\n                            ]\n                        }\n                    },\n                    \"required\": [\n                        \"product\",\n                        \"amount\"\n                    ]\n                },\n                \"traits\": {}\n            }\n        }\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/events","description":"<p>Creates new events in the authenticated user's workspace.</p>\n<p>A few things to note:</p>\n<ul>\n<li>The event name should be unique per user workspace</li>\n<li>You cannot update the event name.</li>\n</ul>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","events"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"89af1700-4ea7-481b-95ee-ca6a6e212b26","name":"Create Events","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"name\": \"New Event 1\",\n        \"description\": \"New event\",\n        \"rules\": {\n            \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"product\": {\n                            \"type\": [\n                                \"string\"\n                            ]\n                        },\n                        \"price\": {\n                            \"type\": [\n                                \"number\"\n                            ]\n                        }\n                    },\n                    \"required\": [\n                        \"product\",\n                        \"price\"\n                    ]\n                },\n                \"traits\": {}\n            }\n        }\n    },\n    {\n        \"name\": \"New Event 2\",\n        \"description\": \"New event\",\n        \"rules\": {\n            \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n            \"type\": \"object\",\n            \"properties\": {\n                \"context\": {},\n                \"properties\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"product\": {\n                            \"type\": [\n                                \"string\"\n                            ]\n                        },\n                        \"amount\": {\n                            \"type\": [\n                                \"number\"\n                            ]\n                        }\n                    },\n                    \"required\": [\n                        \"product\",\n                        \"amount\"\n                    ]\n                },\n                \"traits\": {}\n            }\n        }\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 14 Jun 2021 16:31:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"f03a3fed-8016-4159-a12c-033097a908aa"},{"name":"Get Events","id":"3e82a876-ea4c-4f5d-ba82-1d6c08b88572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/events","description":"<p>Fetches all the events present in the authenticated user's workspace <strong>irrespective</strong> of whether they are linked to a tracking plan.</p>\n<blockquote>\n<p>Note that the event ID and version are autogenerated.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","events"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"7a3104f6-cce4-4465-a82f-5ca9cf576d20","name":"Get Events","originalRequest":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1133"},{"key":"Date","value":"Mon, 14 Jun 2021 16:32:16 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"events\": [\n        {\n            \"id\": \"ev_1twjlAeyZLr0B0fFvHI7NIqKX32\",\n            \"name\": \"Order Viewed\",\n            \"description\": \"Whose order viewed\",\n            \"version\": \"1-0-0\",\n            \"rules\": {\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"type\": \"object\",\n                \"properties\": {\n                    \"context\": {},\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"product\": {\n                                \"type\": [\n                                    \"string\"\n                                ]\n                            },\n                            \"price\": {\n                                \"type\": [\n                                    \"number\"\n                                ]\n                            },\n                            \"amount\": {\n                                \"type\": [\n                                    \"number\"\n                                ]\n                            }\n                        },\n                        \"required\": [\n                            \"product\",\n                            \"price\",\n                            \"amount\"\n                        ]\n                    },\n                    \"traits\": {}\n                }\n            }\n        },\n        {\n            \"id\": \"ev_1twlyewLH4dov4WRl5dAx4gPIRi\",\n            \"name\": \"New Event 1\",\n            \"description\": \"New event\",\n            \"version\": \"1-0-0\",\n            \"rules\": {\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"type\": \"object\",\n                \"properties\": {\n                    \"context\": {},\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"product\": {\n                                \"type\": [\n                                    \"string\"\n                                ]\n                            },\n                            \"price\": {\n                                \"type\": [\n                                    \"number\"\n                                ]\n                            }\n                        },\n                        \"required\": [\n                            \"product\",\n                            \"price\"\n                        ]\n                    },\n                    \"traits\": {}\n                }\n            }\n        },\n        {\n            \"id\": \"ev_1twlyaUTYvZJ6CqIuSr7axGlpnz\",\n            \"name\": \"New Event 2\",\n            \"description\": \"New event\",\n            \"version\": \"1-0-0\",\n            \"rules\": {\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"type\": \"object\",\n                \"properties\": {\n                    \"context\": {},\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"product\": {\n                                \"type\": [\n                                    \"string\"\n                                ]\n                            },\n                            \"amount\": {\n                                \"type\": [\n                                    \"number\"\n                                ]\n                            }\n                        },\n                        \"required\": [\n                            \"product\",\n                            \"amount\"\n                        ]\n                    },\n                    \"traits\": {}\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"3e82a876-ea4c-4f5d-ba82-1d6c08b88572"},{"name":"Update Event by ID","id":"5b5e69a2-751a-4081-832d-9739cd08a98c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Order Viewed - updated\",\n    \"rules\": {\n        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n        \"type\": \"object\",\n        \"properties\": {\n            \"context\": {},\n            \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"product\": {\n                        \"type\": [\n                            \"string\"\n                        ]\n                    }\n                },\n                \"required\": [\n                    \"product\"\n                ]\n            },\n            \"traits\": {}\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/events/:eventId","description":"<p>Updates the existing event and the corresponding tracking plans linked to that event.</p>\n<blockquote>\n<p>An update to the event description does not update the version of the linked tracking plans.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","events",":eventId"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"id":"746c09f9-4025-4ef1-991c-56e0f6ed63b2","type":"any","value":"ev_1twjlAeyZLr0B0fFvHI7NIqKX32","key":"eventId"}]}},"response":[{"id":"1befa831-3bc7-42fa-95a8-4c8b2fe0d043","name":"Update Event by ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"Order Viewed - updated\",\n    \"rules\": {\n        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n        \"type\": \"object\",\n        \"properties\": {\n            \"context\": {},\n            \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"product\": {\n                        \"type\": [\n                            \"string\"\n                        ]\n                    }\n                },\n                \"required\": [\n                    \"product\"\n                ]\n            },\n            \"traits\": {}\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/events/:eventId","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","events",":eventId"],"variable":[{"key":"eventId","value":"ev_1twjlAeyZLr0B0fFvHI7NIqKX32"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 14 Jun 2021 16:36:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"5b5e69a2-751a-4081-832d-9739cd08a98c"},{"name":"Link Events  to a Tracking Plan","id":"5c49234b-b898-44a6-8519-a4ca3a5f62e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\"ev_2O2o2VNAgjCotFU1YnnChPUp1xp\", \"ev_2O2o2YyRw24oa2ixcRBlJkH5cH6\"]","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/{{tracking_plan_id}}/events/link","description":"<p>Link the events to a given tracking plan.</p>\n<blockquote>\n<p>Note that the tracking plan ID is specified in the request and the event IDs are passed in the request body.</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","{{tracking_plan_id}}","events","link"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"94998336-311f-480d-8e35-a00ffc92f2cc","name":"Link Events","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\"ev_1twlyewLH4dov4WRl5dAx4gPIRi\", \"ev_1twlyaUTYvZJ6CqIuSr7axGlpnz\"]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans/:id/events/link","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans",":id","events","link"],"variable":[{"key":"id","value":"tp_1twjlAMEknGfmJ32U7TlvUosdE9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 14 Jun 2021 16:39:42 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"5c49234b-b898-44a6-8519-a4ca3a5f62e0"},{"name":"Unlink Events from a Tracking Plan","id":"666e398d-0087-4aa1-bb24-91baa2a03042","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\"ev_2O2o2YyRw24oa2ixcRBlJkH5cH6\"]","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/{{tracking_plan_id}}/events/unlink","description":"<p>Unlinks the events (specified by their IDs) from a given tracking plan.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","{{tracking_plan_id}}","events","unlink"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"827570cb-9aa0-43e0-9c6a-3d4370dd8e4b","name":"Unlink Events","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\"ev_1twjlAeyZLr0B0fFvHI7NIqKX32\"]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans/:id/events/unlink","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans",":id","events","unlink"],"variable":[{"key":"id","value":"tp_1twjlAMEknGfmJ32U7TlvUosdE9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Date","value":"Mon, 14 Jun 2021 16:41:27 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"666e398d-0087-4aa1-bb24-91baa2a03042"},{"name":"Get All Events Linked to a Tracking Plan (Including Deleted and Active Events)","event":[{"listen":"test","script":{"id":"bdc21f96-e9e8-4a81-a088-18290c23e271","exec":[""],"type":"text/javascript"}}],"id":"797574e5-fe13-4422-8242-2ce9d05ea69d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/:id/events/all","description":"<p>Fetches all the events linked to the given tracking plan, including both deleted and active events.</p>\n<blockquote>\n<p>The deleted events are referred to as unlinked events.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans",":id","events","all"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"id":"9dddb46e-e3f5-4951-b173-211c76d02c62","type":"any","value":"tp_1tWOb6feqfmawbmKuAAdGHtI6GN","key":"id"}]}},"response":[{"id":"4e31cffb-b6ab-4395-b2c6-0aa66e58c9a3","name":"All events","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/{{base_path}}/trackingplans/:id/events/all","host":["https://api.rudderstack.com"],"path":["{{base_path}}","trackingplans",":id","events","all"],"variable":[{"key":"id","value":"tp_1twjlAMEknGfmJ32U7TlvUosdE9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1179"},{"key":"Date","value":"Mon, 14 Jun 2021 16:42:31 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"tp_1twjlAMEknGfmJ32U7TlvUosdE9\",\n    \"name\": \"Plan 1\",\n    \"version\": 8,\n    \"events\": [\n        {\n            \"id\": \"ev_1twlyewLH4dov4WRl5dAx4gPIRi\",\n            \"name\": \"New Event 1\",\n            \"description\": \"New event\",\n            \"version\": \"1-0-0\",\n            \"deleted\": false,\n            \"rules\": {\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"type\": \"object\",\n                \"properties\": {\n                    \"context\": {},\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"product\": {\n                                \"type\": [\n                                    \"string\"\n                                ]\n                            },\n                            \"price\": {\n                                \"type\": [\n                                    \"number\"\n                                ]\n                            }\n                        },\n                        \"required\": [\n                            \"product\",\n                            \"price\"\n                        ]\n                    },\n                    \"traits\": {}\n                }\n            }\n        },\n        {\n            \"id\": \"ev_1twlyaUTYvZJ6CqIuSr7axGlpnz\",\n            \"name\": \"New Event 2\",\n            \"description\": \"New event\",\n            \"version\": \"1-0-0\",\n            \"deleted\": false,\n            \"rules\": {\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"type\": \"object\",\n                \"properties\": {\n                    \"context\": {},\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"product\": {\n                                \"type\": [\n                                    \"string\"\n                                ]\n                            },\n                            \"amount\": {\n                                \"type\": [\n                                    \"number\"\n                                ]\n                            }\n                        },\n                        \"required\": [\n                            \"product\",\n                            \"amount\"\n                        ]\n                    },\n                    \"traits\": {}\n                }\n            }\n        },\n        {\n            \"id\": \"ev_1twjlAeyZLr0B0fFvHI7NIqKX32\",\n            \"name\": \"Order Viewed\",\n            \"description\": \"Order Viewed - updated\",\n            \"version\": \"2-0-0\",\n            \"deleted\": true,\n            \"rules\": {\n                \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n                \"type\": \"object\",\n                \"properties\": {\n                    \"context\": {},\n                    \"properties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"product\": {\n                                \"type\": [\n                                    \"string\"\n                                ]\n                            }\n                        },\n                        \"required\": [\n                            \"product\"\n                        ]\n                    },\n                    \"traits\": {}\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"797574e5-fe13-4422-8242-2ce9d05ea69d"},{"name":"Delete Events","id":"9f309ec6-77fe-4b32-97fa-737d662cf2d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/events/{{event_id}}","description":"<p>Deletes an events specified by the ID from the user's workspace.</p>\n<blockquote>\n<p>Make sure you unlink the event from all the tracking plans to which it is linked. Otherwise you will get a <strong>403 Forbidden</strong> error.</p>\n</blockquote>\n<p>If you try to delete an event that is linked to a tracking plan, you will get the following message:</p>\n<p><strong>Event still connected to tracking plans: {tracking_plan_id}</strong></p>\n<p>This message lists all the tracking plans to which the event is currently linked. You can then <a href=\"https://documenter.getpostman.com/view/16242548/TzeWFT6D#666e398d-0087-4aa1-bb24-91baa2a03042\">unlink the events from those tracking plans</a>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","events","{{event_id}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"778fd13c-08cd-45ea-83a0-4685b7368b2f","name":"Delete Events","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/events/{{event_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 06 Apr 2023 07:53:22 GMT"},{"key":"X-Request-ID","value":"1a6ff350-d450-11ed-bf7c-bb0957f02c67"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2HE8UjUYZa31Hmg0CUMr1eQqSNC"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7e789934ab3bcbc8565056b7ff464c92.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"bSZIh553zZRzERa2e0NF45oow4edy6oBVuVDzgb5kx5cVYgK0wh93g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"b5d9355d-3c1c-40ae-bf83-1f090e32c2bd","name":"Event still linked to a Tracking Plan","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/events/{{event_id}}"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 06 Apr 2023 08:06:09 GMT"},{"key":"X-Request-ID","value":"e3cfa870-d451-11ed-a906-5599f0367df7"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 7e789934ab3bcbc8565056b7ff464c92.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"ct4UmldazM6yyAdV5GQg081Nb7FRSHQOKRGfZ9LmFLM_khC4yncv_w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"event still connected to tracking plans: tp_2O2oIhFCaY4v3HCaKmxzgwLAB18\"\n}"}],"_postman_id":"9f309ec6-77fe-4b32-97fa-737d662cf2d4"}],"id":"ca1ec9d6-672f-4d20-b3b5-e6d348c66828","_postman_id":"ca1ec9d6-672f-4d20-b3b5-e6d348c66828","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}}},{"name":"Non-Track Rules","item":[{"name":"Map Non-Track Rule to Tracking Plan","id":"d88d2dab-6039-495a-9a9d-f3c0f3ff64fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"object\",\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n    \"properties\": {\n            \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"title\": {\n                        \"type\": \"string\"\n                    },\n                    \"url\": {\n                        \"type\": \"string\"\n                    }\n                },\n                \"additionalProperties\": true\n            }\n        }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/{{ruleType}}","description":"<p>Create or updates a non-track rule of type <code>identify</code>, <code>group</code>, <code>page</code> or <code>screen</code> for a tracking plan.</p>\n<ul>\n<li>If the rule type schema doesn't exist, the rule schema is created and mapped to the Tracking Plan.</li>\n<li>If the rule type schema already exists, it is updated and its version is incremented.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","tp_2Q0GDOl12OXATIg4zOytv6t5ywl","rules","{{ruleType}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"5b8a7cd8-7eda-49ea-93eb-64eb93c7c5ae","name":"Map Identify to Tracking Plan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"object\",\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n    \"properties\": {\n        \"traits\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"age\": {\n                    \"type\": \"integer\"\n                },\n                \"anonymousId\": {\n                    \"type\": \"string\"\n                },\n                \"userId\": {\n                    \"type\": \"string\"\n                },\n                \"firstName\": {\n                    \"type\": \"string\"\n                },\n                \"lastName\": {\n                    \"type\": \"string\"\n                },\n                \"phone\": {\n                    \"type\": \"string\"\n                }\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/identify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"358"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:24:24 GMT"},{"key":"X-Request-ID","value":"9031ada0-f61e-11ed-835f-e5b62a292fd4"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 130ae13143b56514a254a12a887e42ea.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"vS6iBOcmQ1-cHkbKg5n3tW4scy72FLpmWHMUSRwZFaaEPSBwPUn_xw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2Q0Jex98ysoLERbKx94QvVjWHvp\",\n    \"version\": \"1-0-0\",\n    \"rules\": {\n        \"type\": \"object\",\n        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n        \"properties\": {\n            \"traits\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"age\": {\n                        \"type\": \"integer\"\n                    },\n                    \"anonymousId\": {\n                        \"type\": \"string\"\n                    },\n                    \"userId\": {\n                        \"type\": \"string\"\n                    },\n                    \"firstName\": {\n                        \"type\": \"string\"\n                    },\n                    \"lastName\": {\n                        \"type\": \"string\"\n                    },\n                    \"phone\": {\n                        \"type\": \"string\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"9dc47cf7-6fe2-436b-a84a-8e974b05423e","name":"Map Group to Tracking Plan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"object\",\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n    \"properties\": {\n        \"traits\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"name\": {\n                    \"type\": \"string\"\n                },\n                \"industry\": {\n                    \"type\": \"string\"\n                },\n                \"plan\": {\n                    \"type\": \"string\"\n                }\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/group"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"268"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:29:19 GMT"},{"key":"X-Request-ID","value":"3fe5d780-f61f-11ed-8bed-31f30302dab0"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8897990f126fed76429dbbc96fea1c90.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"dvUHldny7kGXiSGURHbt1DSt1aCyWu8sDdFc75H770o6Y-aeL9SbbA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2Q0KG4U0LnsksEQ5CF2svCEixVY\",\n    \"version\": \"1-0-0\",\n    \"rules\": {\n        \"type\": \"object\",\n        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n        \"properties\": {\n            \"traits\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"name\": {\n                        \"type\": \"string\"\n                    },\n                    \"industry\": {\n                        \"type\": \"string\"\n                    },\n                    \"plan\": {\n                        \"type\": \"string\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"4257f17d-6801-4334-a653-1cb77e667dc4","name":"Map Page to Tracking Plan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"object\",\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n    \"properties\": {\n        \"properties\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"title\": {\n                    \"type\": \"string\"\n                },\n                \"url\": {\n                    \"type\": \"string\"\n                }\n            },\n            \"additionalProperties\": true\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/page"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"271"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:33:55 GMT"},{"key":"X-Request-ID","value":"e44faf80-f61f-11ed-bd78-65d5dc5326be"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 175ad1930803ff9b27aa38a792abcb68.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"I_iKM2Z3kPjqAC2GMR-Fg6INVz_cCU-CXT29bu1VO8zyb2O6WiFTRQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2Q0KolMoWi1Y6YN3z5hCEK9xgzL\",\n    \"version\": \"1-0-0\",\n    \"rules\": {\n        \"type\": \"object\",\n        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n        \"properties\": {\n            \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"title\": {\n                        \"type\": \"string\"\n                    },\n                    \"url\": {\n                        \"type\": \"string\"\n                    }\n                },\n                \"additionalProperties\": true\n            }\n        }\n    }\n}"},{"id":"e65df0f0-7cac-4513-9848-2a92c6fa6620","name":"Map Screen to Tracking Plan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"object\",\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n    \"properties\": {\n        \"properties\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"section\": {\n                    \"type\": [\"string\", \"null\"]\n                },\n                \"resolution\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"width\": {\n                            \"type\": \"integer\"\n                        },\n                        \"height\": {\n                            \"type\": \"integer\"\n                        }\n                    },\n                    \"additionalProperties\": false\n                }\n            },\n            \"additionalProperties\": true\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"388"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:37:54 GMT"},{"key":"X-Request-ID","value":"730c0f70-f620-11ed-8135-d7f69dba5224"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 175ad1930803ff9b27aa38a792abcb68.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"OTkrLG57RTRpp2KNaMKgU3WMxDm1qPQDnGSU5t4hOnSJAwLEGWDqGA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2Q0LIo6Xb6ARhy3bnGNEGZ987zG\",\n    \"version\": \"1-0-0\",\n    \"rules\": {\n        \"type\": \"object\",\n        \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n        \"properties\": {\n            \"properties\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"section\": {\n                        \"type\": [\n                            \"string\",\n                            \"null\"\n                        ]\n                    },\n                    \"resolution\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"width\": {\n                                \"type\": \"integer\"\n                            },\n                            \"height\": {\n                                \"type\": \"integer\"\n                            }\n                        },\n                        \"additionalProperties\": false\n                    }\n                },\n                \"additionalProperties\": true\n            }\n        }\n    }\n}"}],"_postman_id":"d88d2dab-6039-495a-9a9d-f3c0f3ff64fb"},{"name":"Delete Non-Track Rule","id":"d2879d18-86b7-4efc-9c52-62d501dcc1cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/{{ruleType}}","description":"<p>Deletes a non-track rule of type <code>identify</code>, <code>group</code>, <code>page</code> or <code>screen</code> mapped to a tracking plan.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans","tp_2Q0GDOl12OXATIg4zOytv6t5ywl","rules","{{ruleType}}"],"host":["https://api.rudderstack.com"],"query":[],"variable":[]}},"response":[{"id":"5e379db9-dd5e-4d52-acde-65aa21dd0133","name":"Delete Identify","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/identify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:45:12 GMT"},{"key":"X-Request-ID","value":"77f43480-f621-11ed-bd78-65d5dc5326be"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 3ba03fbd4da6026f2ea63b657283d714.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"STskdKoQt5AiBWnZkJL3dgqLKtHZmePmpUzT-CmqkxeVWI7OAAsnwg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"b75fa7ec-d037-4122-9653-2362163aa5fa","name":"Delete Screen","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:53:20 GMT"},{"key":"X-Request-ID","value":"9ad7fa80-f622-11ed-a28b-c1ecd0abc9bf"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a8b26a870e896cf36ea8a2a41f8e6348.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"3rb34WDm5vE7HvcU-UmRRNwY0bK3dJCjxdGlq-9NytQA8uuNOvox-A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"844da938-c8c1-46b2-9b5b-28983aeb4d9f","name":"Delete Group","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/group"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:50:51 GMT"},{"key":"X-Request-ID","value":"42255fe0-f622-11ed-9c26-0b226de5c8b8"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a8b26a870e896cf36ea8a2a41f8e6348.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"vnp85RnSnEeue78qR7u_f4KMjAkDCfoP-xRq9A0L02OaMwPQ9pDraw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"0e0a61c9-f774-44f7-925a-bb92f4c3b29d","name":"Delete Page","originalRequest":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/tp_2Q0GDOl12OXATIg4zOytv6t5ywl/rules/page"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 19 May 2023 08:52:00 GMT"},{"key":"X-Request-ID","value":"6b570760-f622-11ed-8dde-7d51bfbf6ccf"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-User-ID","value":"2OzxOHRUarRgVivgm0hnOav9JnI"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a8b26a870e896cf36ea8a2a41f8e6348.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P2"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"ooacFRqKl9hi2Re96dxR_7ff3TXHFTI7tH2B04KwPT0wEsYFAQFrkw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"d2879d18-86b7-4efc-9c52-62d501dcc1cb"}],"id":"25102209-0532-4223-97bb-3cf7ddbec50e","description":"<p>Upsert and Delete APIs for all non-track rules (identify, group, page and screen).</p>\n","_postman_id":"25102209-0532-4223-97bb-3cf7ddbec50e","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}}}],"id":"dfa3156f-216f-4399-bd5d-c57e077ba406","event":[{"listen":"prerequest","script":{"id":"4ceee88f-046a-414c-8095-7589def766c9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"67796220-baef-43d2-87b3-abb4f2ccfaf7","type":"text/javascript","exec":[""]}}],"_postman_id":"dfa3156f-216f-4399-bd5d-c57e077ba406","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}}},{"name":"Source Tracking Plan Connections","item":[{"name":"Create/Update Source Configuration","id":"16b756f9-1975-47a0-82fa-0ebadb3fe38e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"track\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    },\n    \"global\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/sources/:sourceId/config","description":"<p>Creates or updates the tracking plan configuration for a given source ID.</p>\n<p>The configuration settings are listed in the following sections:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Configuration setting</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>allowUnplannedEvents</code></td>\n<td>If set to <code>\"true\"</code>, RudderStack will not drop the events that are not defined in your tracking plan.  <br />  <br />If set to <code>\"false\"</code>, RudderStack will drop the events not defined in your tracking plan.</td>\n</tr>\n<tr>\n<td><code>unplannedProperties</code></td>\n<td>If set to <code>\"forward\"</code>, the event's context will be updated with the erroneous/unplanned property and forwarded to RudderStack.  <br />  <br />If set to <code>\"drop\"</code> , RudderStack will drop the event containing the unplanned properties.</td>\n</tr>\n<tr>\n<td><code>anyOtherViolation</code></td>\n<td>If set to <code>\"forward\"</code>, the event's context will be updated with these violations and forwarded to RudderStack.  <br />  <br />If set to <code>\"drop\"</code> , RudderStack will drop the event containing the violations.</td>\n</tr>\n<tr>\n<td><code>propagateValidationErrors</code></td>\n<td>If set to <code>\"true\"</code>, the validation errors are captured in the event's context and sent downstream (user transformations, destinations).  <br />  <br />If set to <code>\"false\"</code>, RudderStack will drop the event containing the validation errors.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <code>global</code> parameter indicates the configuration settings applicable for <strong>all</strong> events.</p>\n<p><strong>However, note that the event-level configuration settings will override the settings defined in the</strong> <strong><code>global</code></strong> <strong>parameter.</strong> In the example request on the right, the settings defined for <code>track</code> will override the settings defined for <code>global</code>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","sources",":sourceId","config"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"type":"any","value":"{{source_id}}","key":"sourceId"}]}},"response":[{"id":"d3bf2f5a-c305-443b-adf3-785a0626b617","name":"Create source configuration","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"track\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    },\n    \"global\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/sources/:sourceId/config","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","sources",":sourceId","config"],"variable":[{"key":"sourceId","value":"1qSuNc0KtpNOuesADEHAnRzihZq"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"508"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 10 Nov 2021 12:49:10 GMT"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Request-ID","value":"99970570-4224-11ec-87ae-191b21e4b239"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 62f7aa308c367fb8f14fc57f199056cc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C3"},{"key":"X-Amz-Cf-Id","value":"-SRuV-qNGrujlHkc-OGsgEnp7TH0ERklSn1BA3m21pTCo5rj3veVPg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"config\": {\n        \"track\": {\n            \"allowUnplannedEvents\": \"true\",\n            \"unplannedProperties\": \"forward\",\n            \"anyOtherViolation\": \"forward\",\n            \"propagateValidationErrors\": \"true\"\n        },\n        \"global\": {\n            \"allowUnplannedEvents\": \"true\",\n            \"unplannedProperties\": \"forward\",\n            \"anyOtherViolation\": \"forward\",\n            \"propagateValidationErrors\": \"true\"\n        }\n    },\n    \"sourceId\": \"1qSuNc0KtpNOuesADEHAnRzihZq\",\n    \"version\": 1,\n    \"createdAt\": \"2021-11-10T12:49:10.482Z\",\n    \"updatedAt\": \"2021-11-10T12:49:10.482Z\"\n}"}],"_postman_id":"16b756f9-1975-47a0-82fa-0ebadb3fe38e"},{"name":"Get Source Configuration","id":"862db3c9-9dcf-416f-a9d8-3afd31de243d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/sources/:sourceId/config","description":"<p>Fetches the tracking plan configuration for a given source ID.</p>\n<blockquote>\n<p>You can get the previous tracking plan configuration versions with an optional query parameter <code>version</code>.</p>\n</blockquote>\n<hr />\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","sources",":sourceId","config"],"host":["https://api.rudderstack.com"],"query":[{"disabled":true,"key":"version","value":"1"}],"variable":[{"type":"any","value":"{{source_id}}","key":"sourceId"}]}},"response":[{"id":"0da0f09f-1235-4b47-8ab3-0cc2e3f62df9","name":"Get source configuration","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/v1/dg/sources/:sourceId/config","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","sources",":sourceId","config"],"variable":[{"key":"sourceId","value":"1qSuNc0KtpNOuesADEHAnRzihZq"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"366"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 10 Nov 2021 12:52:50 GMT"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Request-ID","value":"1c73d860-4225-11ec-a744-5d63e9e5bfd5"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 62f7aa308c367fb8f14fc57f199056cc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C3"},{"key":"X-Amz-Cf-Id","value":"_MPjb_MobxcZf-iFPqAxmEl-8tk9RiCqGUasbmgyIw3a3qI5KNQDTw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"track\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    },\n    \"global\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    }\n}"},{"id":"b01c8fae-dc78-465a-b16f-d16b7692153b","name":"Get source configuration with version","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":{"raw":"https://api.rudderstack.com/v1/dg/sources/:sourceId/config?version=1","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","sources",":sourceId","config"],"query":[{"key":"version","value":"1"}],"variable":[{"key":"sourceId","value":"1qSuNc0KtpNOuesADEHAnRzihZq"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"366"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 10 Nov 2021 12:51:31 GMT"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Request-ID","value":"ed7a64c0-4224-11ec-a05d-0bddbc77abc0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 62f7aa308c367fb8f14fc57f199056cc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C3"},{"key":"X-Amz-Cf-Id","value":"ADBo5Y7m7oOOC-Ctn0Q8NLdtRMnXRyqKaT3t-CeuK6RBsDmMNoXCCw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"track\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    },\n    \"global\": {\n        \"allowUnplannedEvents\": \"true\",\n        \"unplannedProperties\": \"forward\",\n        \"anyOtherViolation\": \"forward\",\n        \"propagateValidationErrors\": \"true\"\n    }\n}"}],"_postman_id":"862db3c9-9dcf-416f-a9d8-3afd31de243d"},{"name":"Create Tracking Plan-Source Connection","id":"d7cfd499-57b8-4f3e-b162-dc86f8e22abc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"source_id\": \"{{source_id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v1/dg/trackingplans/:id/source-connections","description":"<p>Connects a tracking plan to source. Note that this request supports create or update operations for only one tracking plan connection at a time.</p>\n<blockquote>\n<p>If source is already linked to plan, this request overrides existing tracking plan connection.</p>\n</blockquote>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans",":id","source-connections"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"type":"any","value":"{{tracking_plan_id}}","key":"id"}]}},"response":[{"id":"2e99e0ae-e085-4ded-817f-052d91242c7b","name":"Create Connection","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"source_id\": \"1qSuNc0KtpNOuesADEHAnRzihZq\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans/:id/source-connections","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans",":id","source-connections"],"variable":[{"key":"id","value":"tp_1ySO5mS8gK3gvyC88YiJJVj7hr3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"141"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 10 Nov 2021 13:02:21 GMT"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Request-ID","value":"70cbd600-4226-11ec-87ae-191b21e4b239"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c94da9cdc6b5a8cdec5c3956d92170f5.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C3"},{"key":"X-Amz-Cf-Id","value":"Ufp35NM6XYBDS6ZxpFWaIUi0rpM73wV2Hhd8lHQ_TWkPIC-LnxhlXw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"source_name\": \"workspaces/1n6JajCyRa12om0GB1FxGEodIf8/sources/1qSuNc0KtpNOuesADEHAnRzihZq\",\n    \"tracking_plan\": \"tp_1ySO5mS8gK3gvyC88YiJJVj7hr3\"\n}"}],"_postman_id":"d7cfd499-57b8-4f3e-b162-dc86f8e22abc"},{"name":"List Tracking Plan-Source Connections","id":"35c80ee6-4e3b-43ef-b651-bbb07e088e57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/:id/source-connections","description":"<p>Fetches all the sources connected to given tracking plan.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans",":id","source-connections"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"type":"any","value":"{{tracking_plan_id}}","key":"id"}]}},"response":[{"id":"f405abbe-3aec-4782-89c9-6baf93cf54de","name":"List of connections to Tracking Plan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans/:id/source-connections","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans",":id","source-connections"],"variable":[{"key":"id","value":"tp_1ySO5mS8gK3gvyC88YiJJVj7hr3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"307"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 10 Nov 2021 13:06:19 GMT"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Request-ID","value":"fec4bee0-4226-11ec-b255-7f702116b536"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c94da9cdc6b5a8cdec5c3956d92170f5.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C3"},{"key":"X-Amz-Cf-Id","value":"tHaY6j9wuEqvs0EvB4u4Om-8fr6bjTgaRV_ltYxjzRNsmWg9OgZeeA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"connections\": [\n        {\n            \"source_name\": \"workspaces/1n6JajCyRa12om0GB1FxGEodIf8/sources/1qSuNc0KtpNOuesADEHAnRzihZq\",\n            \"tracking_plan_id\": \"tp_1ySO5mS8gK3gvyC88YiJJVj7hr3\"\n        },\n        {\n            \"source_name\": \"workspaces/1n6JajCyRa12om0GB1FxGEodIf8/sources/1uJ1Ofn6qRh92sGeyJE1bueU3u7\",\n            \"tracking_plan_id\": \"tp_1ySO5mS8gK3gvyC88YiJJVj7hr3\"\n        }\n    ]\n}"}],"_postman_id":"35c80ee6-4e3b-43ef-b651-bbb07e088e57"},{"name":"Delete Tracking Plan-Source Connection","id":"1ac49332-3c6f-44ee-9041-3065900cf5f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.rudderstack.com/v1/dg/trackingplans/:id/source-connections/:sourceId","description":"<p>Deletes the connection between a given source ID and a tracking plan ID.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}},"urlObject":{"path":["v1/dg","trackingplans",":id","source-connections",":sourceId"],"host":["https://api.rudderstack.com"],"query":[],"variable":[{"type":"any","value":"{{tracking_plan_id}}","key":"id"},{"type":"any","value":"{{source_id}}","key":"sourceId"}]}},"response":[{"id":"b7ba7bb5-a0f4-4eb7-9d7b-8ff51621bbcd","name":"Delete Source connection","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.rudderstack.com/v1/dg/trackingplans/:id/source-connections/:sourceId","protocol":"https","host":["api","rudderstack","com"],"path":["v1","dg","trackingplans",":id","source-connections",":sourceId"],"variable":[{"key":"id","value":"tp_1ySO5mS8gK3gvyC88YiJJVj7hr3"},{"key":"sourceId","value":"1qSuNc0KtpNOuesADEHAnRzihZq"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 10 Nov 2021 13:08:12 GMT"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Request-ID","value":"4244ddd0-4227-11ec-87ae-191b21e4b239"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c94da9cdc6b5a8cdec5c3956d92170f5.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C3"},{"key":"X-Amz-Cf-Id","value":"kto1xRYQAVUp_VrG3aKSej3dgZcON47G6d25uMrUI9MfSZob5CpC2w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"1ac49332-3c6f-44ee-9041-3065900cf5f6"}],"id":"4b74ffd2-de44-43c9-b2a4-2d65e4fb61c9","description":"<p>This section covers the requests needed for:</p>\n<ul>\n<li>Creating or updating a tracking plan configuration for a given source.</li>\n<li>Fetching the tracking plan configuration for a given source.</li>\n<li>Connecting a tracking plan to a given source.</li>\n<li>Listing all your source-tracking plan connections.</li>\n<li>Deleting or removing a source-tracking plan connection.</li>\n</ul>\n","_postman_id":"4b74ffd2-de44-43c9-b2a4-2d65e4fb61c9","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":true,"source":{"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","name":"Tracking Plan API","type":"folder"}}}],"id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e","description":"<p>This collection contains a list of the supporting <strong>Data Governance API</strong> calls and models with relevant examples.</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><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Requirement</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>ID</td>\n<td>Autogenerated name</td>\n<td>Read-only</td>\n</tr>\n<tr>\n<td><code>display_name</code></td>\n<td>String</td>\n<td>Display name of the plan</td>\n<td>Required</td>\n</tr>\n<tr>\n<td><code>rules</code></td>\n<td>Rules</td>\n<td>Schema rules for the plan</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td><code>version</code></td>\n<td>Version</td>\n<td>Current version of the plan</td>\n<td>Read-only</td>\n</tr>\n<tr>\n<td><code>create_time</code></td>\n<td>DateTime</td>\n<td>Time of creation</td>\n<td>Read-only</td>\n</tr>\n<tr>\n<td><code>update_time</code></td>\n<td>DateTime</td>\n<td>Time of update</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>Requirement</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>events</code></td>\n<td>Array[object]</td>\n<td>Rules applied to the <code>track</code> calls</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td><code>identify</code></td>\n<td>object</td>\n<td>Rule applied to the <code>identify</code> call</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td><code>group</code></td>\n<td>object</td>\n<td>Rule applied to the <code>group</code> call</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>object</td>\n<td>Rule applied to the <code>page</code> call</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td><code>screen</code></td>\n<td>object</td>\n<td>Rule applied to the <code>screen</code> call</td>\n<td>Optional</td>\n</tr>\n</tbody>\n</table>\n</div><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>Requirement</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>Event Name</td>\n<td>Required</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>Event description</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td><code>rules</code></td>\n<td>JSON</td>\n<td>Rules applied to the event</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"access-tokens\">Access Tokens</h1>\n<p>You can generate the personal access token to access this API by following the documentation <a href=\"https://www.rudderstack.com/docs/rudderstack-api/personal-access-tokens/\">here</a>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Authentication Params</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>username</code></td>\n<td>String</td>\n<td>Email ID of the user</td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td>String</td>\n<td>Personal access token</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{email_address}}"},{"key":"password","value":"{{personal_access_token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"5275bda7-ac5a-4cdd-b108-286d1cb64739","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c9b57cb9-acf9-4462-b429-61a3e93bdf02","type":"text/javascript","exec":[""]}}],"_postman_id":"7df289e7-8758-4ec0-a86e-3aa08bd3260e"},{"name":"Test API","item":[{"name":"Verifying destination events","id":"9923f49c-5ec7-43b5-926f-b1307d506008","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": {\n        \"context\": {\n            \"traits\": {\n                \"firstName\": \"James\",\n                \"lastName\": \"Doe\"\n            }\n        },\n        \"type\": \"identify\",\n        \"userId\": \"abc@123.com\"\n    },\n    \"stage\": {\n        \"user_transform\": true,\n        \"dest_transform\": true,\n        \"send_to_destination\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v0/testDestination/1tKpO0kantcKjd5czXVD1cdwUBE","urlObject":{"protocol":"https","path":["v0","testDestination","1tKpO0kantcKjd5czXVD1cdwUBE"],"host":["api","rudderstack","com"],"query":[],"variable":[]}},"response":[{"id":"3415545f-318f-4636-a5a5-05eaad92254e","name":"Verifying destination events","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": {\n        \"context\": {\n            \"traits\": {\n                \"firstName\": \"James\",\n                \"lastName\": \"Doe\"\n            }\n        },\n        \"type\": \"identify\",\n        \"userId\": \"abc@123.com\"\n    },\n    \"stage\": {\n        \"user_transform\": true,\n        \"dest_transform\": true,\n        \"send_to_destination\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.rudderlabs.com/v0/testDestination/1tKpO0kantcKjd5czXVD1cdwUBE"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"832"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 01 Jun 2022 04:15:00 GMT"},{"key":"X-Request-ID","value":"66789aa0-e161-11ec-a5d0-7b69306ad852"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ccf4fceffb0daeece712ab7a48c32588.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C2"},{"key":"X-Amz-Cf-Id","value":"e499DbAOhkK5CK40M4WbBHj4pmpURPifcb713VpEk7z21Ahr36KaQw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"destinationId\": \"1tKpO0kantcKjd5czXVD1cdwUBE\",\n    \"destination\": \"MARKETO\",\n    \"destinationName\": \"Marketo\",\n    \"data\": [\n        {\n            \"user_transformed_payload\": {\n                \"error\": \"Transformation VersionID not found\"\n            },\n            \"dest_transformed_payload\": [\n                {\n                    \"version\": \"1\",\n                    \"type\": \"REST\",\n                    \"method\": \"POST\",\n                    \"endpoint\": \"https://585-AXP-425.mktorest.com/rest/v1/leads.json\",\n                    \"headers\": {\n                        \"Authorization\": \"Bearer da7c578c-f919-4049-b1de-42ee6bb26de6:ab\",\n                        \"Content-Type\": \"application/json\"\n                    },\n                    \"params\": {},\n                    \"body\": {\n                        \"JSON\": {\n                            \"action\": \"createOrUpdate\",\n                            \"input\": [\n                                {\n                                    \"FirstName\": \"James\",\n                                    \"LastName\": \"Doe\",\n                                    \"lastName\": \"Doe\",\n                                    \"firstName\": \"James\",\n                                    \"id\": 1328262,\n                                    \"userId\": \"abc@123.com\"\n                                }\n                            ],\n                            \"lookupField\": \"id\"\n                        },\n                        \"JSON_ARRAY\": {},\n                        \"XML\": {},\n                        \"FORM\": {}\n                    },\n                    \"files\": {}\n                }\n            ],\n            \"destination_response\": [\n                {\n                    \"requestId\": \"e2ef#1811d7951fc\",\n                    \"result\": [\n                        {\n                            \"id\": 1328262,\n                            \"status\": \"updated\"\n                        }\n                    ],\n                    \"success\": true\n                }\n            ],\n            \"destination_response_status\": [\n                200\n            ]\n        }\n    ]\n}"}],"_postman_id":"9923f49c-5ec7-43b5-926f-b1307d506008"},{"name":"Verifying source events","id":"6f2f4d1a-c866-4d1f-95de-9d1cfb405f29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": {\n        \"context\": {\n            \"traits\": {\n                \"firstName\": \"James\",\n                \"lastName\": \"Doe\"\n            }\n        },\n        \"type\": \"identify\",\n        \"userId\": \"abc@123.com\"\n    },\n    \"stage\": {\n        \"user_transform\": true,\n        \"dest_transform\": true,\n        \"send_to_destination\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rudderstack.com/v0/testSource/1zlmsBMe1dcPbu3u6NTZFUFBrNQ","urlObject":{"protocol":"https","path":["v0","testSource","1zlmsBMe1dcPbu3u6NTZFUFBrNQ"],"host":["api","rudderstack","com"],"query":[],"variable":[]}},"response":[{"id":"8d4ba5d7-31f8-4990-a3e0-194c8e7007aa","name":"Verifying source events","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": {\n        \"context\": {\n            \"traits\": {\n                \"firstName\": \"James\",\n                \"lastName\": \"Doe\"\n            }\n        },\n        \"type\": \"identify\",\n        \"userId\": \"abc@123.com\"\n    },\n    \"stage\": {\n        \"user_transform\": true,\n        \"dest_transform\": true,\n        \"send_to_destination\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.rudderlabs.com/v0/testSource/1zlmsBMe1dcPbu3u6NTZFUFBrNQ"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1908"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 01 Jun 2022 04:15:11 GMT"},{"key":"X-Request-ID","value":"6d494b40-e161-11ec-b6db-3527087966ea"},{"key":"Vary","value":"Origin"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ccf4fceffb0daeece712ab7a48c32588.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-C2"},{"key":"X-Amz-Cf-Id","value":"qPUHPyL4RVdfHtofnTGz16tue0MdH51G6uiWIoqH6IqRvrilEXxtrg=="}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"destinationId\": \"1tIgXcaRnQDlBBtxlJMGGHFUWGb\",\n        \"destination\": \"SALESFORCE\",\n        \"destinationName\": \"salesforce\",\n        \"data\": [\n            {\n                \"user_transformed_payload\": {\n                    \"error\": \"Transformation VersionID not found\"\n                },\n                \"dest_transformed_payload\": {\n                    \"error\": \"SALESFORCE AUTH FAILED: Request failed with status code 400\"\n                },\n                \"destination_response\": {\n                    \"error\": \"error encountered in dest_transformation stage. Aborting.\"\n                }\n            }\n        ]\n    },\n    {\n        \"destinationId\": \"1zl4i0J8M8T7sozoLnueW46RVYe\",\n        \"destination\": \"WEBHOOK\",\n        \"destinationName\": \"test-webhook-dest\",\n        \"data\": [\n            {\n                \"user_transformed_payload\": {\n                    \"error\": \"Transformation VersionID not found\"\n                },\n                \"dest_transformed_payload\": [\n                    {\n                        \"version\": \"1\",\n                        \"type\": \"REST\",\n                        \"method\": \"POST\",\n                        \"endpoint\": \"https://webhook.site/9d5e3e43-6c2b-4b84-be9f-0147347b4cdf\",\n                        \"headers\": {\n                            \"content-type\": \"application/json\"\n                        },\n                        \"params\": {},\n                        \"body\": {\n                            \"JSON\": {\n                                \"context\": {\n                                    \"traits\": {\n                                        \"firstName\": \"James\",\n                                        \"lastName\": \"Doe\"\n                                    }\n                                },\n                                \"type\": \"identify\",\n                                \"userId\": \"abc@123.com\"\n                            },\n                            \"JSON_ARRAY\": {},\n                            \"XML\": {},\n                            \"FORM\": {}\n                        },\n                        \"files\": {}\n                    }\n                ],\n                \"destination_response\": [\n                    {\n                        \"success\": false,\n                        \"error\": {\n                            \"message\": \"Token not found\",\n                            \"id\": null\n                        }\n                    }\n                ],\n                \"destination_response_status\": [\n                    404\n                ]\n            }\n        ]\n    },\n    {\n        \"destinationId\": \"1tKpO0kantcKjd5czXVD1cdwUBE\",\n        \"destination\": \"MARKETO\",\n        \"destinationName\": \"Marketo\",\n        \"data\": [\n            {\n                \"user_transformed_payload\": {\n                    \"error\": \"Transformation VersionID not found\"\n                },\n                \"dest_transformed_payload\": [\n                    {\n                        \"version\": \"1\",\n                        \"type\": \"REST\",\n                        \"method\": \"POST\",\n                        \"endpoint\": \"https://585-AXP-425.mktorest.com/rest/v1/leads.json\",\n                        \"headers\": {\n                            \"Authorization\": \"Bearer da7c578c-f919-4049-b1de-42ee6bb26de6:ab\",\n                            \"Content-Type\": \"application/json\"\n                        },\n                        \"params\": {},\n                        \"body\": {\n                            \"JSON\": {\n                                \"action\": \"createOrUpdate\",\n                                \"input\": [\n                                    {\n                                        \"FirstName\": \"James\",\n                                        \"LastName\": \"Doe\",\n                                        \"lastName\": \"Doe\",\n                                        \"firstName\": \"James\",\n                                        \"id\": 1328262,\n                                        \"userId\": \"abc@123.com\"\n                                    }\n                                ],\n                                \"lookupField\": \"id\"\n                            },\n                            \"JSON_ARRAY\": {},\n                            \"XML\": {},\n                            \"FORM\": {}\n                        },\n                        \"files\": {}\n                    }\n                ],\n                \"destination_response\": [\n                    {\n                        \"requestId\": \"b13d#1811d797e90\",\n                        \"result\": [\n                            {\n                                \"id\": 1328262,\n                                \"status\": \"updated\"\n                            }\n                        ],\n                        \"success\": true\n                    }\n                ],\n                \"destination_response_status\": [\n                    200\n                ]\n            }\n        ]\n    }\n]"}],"_postman_id":"6f2f4d1a-c866-4d1f-95de-9d1cfb405f29"}],"id":"e4731bcc-1627-44dd-83f5-d801ee77d31c","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ac469053-0eeb-4449-a373-97bafae3e60b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3c4dd120-7c07-4987-81a6-0ccc09a5b6a4","type":"text/javascript","exec":[""]}}],"_postman_id":"e4731bcc-1627-44dd-83f5-d801ee77d31c","description":""}],"event":[{"listen":"prerequest","script":{"id":"04b3e16e-5e91-46d2-9b4e-1f92d9f04c49","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7c4a06d3-315a-4244-bef2-7c73092f44ae","type":"text/javascript","exec":[""]}}],"variable":[{"key":"backend_url","value":"https://api.rudderstack.com"},{"key":"trackingplan_base_path","value":"v1/dg"},{"key":"host","value":"https://api.rudderstack.com"}]}