---
title: "Create a new breakpoint definition for the current instance"
method: POST
path: "/current-instance/{scopeId}/breakpoint-definitions"
tags: ["Inspect"]
---

# Create a new breakpoint definition for the current instance

`POST /current-instance/{scopeId}/breakpoint-definitions`

## Request

- Base URL: `http://localhost:8090/inspect-api`
- URL: `http://localhost:8090/inspect-api/current-instance/{scopeId}/breakpoint-definitions`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/docs/current-instance/:scopeId/breakpoint-definitions/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `scopeId` string, required

## Request body

- CreateBreakpointDefinitionDTO
  - `activityId` string
  - `scopeDefinitionId` string
  - `scopeDefinitionKey` string
  - `scopeType` string
  - `actionId` string

## Response `200`

Indicates the breakpoint definitions is created and returned.

- BreakpointDefinitionDTO
  - `scopeDefinitionId` string
  - `scopeType` string
  - `activityId` string
  - `type` 'INSTANCE_INIT' | 'BEFORE' | 'AFTER'
  - `dynamic` boolean

## Other responses

- `403`: Indicates the user does not have the rights to create a breakpoint definition.
- `404`: Indicates the requested current instance was not found.
- `409`: Indicates there was already a breakpoint created for the same activity.

---

[API](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/revisions/5c72eb80b6c5?raw)
