Skip to content

Instantly share code, notes, and snippets.

@alexmuller
Last active August 29, 2015 14:06
Show Gist options
  • Save alexmuller/858af7b977f026d2fb9d to your computer and use it in GitHub Desktop.
Save alexmuller/858af7b977f026d2fb9d to your computer and use it in GitHub Desktop.
Creating a dashboard using cURL
curl -X POST https://stagecraft.preview.performance.service.gov.uk/dashboard --header "Authorization: Bearer $NAYEEMA_TOKEN" --header "Content-type: application/json" --data @dashboard.json
curl -X POST https://stagecraft.preview.performance.service.gov.uk/module-type --header "Authorization: Bearer $NAYEEMA_TOKEN" --header "Content-type: application/json" --data @module_type.json
curl -X POST https://stagecraft.preview.performance.service.gov.uk/dashboard/UPDATE_THIS/module --header "Authorization: Bearer $NAYEEMA_TOKEN" --header "Content-type: application/json" --data @module.json
{
"slug": "test/all-the-cakes",
"title": "All the cakes",
"description": "Baking all the cakes",
"published": false,
"business_models": "Fees and charges"
}
{
"type_id": "UPDATE_THIS",
"slug": "realtime",
"title": "Realtime",
"description": "Performance Platform cake consumption",
"info": ["Data source: biscuit tin"],
"options": {},
"data_set_id": "9"
}
{
"name": "realtime",
"schema": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment