Skip to main content

Create Summary

POST 

/bv/cms/v1/summary

This API will create summary

Request

Body

required
    source_id Required. The unique id of the source to generate summary. If type is `SUMMARY_SOURCE_TYPE_LIBRARY`, it should be library_id If type is `SUMMARY_SOURCE_TYPE_VOD`, it should be vod_id (string)required
    type stringrequired

    Possible values: [SUMMARY_SOURCE_TYPE_LIBRARY, SUMMARY_SOURCE_TYPE_VOD]

    Required. The source type to generate summary .

    summary objectrequired
    content string

    Optional. The content of summary, one of content or ai_generate_summary_setting should be set.

    ai_generate_summary_setting object

    Optional. The setting of AI generate summary, one of content or ai_generate_summary_setting should be set.

    library_id string

    Optional. The unique id of the library, one of library_id or subtitle_id should be set.

    length int32

    Optional. the length of summary, it is required when the library_id is set.

    format string

    Possible values: [SUMMARY_FORMAT_PARAGRAPH, SUMMARY_FORMAT_BULLET_POINTS]

    Optional. The format of summary, it is required when the library_id is set.

    subtitle_id string

    Optional. The unique id of the subtitle, one of library_id or subtitle_id should be set.

    content_type string

    Possible values: [SUMMARY_CONTENT_TYPE_GENERAL, SUMMARY_CONTENT_TYPE_NEWS, SUMMARY_CONTENT_TYPE_MEETING, SUMMARY_CONTENT_TYPE_ECOMMERCE]

    Optional. The content type of the source. It is used to determine the appropriate summary generation strategy, and it only supports the summary of subtitle.

    delete_summary boolean

    Optional. If set to true, it will delete the summary.

Responses

A successful response.

Schema

    object

Loading...