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