Sorry, no results found for "".
Depending on the attributes that you pass, you can use this endpoint to:
author
, notes
, copyright
, default_field_metadata
, etc.;basename
attribute;path
attribute;Just like POST /uploads
endpoint, an asyncronous job ID might be returned instead of the regular response. See the Create a new upload section for more details.
We strongly recommend to use our JS or Ruby client to upload new assets, as they provide helper methods that take care of all the details for you.
Upload path
"/45/1496845848-digital-cats.jpg"
Upload basename
"digital-cats"
Copyright
"2020 DatoCMS"
Author
"Mark Smith"
Notes
"Nyan the cat"
Tags
["cats"]
For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
{
en: {
title: "this is the default title",
alt: "this is the default alternate text",
custom_data: { foo: "bar" },
focal_point: { x: 0.5, y: 0.5 },
},
}
The entity (account/collaborator/access token) who created the asset
Upload collection to which the asset belongs
Returns a resource object of type upload