メインコンテンツまでスキップ

Download file

POST 

/bv/cms/v1/library/files/:id:download

Provides the download link and its expiration time for a specified file. Ensure the id parameter is provided to identify the target file.


Required field(s):

  • id

Request

Path Parameters

    id stringrequired

    Required. The unique id of the file.

Header Parameters

    x-bv-org-id stringrequired

    To invoke this API using api_token, you need to set the x-bv-org-id header to specify the organization for which you want to perform the action.

Body

required
    content_disposition Optional. The content disposition of the download uri. Default: CONTENT_DISPOSITION_ATTACHMENT (string)

    Possible values: [CONTENT_DISPOSITION_ATTACHMENT, CONTENT_DISPOSITION_INLINE]

Responses

A successful response.

Schema
    id string

    The unique identifier of the file.

    download_uri string

    The URI that can be used to download the file.

    download_filename string

    The original name that of the file.

    expiration_time date-time

    Indicating until when the download uri will be valid

Loading...