Video Deletion Completion

Last updated: 2020-03-12 16:38:17
    • This document describes the callback on v3.0. For legacy callback on v2.0, please see Legacy Callback.
    • You are recommended to gradually migrate the callback to v3.0, as the documentation for callback v2.0 will no longer be updated.

    Event Name

    FileDeleted

    Event Description

    If the application is configured with event notification, after a video is deleted, the application backend can get an event notification through "normal callback" or "reliable callback". The content of the event notification is the FileDeleteTask structure.

    Samples

    Normal Callback

    If you choose the normal callback mode, the callback URL will receive an HTTP POST request from VOD, whose content is in the BODY as shown below (the fields with null value are omitted):

    {
        "EventType":"FileDeleted",
        "FileDeleteEvent":{
            "FileIdSet":[
                "24961954183381008",
                "24961954183381009",
                "24961954183381010"
            ]
        }
    }

    Reliable Callback

    If you choose the reliable callback mode, after the PullEvents API is called, an HTTP response in the following format will be received (the fields with null value are omitted).

    {
        "Response": {
            "EventSet": [
                {
                    "EventHandle": "EventHandle.N",
                    "EventType": "FileDeleted",
                    "FileDeleteEvent": {
                        "FileIdSet": [
                            "24961954183381008",
                            "24961954183381009",
                            "24961954183381010"
                        ]
                    }
                }
            ],
            "RequestId": "335bdaa3-db0e-46ce-9946-51941d9cb0f5"
        }
    }

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help