Conjure

Replace the labels of a screen

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.

PUT/v1/screens/{id}/labels

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.

Path Parameters

id*string
Match^scr_

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

product*string|null
domain*string
screenType*string

Value in

  • "home"
  • "analytics"
  • "queue"
  • "list"
  • "record-detail"
  • "billing"
  • "settings"
  • "chat"
  • "inbox"
  • "calendar"
  • "editor"
  • "onboarding"
  • "form"
  • "landing"
  • "pricing"
  • "portfolio"
  • "storefront"
  • "editorial"
  • "auth"
  • "other"
theme*string

Value in

  • "dark"
  • "light"
  • "mixed"
density*string

Value in

  • "compact"
  • "regular"
  • "airy"
summary*string
layout*string
patterns*array<string>
components*array<string>
typography*string
aiFeatures*string|null
goodFor*array<string>
notGoodFor*array<string>
slopTells*array<>
regions*array<>
colorRoles*array<>

Response Body

application/json

application/json

application/json

curl -X PUT "https://api.conjure.design/v1/screens/string/labels" \
  -H "Content-Type: application/json" \
  -d '{
    "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"
      }
    ]
  }'
{
  "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"
  }
}