Skip to content

Check the layout of your draft's diagram

POST
/api/drafts/{id}/layout-check
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.

id
required
string format: uuid

OK

Media typeapplication/json
object
clear
required
boolean
faults
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
crossings
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
problems
required
Array<object>
object
tab
required
string
label
required
string
count
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
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
}

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"
}