Skip to main content

Update stored media

PUT 

/media/:media_name

Updates a stored media file.

Request

Path Parameters

    media_name stringrequired

    Uniquely identifies a media resource.

Body

required

Update media request

    media_url string

    The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB.

    ttl_secs integer

    The number of seconds after which the media resource will be deleted, defaults to 2 days. The maximum allowed vale is 630720000, which translates to 20 years.

Responses

200: A response describing a media resource

Schema

    data

    object

    media_name string

    Uniquely identifies a media resource.

    expires_at string

    ISO 8601 formatted date of when the media resource will expire and be deleted.

    created_at string

    ISO 8601 formatted date of when the media resource was created

    updated_at string

    ISO 8601 formatted date of when the media resource was last updated

    content_type string

    Content type of the file

default: Unexpected error

Schema

    errors

    Error[]

  • Array [

  • code integerrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta object
  • ]

Loading...