Rivier/ Reference/ hosting

Hosting coder look create

post/hosting/coder/projects/{id}/looks

Ask Praecise Cloud to look at the conversation's preview in a browser on its build machine: up to five paths at 390, 820 and 1280 pixels, the first screen and the whole page, in light (and dark, and right to left, when asked), with an accessibility scan. Answers at once with the look's id; a look ends within 90 seconds. Asked in the signed-in person's name; when Praecise Cloud has no looks yet the answer says so and nothing changes.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:write
Sdk
hosting.coderLook.create
Cli
hosting coder look create

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • pathslist of string
    Up to five paths of the preview to look at; the home page when left out
  • darkboolean
    Also look in the dark colour scheme
  • rtlboolean
    Also look with the page set right to left

Responses

  • 202application/json
    Success
    • lookobjectrequired
      • idstringrequired
      • statestringrequired
        One of: running, done, failed.
      • errorstring
      • previewstringrequired
      • bundlestringrequired
      • pageslist of object
        Each page looked at: its pictures (signed links good for an hour), console errors, failed requests and accessibility findings, as Praecise Cloud gives them
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown