Upload a screenshot
Adds a screenshot to the library from a multipart form and runs every stage but kit on it. An image the library already has returns that screen with `created` false. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.
/v1/ingestAdds a screenshot to the library from a multipart form and runs every stage but kit on it. An image the library already has returns that screen with created false. 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.
binaryResponse Body
application/json
application/json
application/json
curl -X POST "https://api.conjure.design/v1/ingest" \
-F file="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"
}
}
Run the stages of screens POST
Brings the stages of the given screens (default every screen) up to date and returns what ran for each. `stages` defaults to all but kit, and `force` reruns stages that are current. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.
Set the brand of a screen PUT
Sets the product the screen shows as a slug, or clears it with null, and returns the screen. Screens of one brand share the best kit of any of them. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.