Interface: Media
Defined in: schemas/v2/resources/media.ts:4
A file uploaded to patreon.com, usually an image.
Properties
| Property | Type | Description |
|---|---|---|
created_at | string | When the file was created |
download_url | string | The URL to download this media. Valid for 24 hours. |
file_name | string | File name. |
image_urls | object | The resized image URLs for this media. Valid for 2 weeks. |
metadata | null | object | Metadata related to the file |
mimetype | string | Mimetype of uploaded file, eg: "application/jpeg" |
owner_id | string | Ownership id (See also Media.owner_type) |
owner_relationship | string | Ownership relationship type for multi-relationship medias |
owner_type | string | Type of the resource that owns the file |
size_bytes | number | - |
state | string | - |
upload_expires_at | string | When the upload URL expires |
upload_parameters | object | All the parameters that have to be added to the upload form request |
upload_url | string | The URL to perform a POST request to in order to upload the media file |