Skip to main content
POST
Validate constraint specifications

Authorizations

x-deeppcb-api-key
string
header
required

Your DeepPCB API key, from the Integration page in the app.

Body

multipart/form-data
constraintsFileUrl
string

Constraints source (provide exactly one of ConstraintsFileUrl or ConstraintsJsonFile): URL to the board placement constraints file with max size 100MB. Allowed extension: .json

constraintsJsonFile
file

Constraints source (provide exactly one of ConstraintsFileUrl or ConstraintsJsonFile): JSON file containing the constraints to validate. Allowed extension: .json

boardFileUrl
string

Board source (provide exactly one of BoardId, BoardFileUrl or BoardJsonFile): URL to the board JSON file to validate constraints against. Allowed extensions: .json, .deeppcb

boardJsonFile
file

Board source (provide exactly one of BoardId, BoardFileUrl or BoardJsonFile): board JSON file to validate constraints against (for mutated boards). Allowed extensions: .json, .deeppcb

boardId
string<uuid>

Board source (provide exactly one of BoardId, BoardFileUrl or BoardJsonFile): ID of an existing board to retrieve the board JSON from.

webhookUrl
string

The webhook URL to receive status, designs, and billing updates. Must be a public http or https address.

webhookToken
string

Security token for your webhook.

Callbacks

POST
{$request.body#/webhookUrl}ConstraintsChecked

Body

application/json
constraintsResponse
object | null
required

Constraints after checking

Response

200

Callback received

Response

OK

isValid
boolean

Indicates if operation is valid or not

error
string | null

Error message