{- "data": [
- {
- "content_type": "application/xml",
- "created_at": "2019-01-23T18:10:02.574Z",
- "expires_at": "2020-01-23T18:10:02.574Z",
- "media_name": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Upload media file to Telnyx so it can be used with other Telnyx services
Upload media request
A response describing a media resource
{- "media_name": "my-file",
- "ttl_secs": 86400
}
{- "data": {
- "content_type": "application/xml",
- "created_at": "2019-01-23T18:10:02.574Z",
- "expires_at": "2020-01-23T18:10:02.574Z",
- "media_name": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
{- "errors": [
- {
- "code": "string",
- "detail": "string",
- "meta": { },
- "source": {
- "parameter": "string",
- "pointer": "/json/pointer"
}, - "title": "string"
}
]
}
Returns the information about a stored media file.
A response describing a media resource
object (MediaResource) | |||||||||||
|
{- "data": {
- "content_type": "application/xml",
- "created_at": "2019-01-23T18:10:02.574Z",
- "expires_at": "2020-01-23T18:10:02.574Z",
- "media_name": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
Updates a stored media file.
Update media request
A response describing a media resource
object (MediaResource) | |||||||||||
|
{- "ttl_secs": 86400
}
{- "data": {
- "content_type": "application/xml",
- "created_at": "2019-01-23T18:10:02.574Z",
- "expires_at": "2020-01-23T18:10:02.574Z",
- "media_name": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
{- "errors": [
- {
- "code": "string",
- "detail": "string",
- "meta": { },
- "source": {
- "parameter": "string",
- "pointer": "/json/pointer"
}, - "title": "string"
}
]
}