{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/imagestep-dev/json-schema/imagestep-dev-finish-upload-request-schema.json",
  "title": "FinishUploadRequest",
  "description": "One staged object to turn into an asset",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/imagestep-dev-openapi.json#/components/schemas/FinishUploadRequest",
  "type": "object",
  "properties": {
    "objectId": {
      "type": "string",
      "description": "The objectId stage-upload returned for this file"
    },
    "name": {
      "type": "string",
      "description": "The file's name; its extension decides the type, and the asset is named after its stem, cut to 200 characters"
    },
    "collection": {
      "type": "string",
      "description": "Optional collection to put the asset in: an opaque name, no hierarchy, at most 200 characters; names starting with job: are reserved"
    },
    "tags": {
      "type": "array",
      "description": "Optional tags for the new asset: your own labels, matched exactly by GET /api/v1/assets?tag= (at most 50, each at most 100 characters)",
      "items": {
        "type": "string"
      }
    },
    "retentionDays": {
      "type": "integer",
      "format": "int32",
      "description": "Keep the asset this many days instead of your plan's retention — shorter only; more is kept for the plan's time (imagestep#591). Its `expiresAt` says what was stamped.",
      "minimum": 1
    }
  },
  "required": [
    "name",
    "objectId"
  ]
}