Attach the declared styles of a screen
Stores the declared spacing, type and radii that research/capture/probe.js read from the page the screen was captured from, and returns the screen. Their viewport width gives the scale unless one was confirmed. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.
/v1/screens/{id}/domStores the declared spacing, type and radii that research/capture/probe.js read from the page the screen was captured from, and returns the screen. Their viewport width gives the scale unless one was confirmed. Needs the admin token (Authorization: Bearer <token>) or the curator's session.
Path Parameters
^scr_Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
-9007199254740991 <= value <= 9007199254740991Response Body
application/json
application/json
application/json
curl -X PUT "https://api.conjure.design/v1/screens/string/dom" \
-H "Content-Type: application/json" \
-d '{
"provenance": {
"source": "dom",
"method": "string",
"url": "string"
},
"viewport": {
"width": -9007199254740991,
"height": -9007199254740991
},
"elements": -9007199254740991,
"spacing": [
{
"px": 0,
"count": -9007199254740991
}
],
"type": [
{
"sizePx": 0,
"lineHeightPx": 0,
"count": -9007199254740991
}
],
"radii": [
{
"px": 0,
"count": -9007199254740991
}
]
}'
{
"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"
},
"measures": {
"provenance": {
"source": "pixel",
"method": "string"
},
"scale": {
"value": 0,
"basis": "confirmed"
},
"lines": -9007199254740991,
"textSize": {
"emPx": 0,
"estimatedScale": 0
},
"rhythm": {
"pitchCount": -9007199254740991,
"distinctPitches": -9007199254740991,
"top5Share": 0,
"pitches": [
{
"px": -9007199254740991,
"count": -9007199254740991
}
]
},
"type": {
"bodyPx": -9007199254740991,
"largestPx": -9007199254740991,
"largestToBody": 0,
"sizes": [
{
"px": -9007199254740991,
"count": -9007199254740991
}
]
},
"palette": [
{
"hex": "string",
"share": 0
}
]
},
"label": {
"_tag": "Labelled",
"source": {
"_tag": "Model",
"provider": "string",
"model": "string",
"promptVersion": "string"
},
"labels": {
"product": "string",
"domain": "string",
"screenType": "home",
"theme": "dark",
"density": "compact",
"summary": "string",
"layout": "string",
"patterns": [
"string"
],
"components": [
"string"
],
"typography": "string",
"aiFeatures": "string",
"goodFor": [
"string"
],
"notGoodFor": [
"string"
],
"slopTells": [
"purple-indigo-gradient"
],
"regions": [
{
"kind": "nav",
"description": "string",
"bounds": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
}
],
"colorRoles": [
{
"role": "ground",
"hex": "string",
"note": "string"
}
]
}
},
"system": {
"summary": {
"grid": "8px",
"onGrid": {
"px2": 0,
"px4": 0,
"px8": 0
},
"lineHeightsOn4": 0,
"typePairs": [
{
"sizePx": 0,
"lineHeightPx": 0,
"count": -9007199254740991
}
],
"radius": 0,
"rhythm": "string"
},
"facts": {
"provenance": {
"source": "dom",
"method": "string",
"url": "string"
},
"viewport": {
"width": -9007199254740991,
"height": -9007199254740991
},
"elements": -9007199254740991,
"spacing": [
{
"px": 0,
"count": -9007199254740991
}
],
"type": [
{
"sizePx": 0,
"lineHeightPx": 0,
"count": -9007199254740991
}
],
"radii": [
{
"px": 0,
"count": -9007199254740991
}
]
}
}
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
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.
Replace the labels of a screen PUT
Replaces the screen's label with the curator's and returns the screen. A curator label is pinned: only a forced relabel through POST /v1/ingest/process replaces it. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.