Files
Image uploads (favicon, logo, thumbnails).
Upload an image
POST
/assetsdomains:writefile field (PNG, JPG, WebP, SVG or ICO). Returns the public URL to use for favicon, logo and thumbnails.
Body
filestringrequired
Request
cURL
curl -X POST "https://api.tenanci.com/v2/assets" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-F "file=@logo.png"Response 201
{
"id": "ast_3n8q",
"url": "https://assets.tenanci.com/org_5t1v/3n8q.png",
"contentType": "image/png",
"size": 18342
}
