Conjure

Import a screenshot with its labels

Adds a screenshot from a catalog with the labels of its `entry`, then runs every stage but kit. An import never replaces a label from the model or the curator. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.

POST/v1/ingest/import

Adds a screenshot from a catalog with the labels of its entry, then runs every stage but kit. An import never replaces a label from the model or the curator. Needs the admin token (Authorization: Bearer <token>) or the curator's session.

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

file*file
Formatbinary
entry*string

Response Body

application/json

application/json

application/json

curl -X POST "https://api.conjure.design/v1/ingest/import" \
  -F file="string" \
  -F entry="string"
{
  "screen": {
    "id": "string",
    "sha256": "string",
    "mediaType": "image/png",
    "width": -9007199254740991,
    "height": -9007199254740991,
    "byteSize": -9007199254740991,
    "scale": {
      "value": 0,
      "basis": "confirmed"
    },
    "source": {
      "_tag": "Upload",
      "filename": "string"
    },
    "brand": "string",
    "createdAt": "string",
    "status": {
      "renditions": {
        "_tag": "Done"
      },
      "measure": {
        "_tag": "Done"
      },
      "label": {
        "_tag": "Done"
      },
      "kit": {
        "_tag": "Done"
      }
    },
    "renditions": [
      {
        "kind": "thumb",
        "sha256": "string",
        "mediaType": "image/jpeg",
        "width": -9007199254740991,
        "height": -9007199254740991
      }
    ],
    "facets": {
      "screenType": "home",
      "theme": "dark",
      "density": "compact"
    }
  },
  "created": true,
  "ran": [
    "renditions"
  ],
  "estimatedScale": 0
}
{
  "error": {
    "code": "bad_request",
    "message": "string",
    "requestId": "string"
  }
}
{
  "error": {
    "code": "bad_request",
    "message": "string",
    "requestId": "string"
  }
}