Media
Delete and query Media in Twilio.
Table-Specific Information
SELECT
The driver uses the Twilio API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client-side within the driver.
Note: MessageSid is required in the WHERE clause.
| Column | Supported Operators |
| MessageSid | = |
| Sid | = |
| DateCreated | =, >, >=, <, <= |
For example, the following queries are processed server-side:
SELECT * FROM Media WHERE MessageSid = 'SM53a7aeeed5ac474ea'
SELECT * FROM Media WHERE Sid = 'MS123456789' AND MessageSid = 'SM53a7aeeed5ac474ea'
SELECT * FROM Media WHERE Sid = 'MS123456789' AND MessageSid = 'SM53a7aeeed5ac474ea' AND DateCreated > '2015-10-10'
INSERT
Twilio does not allow Media to be added.
UPDATE
Twilio does not allow Media to be updated.
DELETE
DELETE FROM Media WHERE MessageSid = 'MM319a82ae6d7411407ef7dc7d78eb2081' AND Sid = 'MS123456789'
Columns
| Name | Type | ReadOnly | References | Description |
| Sid [KEY] | String | False |
The Id of the media. | |
| AccountSid | String | False |
The Id of the account associated with the media. | |
| ParentSid | String | False |
The Id of the entity that created the media. | |
| ContentType | String | False |
The MIME type of the media. | |
| DateCreated | Datetime | False |
The creation date of the media. | |
| DateUpdated | Datetime | False |
The modification date of the media. | |
| Uri | String | False |
The URL of the media. | |
| MessageSid [KEY] | String | False |
The message Id of the media. |