{"id":3560,"date":"2021-12-22T15:28:48","date_gmt":"2021-12-22T14:28:48","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=3560"},"modified":"2025-12-29T10:53:01","modified_gmt":"2025-12-29T09:53:01","slug":"get-announcement-history","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/dock-scheduler\/announcements\/get-announcement-history\/","title":{"rendered":"Get announcement history"},"content":{"rendered":"\n<p>This method allows you to down\u00adload his\u00adto\u00adry of announce\u00adments.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" target=\"_blank\" rel=\"noopener\" title>here<\/a>. Each API request must also con\u00adsist of unique Api-key obtained dur\u00ading appli\u00adca\u00adtion reg\u00adis\u00adtra\u00adtion togeth\u00ader with client_id and client_secret.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Url parameters and connection settings<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL:&nbsp;<\/strong>https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint: <\/strong>\/ext\/dock-scheduler-api\/v1\/announcement\/{announcement-id}\/history<\/li>\n\n\n\n<li><strong>Http Method:<\/strong>&nbsp;GET<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Headers<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accept: application\/json<\/li>\n\n\n\n<li>Con\u00adtent-type: application\/json<\/li>\n\n\n\n<li>Autho\u00adriza\u00adtion: Bear\u00ader {access_token}<\/li>\n\n\n\n<li>Api-key: {unique_ap\u00adp_api-key}<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Json response example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n    \"2023-07-12\": [\n        {\n            \"fields_changes\": {\n                \"status\": {\n                    \"after\": \"CONFIRMED\",\n                    \"before\": null\n                }\n            },\n            \"modification_date_time\": \"2023-07-12T11:01:01\",\n            \"modified_by\": {\n                \"family_name\": \"Kowalski\",\n                \"given_name\": \"Jan\",\n                \"trans_id\": \"1007386-1\"\n            },\n            \"properties_changed\": [\n                \"status\"\n            ]\n        },\n        {\n            \"fields_changes\": {\n                \"arrival_delay\": {\n                    \"after\": 0,\n                    \"before\": null\n                },\n                \"custom_status_order\": {\n                    \"after\": 30,\n                    \"before\": null\n                },\n                \"modified_at\": {\n                    \"after\": \"2023-07-12T11:01:27\",\n                    \"before\": null\n                },\n                \"stage\": {\n                    \"after\": \"VEHICLE_ARRIVED\",\n                    \"before\": null\n                },\n                \"status\": {\n                    \"after\": \"IN_PROGRESS\",\n                    \"before\": \"CONFIRMED\"\n                }\n            },\n            \"modification_date_time\": \"2023-07-12T11:01:27\",\n            \"modified_by\": {\n                \"family_name\": \"Wankiewicz\",\n                \"given_name\": \"Pawe\u0142\",\n                \"trans_id\": \"1007386-1\"\n            },\n            \"properties_changed\": [\n                \"stage\",\n                \"modified_at\",\n                \"arrival_delay\",\n                \"custom_status_order\",\n                \"status\"\n            ]\n        },\n        {\n            \"fields_changes\": {\n                \"custom_status_order\": {\n                    \"after\": 40,\n                    \"before\": null\n                },\n                \"modified_at\": {\n                    \"after\": \"2023-07-12T11:01:30\",\n                    \"before\": null\n                },\n                \"stage\": {\n                    \"after\": \"STARTED\",\n                    \"before\": \"VEHICLE_ARRIVED\"\n                }\n            },\n            \"modification_date_time\": \"2023-07-12T11:01:30\",\n            \"modified_by\": {\n                \"family_name\": \"Wankiewicz\",\n                \"given_name\": \"Pawe\u0142\",\n                \"trans_id\": \"1007386-1\"\n            },\n            \"properties_changed\": [\n                \"stage\",\n                \"modified_at\",\n                \"custom_status_order\"\n            ]\n        }\n    ]\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">This method allows you to down\u00adload his\u00adto\u00adry of announce\u00adments.<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[93],"tags":[],"class_list":["post-3560","post","type-post","status-publish","format-standard","hentry","category-announcements"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":3560},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=3560"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3560\/revisions"}],"predecessor-version":[{"id":5492,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3560\/revisions\/5492"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=3560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=3560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=3560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}