Check the layout of your draft's diagram
POST
/api/drafts/{id}/layout-check
const url = 'https://forge.example.com/api/drafts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/layout-check';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/drafts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/layout-check \ --header 'Authorization: Bearer <token>'Check Layout: the engine builds the valid draft’s page and measures its diagrams. clear is true when no diagram has a fault; faults and crossings count them; problems lists each kind of fault on each diagram with the names of the model’s elements and connections involved. No AI is used; where the assistant is on, line is also stored in the draft’s conversation and noted is true. Answers 409 while the draft is empty, not valid, or a turn of the assistant is running on it, and 503 when the instance cannot measure a page.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”OK
Media typeapplication/json
object
clear
required
boolean
faults
required
integer | string format: int32
crossings
required
integer | string format: int32
problems
required
Array<object>
object
tab
required
string
label
required
string
count
required
integer | string format: int32
names
required
Array<string>
line
required
string
noted
required
boolean
Example generated
{ "clear": true, "faults": 1, "crossings": 1, "problems": [ { "tab": "example", "label": "example", "count": 1, "names": [ "example" ] } ], "line": "example", "noted": true}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}