{"_id":"5d8b0d0a5ba61c0069c3eecf","project":"55ca8813e583751700f78a58","user":{"_id":"5b722e3b34272200031f5957","username":"","name":"IT Admin"},"__v":0,"metadata":{"title":"","description":"","image":[]},"createdAt":"2019-09-25T06:45:30.470Z","changelog":[],"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"To access the new endpoints, the version header must be set (minimum 2019.09.26)\",\n  \"body\": \"*See [https://dev.praemium.com/docs/versioning](https://dev.praemium.com/docs/versioning) for more information*\"\n}\n[/block]\nChanges in this release:\n\n**Model Manager Updates**\nModel Manager tokens now have access to Portfolios, Transactions, Valuations and Model Subscriptions endpoints for their Model and Model Shadow accounts. This allows direct access to the data for these accounts via API.\n\n\n\n\n**Model Subscriptions**\nA new OriginalPercent column has been added to the /accounts/modelsubscriptions endpoint, displaying the original weight chosen for the account pre-floating. This field will only be returned in version 2019.09.26 or higher.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"[\\n    {\\n        \\\"ModelId\\\": \\\"AU111\\\",\\n        \\\"Description\\\": \\\"Managed Account Cash AUD\\\",\\n        \\\"OriginalPercent\\\": 30,   \\n        \\\"ModelCode\\\": \\\"MACAUD\\\",\\n        \\\"Percent\\\": 31.5\\n    },\\n    {\\n        \\\"ModelId\\\": \\\"AU460\\\",\\n        \\\"Description\\\": \\\"Smart Investment ASX Top20\\\",\\n        \\\"OriginalPercent\\\": 70,         \\n        \\\"ModelCode\\\": \\\"SM0001\\\",\\n        \\\"Percent\\\": 68.5\\n    }\\n]\",\n      \"language\": \"json\",\n      \"name\": \"200 OK\"\n    }\n  ]\n}\n[/block]\n\n\n\n\n**Version erroring**\nPreviously passing through an outdated x-pps-api-version would bring mixed results, we have now introduced a standard 406 Not Acceptable error for this scenario:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"Message\\\": \\\"This endpoint is only available for API version 2019.08.15 or later.\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"406 Not Acceptable\"\n    }\n  ]\n}\n[/block]","slug":"api-updates-v20190926-september-2019","title":"API updates - v2019.09.26 (September 2019)"}

API updates - v2019.09.26 (September 2019)


[block:callout] { "type": "info", "title": "To access the new endpoints, the version header must be set (minimum 2019.09.26)", "body": "*See [https://dev.praemium.com/docs/versioning](https://dev.praemium.com/docs/versioning) for more information*" } [/block] Changes in this release: **Model Manager Updates** Model Manager tokens now have access to Portfolios, Transactions, Valuations and Model Subscriptions endpoints for their Model and Model Shadow accounts. This allows direct access to the data for these accounts via API. **Model Subscriptions** A new OriginalPercent column has been added to the /accounts/modelsubscriptions endpoint, displaying the original weight chosen for the account pre-floating. This field will only be returned in version 2019.09.26 or higher. [block:code] { "codes": [ { "code": "[\n {\n \"ModelId\": \"AU111\",\n \"Description\": \"Managed Account Cash AUD\",\n \"OriginalPercent\": 30, \n \"ModelCode\": \"MACAUD\",\n \"Percent\": 31.5\n },\n {\n \"ModelId\": \"AU460\",\n \"Description\": \"Smart Investment ASX Top20\",\n \"OriginalPercent\": 70, \n \"ModelCode\": \"SM0001\",\n \"Percent\": 68.5\n }\n]", "language": "json", "name": "200 OK" } ] } [/block] **Version erroring** Previously passing through an outdated x-pps-api-version would bring mixed results, we have now introduced a standard 406 Not Acceptable error for this scenario: [block:code] { "codes": [ { "code": "{\n \"Message\": \"This endpoint is only available for API version 2019.08.15 or later.\"\n}", "language": "json", "name": "406 Not Acceptable" } ] } [/block]