Skip to main content
PUT
/
images
/
{key}
cURL (upload)
curl -X PUT https://api.neuraldraft.io/v1/images/hero.background \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -F "file=@hero.jpg"
{
  "data": {
    "key": "hero.background",
    "url": "https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/hero-background-89hf.jpg",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "width": 2048,
    "height": 1152,
    "bytes": 482911,
    "mime_type": "image/jpeg",
    "generated": true
  }
}

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Path Parameters

key
string
required

Image key (any URL-safe identifier).

Example:

"hero.background"

Body

file
file
required

Image file (jpg/jpeg/png/webp/gif/svg). Max 10MB.

Response

Image replaced synchronously (upload or url mode).

data
object