---
title: "Add an action to a test model"
method: POST
path: "/inflight-test-models/{inflightTestModelId}/action"
tags: ["Inspect"]
---

# Add an action to a test model

`POST /inflight-test-models/{inflightTestModelId}/action`

## Request

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

## Path parameters

- `inflightTestModelId` string, required

## Query parameters

- `activityId` string, required
- `executionId` string

## Request body

- TestActionDTO
  - `id` string
  - `type` string
  - `name` string
  - `transactionBoundary` string
  - `valueType` string
  - `value` JsonNode
    - `string` boolean
    - `valueNode` boolean
    - `missingNode` boolean
    - `short` boolean
    - `double` boolean
    - `bigDecimal` boolean
    - `bigInteger` boolean
    - `textual` boolean
    - `boolean` boolean
    - `container` boolean
    - `object` boolean
    - `binary` boolean
    - `number` boolean
    - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
    - `long` boolean
    - `pojo` boolean
    - `int` boolean
    - `integralNumber` boolean
    - `floatingPointNumber` boolean
    - `array` boolean
    - `empty` boolean
    - boolean
    - `float` boolean
    - `embeddedValue` boolean
  - `contextValues` JsonNode
    - `string` boolean
    - `valueNode` boolean
    - `missingNode` boolean
    - `short` boolean
    - `double` boolean
    - `bigDecimal` boolean
    - `bigInteger` boolean
    - `textual` boolean
    - `boolean` boolean
    - `container` boolean
    - `object` boolean
    - `binary` boolean
    - `number` boolean
    - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
    - `long` boolean
    - `pojo` boolean
    - `int` boolean
    - `integralNumber` boolean
    - `floatingPointNumber` boolean
    - `array` boolean
    - `empty` boolean
    - boolean
    - `float` boolean
    - `embeddedValue` boolean
  - `actionCounter` integer
  - `ignoreActionCounter` boolean
  - `editable` boolean
  - `deletable` boolean

## Response `200`

OK

---

[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)
