Skip to main content

Update stored media


Updates a stored media file.


Path Parameters

    media_name stringrequired

    Uniquely identifies a media resource.



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.


200: A response describing a media resource

default: Unexpected error

Request samples

curl -L -X PUT '' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"media_url": "",
"ttl_secs": 86400

Response samples

"data": {
"media_name": "f5586561-8ff0-4291-a0ac-84fe544797bd",
"expires_at": "2020-01-23T18:10:02.574Z",
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z",
"content_type": "application/xml"