Assets V2
Create Asset
Creates a new asset or updates an existing one with the same key. Requires assets:write scope.
post/v2/assets
Request body
project_idstring
ID of the project to create the asset in
application_idstring required
ID of the application
urlstring required
CDN URL of the asset
keystring required
Unique key for the asset within the project
namestring required
Display name of the asset
mime_typestring
MIME type of the asset
file_sizenumber
File size in bytes
widthnumber
Width in pixels
heightnumber
Height in pixels
Response
Success
idstring required
Unique identifier for the asset
object'asset' required
Object type, always asset
project_idstring nullable required
a string to be decoded into a number
keystring required
Unique key for this asset within the project
namestring required
Display name of the asset
urlstring nullable required
CDN URL of the asset
mime_typestring nullable required
MIME type of the asset (e.g. image/webp)
file_sizenumber nullable required
File size in bytes
widthnumber nullable required
Width in pixels
heightnumber nullable required
Height in pixels
created_atstring required
ISO 8601 timestamp of when the asset was created
updated_atstring required
ISO 8601 timestamp of when the asset was last updated