Get announcement history

This method allows you to down­load his­to­ry of announce­ments.

Authorization and access

Autho­riza­tion process is described here. Each API request must also con­sist of unique Api-key obtained dur­ing appli­ca­tion reg­is­tra­tion togeth­er with client_id and client_secret.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ext/dock-scheduler-api/v1/announcement/{announcement-id}/history
  • Http Method: GET

Headers

  • Accept: application/json
  • Con­tent-type: application/json
  • Autho­riza­tion: Bear­er {access_token}
  • Api-key: {unique_ap­p_api-key}

Json response example

{
    "2023-07-12": [
        {
            "fields_changes": {
                "status": {
                    "after": "CONFIRMED",
                    "before": null
                }
            },
            "modification_date_time": "2023-07-12T11:01:01",
            "modified_by": {
                "family_name": "Kowalski",
                "given_name": "Jan",
                "trans_id": "1007386-1"
            },
            "properties_changed": [
                "status"
            ]
        },
        {
            "fields_changes": {
                "arrival_delay": {
                    "after": 0,
                    "before": null
                },
                "custom_status_order": {
                    "after": 30,
                    "before": null
                },
                "modified_at": {
                    "after": "2023-07-12T11:01:27",
                    "before": null
                },
                "stage": {
                    "after": "VEHICLE_ARRIVED",
                    "before": null
                },
                "status": {
                    "after": "IN_PROGRESS",
                    "before": "CONFIRMED"
                }
            },
            "modification_date_time": "2023-07-12T11:01:27",
            "modified_by": {
                "family_name": "Wankiewicz",
                "given_name": "Paweł",
                "trans_id": "1007386-1"
            },
            "properties_changed": [
                "stage",
                "modified_at",
                "arrival_delay",
                "custom_status_order",
                "status"
            ]
        },
        {
            "fields_changes": {
                "custom_status_order": {
                    "after": 40,
                    "before": null
                },
                "modified_at": {
                    "after": "2023-07-12T11:01:30",
                    "before": null
                },
                "stage": {
                    "after": "STARTED",
                    "before": "VEHICLE_ARRIVED"
                }
            },
            "modification_date_time": "2023-07-12T11:01:30",
            "modified_by": {
                "family_name": "Wankiewicz",
                "given_name": "Paweł",
                "trans_id": "1007386-1"
            },
            "properties_changed": [
                "stage",
                "modified_at",
                "custom_status_order"
            ]
        }
    ]
}