Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Create images

Bulk-creates image records and returns a presigned upload url per image. Nabbit never receives the image bytes; the consumer PUTs the bytes directly to upload_url and the image becomes active.

When connect_to_sku, connect_to_slug or connect_to_variant_group is set, the filename is matched against products (slug, product number, variant number) or variant groups and the image-to-item relationship is created automatically. The image priority is parsed from a numeric or uppercase letter suffix on the filename.

POST/api/v2/{team_slug}/{app_slug}/dam/images
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
team_slugstringrequired
app_slugstringrequired
Request body
requiredapplication/json
imagesCreateImageItem[]required
min items 1 · max items 20
Show properties
Array of CreateImageItem
filenamestringrequired
content_typestringrequired
size_bytesinteger<int64>required
titlestring
altstring
copyrightstring
customobject
publicboolean
created_with_aiboolean
default: false
overwriteboolean

Replace the existing image with the same filename instead of creating a new suffixed copy. The filename must match an existing image.

default: false
folder_idUUID
parent_idUUID
connect_to_slugboolean

Match the filename against a product slug and create the image relationship. Priority can be set with a numeric suffix (slug_3) or an uppercase letter suffix A-Z (slug_A, where A=1 through Z=26).

connect_to_skuboolean

Match the filename against a product number or, when no product matches, a variant number and create the image relationship. Priority can be set with a numeric suffix (sku_3) or an uppercase letter suffix A-Z (sku_A, where A=1 through Z=26).

connect_to_variant_groupboolean

Match the filename against a variant group using the format productNumber_variantGroupSlug[_priority] and create the image relationship. Priority is numeric or an uppercase letter A-Z (A=1 through Z=26). Example: 2512301_102.jpg links product 2512301 to variant group slug 102.

Responses
201

Created (partial success possible)

dataUploadTarget[]required
Show properties
Array of UploadTarget
idUUIDrequired
pathstringrequired
upload_urlstringrequired
expires_atinteger<int64>required
constraintsUploadConstraintsrequired
Show properties
max_size_bytesinteger<int64>required
allowed_typesstring[]required
errorsImageError[]required
Show properties
Array of ImageError
idUUID | null
Show properties
Any of:
UUID
string<uuid>
null
null
filenamestring
messagestringrequired
400

Request-level failure

errorErrorBodyrequired
Show properties
messagestringrequired
detailsstring[]required
401

Request-level failure

errorErrorBodyrequired
Show properties
messagestringrequired
detailsstring[]required
403

Request-level failure

errorErrorBodyrequired
Show properties
messagestringrequired
detailsstring[]required
500

Request-level failure

errorErrorBodyrequired
Show properties
messagestringrequired
detailsstring[]required
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.enad.io/api/v2/string/string/dam/images' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "images": [
    {
      "filename": "string",
      "content_type": "string",
      "size_bytes": 0,
      "title": "string",
      "alt": "string",
      "copyright": "string",
      "custom": {
        "property1": "string",
        "property2": "string"
      },
      "public": true,
      "created_with_ai": false,
      "overwrite": false,
      "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
      "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
      "connect_to_slug": true,
      "connect_to_sku": true,
      "connect_to_variant_group": true
    }
  ]
}'
Response
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "path": "string",
      "upload_url": "string",
      "expires_at": 0,
      "constraints": {
        "max_size_bytes": 0,
        "allowed_types": [
          "string"
        ]
      }
    }
  ],
  "errors": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "filename": "string",
      "message": "string"
    }
  ]
}