Skip to main content
PATCH
Stop processing a board

Authorizations

x-deeppcb-api-key
string
header
required

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

Path Parameters

boardId
string<uuid>
required

Callbacks

POST
https://your-webhook-url.com/webhooksBoardRunPaused

Body

application/json
jobType
string | null
required

JobType can be routing or placement

numBatches
integer<int32>
required

The total number of batches generated and expected to be sent to the webhook server.

reasonCode
enum<string>
required

Reason code for the routing paused.
Possible values:

  • EMPTY:
  • BOARD_START_FAILED_BY_RESOURCES_UNAVAILABLE: Board failed to start because of no available resources.
  • BOARD_CAN_NOT_BE_RESUMED: Board can not be resumed.
  • BOARD_STOPPED_BY_USER_BEFORE_TIMEOUT: Board was stopped by the user before timeout
  • BOARD_STOPPED_BY_TIMEOUT_WITHOUT_REVISIONS: Board was stopped by timeout waiting for revisions.
  • BOARD_START_FAILED_BY_EXPIRED_TTL: Board failed to start before time to live.
  • BOARD_FAILED_BY_INTERNAL_ERROR: Board failed because of an internal error.
  • BOARD_STOP_FAILED_BY_JOB_NOT_FOUND: Board stop failed because no active job was found.
  • BOARD_STOPPED_BY_DEPLOYMENT: Board run stopped due to a temporary service interruption and can be resumed shortly
  • BOARD_CONVERGED_WITHOUT_REVISIONS: Board stalled without producing any revisions.
  • BOARD_STOPPED_BY_TIMEOUT_WITH_INACTIVE_JOB: Board run was stopped by timeout and the processing engine was no longer available.
  • BOARD_START_FAILED_BY_INVALID_MODEL: Board failed to start because the requested routing model is not allowed for this job.
  • BOARD_START_FAILED_BY_INVALID_NUM_WORKERS: Board failed to start because of an unsupported number of workers.

Available options:
EMPTY,
BOARD_START_FAILED_BY_RESOURCES_UNAVAILABLE,
BOARD_CAN_NOT_BE_RESUMED,
BOARD_STOPPED_BY_USER_BEFORE_TIMEOUT,
BOARD_STOPPED_BY_TIMEOUT_WITHOUT_REVISIONS,
BOARD_START_FAILED_BY_EXPIRED_TTL,
BOARD_FAILED_BY_INTERNAL_ERROR,
BOARD_STOP_FAILED_BY_JOB_NOT_FOUND,
BOARD_STOPPED_BY_DEPLOYMENT,
BOARD_CONVERGED_WITHOUT_REVISIONS,
BOARD_STOPPED_BY_TIMEOUT_WITH_INACTIVE_JOB,
BOARD_START_FAILED_BY_INVALID_MODEL,
BOARD_START_FAILED_BY_INVALID_NUM_WORKERS
reason
string | null
required

Reason for the routing paused.

creditsBurned
number<double>
required
deprecated

The number of AI credits burned by the time this run has been generated (the remaining AI credit from the initial deduction will be refunded).

minutesBurned
number<double>
required

The number of minutes burned by the time this revision has been generated.

pausedOn
string<date-time>
required

Timestamp indicating when routing paused.

numRevisionsDroppedOnStop
integer<int32>

How many revisions below the engine's reported total this run was missing when it finalized. 0 when the stop never entered the grace window. A revision can still arrive afterwards, so this is a reading at that instant rather than a permanent loss count.

Response

200

Callback received

POST
https://your-webhook-url.com/webhooksBoardRunStopFailed

Body

application/json
jobType
string | null
required

JobType can be routing or placement

reasonCode
enum<string>
required

Reason code for the routing failure.
Possible values:

  • EMPTY:
  • BOARD_START_FAILED_BY_RESOURCES_UNAVAILABLE: Board failed to start because of no available resources.
  • BOARD_CAN_NOT_BE_RESUMED: Board can not be resumed.
  • BOARD_STOPPED_BY_USER_BEFORE_TIMEOUT: Board was stopped by the user before timeout
  • BOARD_STOPPED_BY_TIMEOUT_WITHOUT_REVISIONS: Board was stopped by timeout waiting for revisions.
  • BOARD_START_FAILED_BY_EXPIRED_TTL: Board failed to start before time to live.
  • BOARD_FAILED_BY_INTERNAL_ERROR: Board failed because of an internal error.
  • BOARD_STOP_FAILED_BY_JOB_NOT_FOUND: Board stop failed because no active job was found.
  • BOARD_STOPPED_BY_DEPLOYMENT: Board run stopped due to a temporary service interruption and can be resumed shortly
  • BOARD_CONVERGED_WITHOUT_REVISIONS: Board stalled without producing any revisions.
  • BOARD_STOPPED_BY_TIMEOUT_WITH_INACTIVE_JOB: Board run was stopped by timeout and the processing engine was no longer available.
  • BOARD_START_FAILED_BY_INVALID_MODEL: Board failed to start because the requested routing model is not allowed for this job.
  • BOARD_START_FAILED_BY_INVALID_NUM_WORKERS: Board failed to start because of an unsupported number of workers.

Available options:
EMPTY,
BOARD_START_FAILED_BY_RESOURCES_UNAVAILABLE,
BOARD_CAN_NOT_BE_RESUMED,
BOARD_STOPPED_BY_USER_BEFORE_TIMEOUT,
BOARD_STOPPED_BY_TIMEOUT_WITHOUT_REVISIONS,
BOARD_START_FAILED_BY_EXPIRED_TTL,
BOARD_FAILED_BY_INTERNAL_ERROR,
BOARD_STOP_FAILED_BY_JOB_NOT_FOUND,
BOARD_STOPPED_BY_DEPLOYMENT,
BOARD_CONVERGED_WITHOUT_REVISIONS,
BOARD_STOPPED_BY_TIMEOUT_WITH_INACTIVE_JOB,
BOARD_START_FAILED_BY_INVALID_MODEL,
BOARD_START_FAILED_BY_INVALID_NUM_WORKERS
reason
string | null
required

Reason for the routing failure.

failedOn
string<date-time>
required

Timestamp indicating when routing failed.

Response

200

Callback received

POST
https://your-webhook-url.com/webhooksUserCreditsRefunded

Body

application/json
userBalanceChanged
object | null
required

User balance change details

Response

200

Callback received

Response

Accepted