---
title: "Create execution input"
method: POST
path: "/execution/inputs"
tags: ["ExecutionInput"]
---

# Create execution input

`POST /execution/inputs`

## Request body

- ExecutionInput — Describes an external input to an execution, either a test run or a training/replay session
  - `id` string — Unique ID for this input
  - `context_id` string — The ID of the execution context, either a test run ID or a training session ID
  - `workspace_id` string, required — The ID of the workspace associated with this event
  - `created_time` integer — Time at which the input was inserted via the API
  - `created_by_id` string — The ID of the client that created this execution input
  - `received_time` integer — Time at which the input was received (email: arrival time at receiving mail server)
  - `sent_time` integer — Time at which the input was created by user (email: sent by sender)
  - `input_type` 'email' — The type of input
  - `input_artifacts` object — Map of input artifact type to artifact URI
  - `input_properties` object — Key-value pairs used to store additional properties relevant to this specific input type

## Response `201`

The execution input that was created

- ExecutionInput — Describes an external input to an execution, either a test run or a training/replay session
  - `id` string — Unique ID for this input
  - `context_id` string — The ID of the execution context, either a test run ID or a training session ID
  - `workspace_id` string, required — The ID of the workspace associated with this event
  - `created_time` integer — Time at which the input was inserted via the API
  - `created_by_id` string — The ID of the client that created this execution input
  - `received_time` integer — Time at which the input was received (email: arrival time at receiving mail server)
  - `sent_time` integer — Time at which the input was created by user (email: sent by sender)
  - `input_type` 'email' — The type of input
  - `input_artifacts` object — Map of input artifact type to artifact URI
  - `input_properties` object — Key-value pairs used to store additional properties relevant to this specific input type

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
