{"info":{"_postman_id":"05172a2f-3e3e-644b-e9e9-c6d71c662b12","name":"MapBox - Styles","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5039671","collectionId":"05172a2f-3e3e-644b-e9e9-c6d71c662b12","publishedId":"RWTmvJhv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-08-15T03:32:23.000Z"},"item":[{"name":"Create Style","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["postman.setGlobalVariable(\"variable_key\", \"variable_value\");"]}},{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","postman.setGlobalVariable(\"style_id_to_delete\",jsonData.id);"]}}],"id":"711f3f71-df46-9d2d-c2c2-e57286ae1afb","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"version\": 8,\n  \"name\": \"My Awesome Style\",\n  \"metadata\": { },\n  \"sources\": {\n    \"myvectorsource\": {\n      \"url\": \"mapbox://styles/mapbox/streets-v10\",\n      \"type\": \"vector\"\n    },\n    \"myrastersource\": {\n      \"url\": \"mapbox://mapbox.streets\",\n      \"type\": \"raster\"\n    }\n  },\n  \"glyphs\": \"mapbox://fonts/mapbox/{fontstack}/{range}.pbf\",\n  \"layers\": [ ]\n}"},"url":"https://api.mapbox.com/styles/v1/umeralikhan?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"711f3f71-df46-9d2d-c2c2-e57286ae1afb"},{"name":"List Styles","id":"06220af2-a863-1bf5-9552-f9162880641a","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.mapbox.com/styles/v1/umeralikhan/?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan",""],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"06220af2-a863-1bf5-9552-f9162880641a"},{"name":"Retrieve a Style","id":"e86af647-8323-ea91-aa71-97c21506d923","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjys5uq0sf62smvfmgavc9k?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjys5uq0sf62smvfmgavc9k"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"e86af647-8323-ea91-aa71-97c21506d923"},{"name":"Update a Style","id":"014257c5-7256-e5e8-fda7-ed0c0b020b56","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"version\": 8,\n    \"name\": \"My Awesome Style\",\n    \"metadata\": {},\n    \"sources\": {\n        \"myvectorsource\": {\n            \"url\": \"mapbox://styles/mapbox/streets-v10\",\n            \"type\": \"vector\"\n        },\n        \"myrastersource\": {\n            \"url\": \"mapbox://mapbox.streets\",\n            \"type\": \"raster\"\n        }\n    },\n    \"sprite\": \"mapbox://sprites/umeralikhan/cjkjz6rxx02tw2smvbnyzbf24\",\n    \"glyphs\": \"mapbox://fonts/mapbox/{fontstack}/{range}.pbf\",\n    \"layers\": [],\n  \n    \"id\": \"cjkjz6rxx02tw2smvbnyzbf24\",\n\n    \"owner\": \"umeralikhan\",\n    \"visibility\": \"private\",\n    \"draft\": false\n}"},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjz6rxx02tw2smvbnyzbf24?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjz6rxx02tw2smvbnyzbf24"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"014257c5-7256-e5e8-fda7-ed0c0b020b56"},{"name":"Delete a Style","id":"14acfc4b-cf88-5ad1-e358-3826278e240d","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"version\": 8,\n    \"name\": \"My Awesome Style\",\n    \"metadata\": {},\n    \"sources\": {\n        \"myvectorsource\": {\n            \"url\": \"mapbox://styles/mapbox/streets-v10\",\n            \"type\": \"vector\"\n        },\n        \"myrastersource\": {\n            \"url\": \"mapbox://mapbox.streets\",\n            \"type\": \"raster\"\n        }\n    },\n    \"sprite\": \"mapbox://sprites/umeralikhan/cjkjz6rxx02tw2smvbnyzbf24\",\n    \"glyphs\": \"mapbox://fonts/mapbox/{fontstack}/{range}.pbf\",\n    \"layers\": [],\n  \n    \"id\": \"cjkjz6rxx02tw2smvbnyzbf24\",\n\n    \"owner\": \"umeralikhan\",\n    \"visibility\": \"private\",\n    \"draft\": false\n}"},"url":"https://api.mapbox.com/styles/v1/umeralikhan/{{style_id_to_delete}}?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","{{style_id_to_delete}}"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"14acfc4b-cf88-5ad1-e358-3826278e240d"},{"name":"Retrieve a sprite image (PNG)","id":"24711da4-85f1-9fa5-2543-5577d708f5d1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjys5uq0sf62smvfmgavc9k/sprite.png?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjys5uq0sf62smvfmgavc9k","sprite.png"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"24711da4-85f1-9fa5-2543-5577d708f5d1"},{"name":"Retrieve a sprite image (JSON)","id":"6d25baac-42f0-debf-d402-a68ed29b3156","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjys5uq0sf62smvfmgavc9k/sprite@2x?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjys5uq0sf62smvfmgavc9k","sprite@2x"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"6d25baac-42f0-debf-d402-a68ed29b3156"},{"name":"Add new image to sprite","id":"3bb6a188-d308-e203-b7c6-00c48e62f9ca","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"file","file":{"src":""}},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjys5uq0sf62smvfmgavc9k/sprite/bicycle-254.svg?access_token={{mapbox_full_access_token}}","description":"<p>@stamtesteng To send files with requests while running a collection, you'll need to use Newman - <a href=\"http://blog.getpostman.com/2014/11/15/using-newman-to-run-collections-with-file-post-requests/\">http://blog.getpostman.com/2014/11/15/using-newman-to-run-collections-with-file-post-requests/</a>. Supporting file uploads through Postman's runner isn't on our immediate roadmap.</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjys5uq0sf62smvfmgavc9k","sprite","bicycle-254.svg"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"3bb6a188-d308-e203-b7c6-00c48e62f9ca"},{"name":"Delete image from sprite","id":"0255fcfa-af64-a8e3-c2a8-a3adedfc08fd","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"file","file":{"src":""}},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjys5uq0sf62smvfmgavc9k/sprite/bicycle-254.svg?access_token={{mapbox_full_access_token}}","description":"<p>@stamtesteng To send files with requests while running a collection, you'll need to use Newman - <a href=\"http://blog.getpostman.com/2014/11/15/using-newman-to-run-collections-with-file-post-requests/\">http://blog.getpostman.com/2014/11/15/using-newman-to-run-collections-with-file-post-requests/</a>. Supporting file uploads through Postman's runner isn't on our immediate roadmap.</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjys5uq0sf62smvfmgavc9k","sprite","bicycle-254.svg"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"0255fcfa-af64-a8e3-c2a8-a3adedfc08fd"},{"name":"Embed a style","id":"658d7fbd-24d6-9574-fdec-6fec8dc87a9d","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.mapbox.com/styles/v1/umeralikhan/cjkjys5uq0sf62smvfmgavc9k.html?access_token={{mapbox_full_access_token}}","description":"<h1 id=\"a-2x-tile-this-is-a-512x512-tile-appropriate\">a 2x tile: this is a 512x512 tile appropriate</h1>\n<h1 id=\"for-high-density-displays-like-retina-displays\">for high-density displays like Retina displays</h1>\n<p>$ curl \"<a href=\"https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token\">https://api.mapbox.com/v4/mapbox.streets/1/0/0@2x.png?access_token=your-access-token</a>\"</p>\n","urlObject":{"protocol":"https","path":["styles","v1","umeralikhan","cjkjys5uq0sf62smvfmgavc9k.html"],"host":["api","mapbox","com"],"query":[{"key":"access_token","value":"{{mapbox_full_access_token}}"}],"variable":[]}},"response":[],"_postman_id":"658d7fbd-24d6-9574-fdec-6fec8dc87a9d"}]}