Skip to content

Instantly share code, notes, and snippets.

@dylanyoung-dev
Created October 4, 2022 15:43
Show Gist options
  • Save dylanyoung-dev/107afa7582739b291847191359937f19 to your computer and use it in GitHub Desktop.
Save dylanyoung-dev/107afa7582739b291847191359937f19 to your computer and use it in GitHub Desktop.
APIs that use oAuth access token to Retrieve, update or create experiences and experiments
{
"info": {
"_postman_id": "4671ef7b-44a7-4e08-9e16-702140a2460b",
"name": "Flow APIs",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "18869027"
},
"item": [
{
"name": "Experiences/Experiments",
"item": [
{
"name": "Get All Flows (Experiences/Experiments)",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://{{apiEndpoint}}/v3/flowDefinitions?expand=true&offset=0&limit=100",
"protocol": "https",
"host": [
"{{apiEndpoint}}"
],
"path": [
"v3",
"flowDefinitions"
],
"query": [
{
"key": "expand",
"value": "true"
},
{
"key": "offset",
"value": "0"
},
{
"key": "limit",
"value": "100"
},
{
"key": "type",
"value": "TRIGGERED_V3",
"disabled": true
}
]
},
"description": "It appears as if the code is handling the filtering of the types. The type parameter doesn't do anything."
},
"response": []
},
{
"name": "Update Flow Definition",
"request": {
"method": "PUT",
"header": [],
"url": {
"raw": "https://{{apiEndpoint}}/v3/flowDefinitions/:flowDefinitionId",
"protocol": "https",
"host": [
"{{apiEndpoint}}"
],
"path": [
"v3",
"flowDefinitions",
":flowDefinitionId"
],
"variable": [
{
"key": "flowDefinitionId",
"value": "59e7c36b-fb1b-45ca-9264-0a57346c4cf6"
}
]
}
},
"response": []
},
{
"name": "Retrieve Flow Definition",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://{{apiEndpoint}}/v3/flowDefinitions/:flowDefinitionId",
"protocol": "https",
"host": [
"{{apiEndpoint}}"
],
"path": [
"v3",
"flowDefinitions",
":flowDefinitionId"
],
"variable": [
{
"key": "flowDefinitionId",
"value": "testing-1"
}
]
}
},
"response": []
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{AdminToken}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment