{"__v":2,"_id":"55e0384658c5460d0076a994","initVersion":null,"project":"54f06f596210dd21004627ce","tags":[],"user":{"_id":"54f06f1ca17a1521003180f3","username":"","name":"VictorBjelkholm"},"createdAt":"2015-08-28T10:30:30.454Z","changelog":[{"_id":"55e038a9a44fae0d00214662","update":"Tagging","type":"added"},{"_id":"55e038a9a44fae0d00214661","update":"`links` is now known as `_links`","type":"improved"},{"_id":"55e038a9a44fae0d0021465f","update":"Removed a level of nesting from objects in `answers` array","type":"improved"},{"_id":"55e038a9a44fae0d00214660","update":"Transparent images uploaded get a black background","type":"known"},{"_id":"55f011cd449d890d00dfe97c","update":"","type":"added"}],"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Internal Changes:\"\n}\n[/block]\nWe’ve given the codebase a massive facelift, rewriting the entire API in Golang, and adding a router to handle requests to the different versions.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"External Changes:\"\n}\n[/block]\n**2x BREAKING CHANGES:**\n1) In the form creation response: `\"links\"` has changed to `\"_links\"`.\n2) In the results (webhook) request: we have removed a level of nesting from objects in the `\"answers\"` array. (There is no `\"data\":` object any more for each field). So for example, instead of this:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// old version v0.3\\n\\\"answers\\\": [\\n  {\\n    \\\"field_id\\\": 1,\\n    \\\"data\\\": {\\n      \\\"type\\\": \\\"text\\\",\\n      \\\"value\\\": \\\"Hi there!\\\"\\n    }\\n  },\\n  {\\n    \\\"field_id\\\": 2,\\n    \\\"data\\\": {\\n      \\\"type\\\": \\\"choice\\\",\\n      \\\"value\\\": {\\n        \\\"label\\\": \\\"Selected option\\\",\\n        \\\"other\\\": null\\n      }\\n    }\\n  }\\n]\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n...it's now like this:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// new version v0.4\\n\\\"answers\\\": [\\n  {\\n    \\\"field_id\\\": 1,\\n    \\\"type\\\": \\\"text\\\",\\n    \\\"value\\\": \\\"Hi there!\\\"\\n  },\\n  {\\n    \\\"field_id\\\": 2,\\n    \\\"type\\\": \\\"choice\\\",\\n    \\\"value\\\": {\\n      \\\"label\\\": \\\"Selected option\\\",\\n      \\\"other\\\": null\\n    }\\n  }\\n]\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n**New Feature: We now have *Tagging*!**\nPlease find the new v0.4 documentation, including a full explanation of the Tagging feature, here: http://docs.typeform.io/v0.4/docs. Basically you do something like this:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"title\\\": \\\"Form with tagging\\\",\\n  \\\"tags\\\": [\\\"much-form\\\", \\\"so-tags\\\"],\\n  \\\"fields\\\": [\\n    {\\n      \\\"type\\\": \\\"yes_no\\\",\\n      \\\"question\\\": \\\"This is the best 1-question form ever, right?\\\",\\n      \\\"tags\\\": [\\\"leading-questions\\\", \\\"forgone-conclusions\\\"]\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nAnd when you get your results: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": \\\"aBc123\\\",\\n  \\\"tags\\\": [\\\"much-form\\\", \\\"so-tags\\\"],\\n  \\\"token\\\": \\\"5b5d6bc20b40138d72476f1301b4c716\\\",\\n  \\\"answers\\\": [\\n    {\\n      \\\"field_id\\\": \\\"123456789\\\",\\n      \\\"type\\\": \\\"boolean\\\",\\n      \\\"value\\\": true,\\n      \\\"tags\\\": [\\\"leading-questions\\\", \\\"forgone-conclusions\\\"]\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nSo now you have a simple way to, for example, group forms or questions together by context, or to keep track of connections between similar questions across many separate typeforms.\n\nThe API has been completely rewritten in the past few weeks, and we're preparing to move forward faster now, adding features like crazy!","slug":"2015-08-28-new-version-04","title":"2015-08-28 - New version 0.4"}

2015-08-28 - New version 0.4


[block:api-header] { "type": "basic", "title": "Internal Changes:" } [/block] We’ve given the codebase a massive facelift, rewriting the entire API in Golang, and adding a router to handle requests to the different versions. [block:api-header] { "type": "basic", "title": "External Changes:" } [/block] **2x BREAKING CHANGES:** 1) In the form creation response: `"links"` has changed to `"_links"`. 2) In the results (webhook) request: we have removed a level of nesting from objects in the `"answers"` array. (There is no `"data":` object any more for each field). So for example, instead of this: [block:code] { "codes": [ { "code": "// old version v0.3\n\"answers\": [\n {\n \"field_id\": 1,\n \"data\": {\n \"type\": \"text\",\n \"value\": \"Hi there!\"\n }\n },\n {\n \"field_id\": 2,\n \"data\": {\n \"type\": \"choice\",\n \"value\": {\n \"label\": \"Selected option\",\n \"other\": null\n }\n }\n }\n]", "language": "json" } ] } [/block] ...it's now like this: [block:code] { "codes": [ { "code": "// new version v0.4\n\"answers\": [\n {\n \"field_id\": 1,\n \"type\": \"text\",\n \"value\": \"Hi there!\"\n },\n {\n \"field_id\": 2,\n \"type\": \"choice\",\n \"value\": {\n \"label\": \"Selected option\",\n \"other\": null\n }\n }\n]", "language": "json" } ] } [/block] **New Feature: We now have *Tagging*!** Please find the new v0.4 documentation, including a full explanation of the Tagging feature, here: http://docs.typeform.io/v0.4/docs. Basically you do something like this: [block:code] { "codes": [ { "code": "{\n \"title\": \"Form with tagging\",\n \"tags\": [\"much-form\", \"so-tags\"],\n \"fields\": [\n {\n \"type\": \"yes_no\",\n \"question\": \"This is the best 1-question form ever, right?\",\n \"tags\": [\"leading-questions\", \"forgone-conclusions\"]\n }\n ]\n}", "language": "json" } ] } [/block] And when you get your results: [block:code] { "codes": [ { "code": "{\n \"id\": \"aBc123\",\n \"tags\": [\"much-form\", \"so-tags\"],\n \"token\": \"5b5d6bc20b40138d72476f1301b4c716\",\n \"answers\": [\n {\n \"field_id\": \"123456789\",\n \"type\": \"boolean\",\n \"value\": true,\n \"tags\": [\"leading-questions\", \"forgone-conclusions\"]\n }\n ]\n}", "language": "json" } ] } [/block] So now you have a simple way to, for example, group forms or questions together by context, or to keep track of connections between similar questions across many separate typeforms. The API has been completely rewritten in the past few weeks, and we're preparing to move forward faster now, adding features like crazy!
added
Tagging
improved
`links` is now known as `_links`
improved
Removed a level of nesting from objects in `answers` array
known
Transparent images uploaded get a black background