---
title: "Changes to Create or wait for a script workflow agent task step"
method: POST
path: "/api/internal/script-runs/{runId}/agent-task"
---

# Changes to Create or wait for a script workflow agent task step

`POST /api/internal/script-runs/{runId}/agent-task`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 105 revisions.

- **2026-08-31** `6f2d2fbe2599` — 1 warning
- **2026-08-07** `06cac6a7c5bc` — 3 info
- **2026-07-28** `cf533d6b49b0` — 1 info

## Changes

- **2026-08-31** `6f2d2fbe2599` — 1 warning
  - added the new `draft` enum value to the `status` response property for the response status `202`
- **2026-08-07** `06cac6a7c5bc` — 3 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `202`
  - added the media type `application/json` for the response with the status `404`
- **2026-07-28** `cf533d6b49b0` — 1 info
  - the `agentId` request property format was generalized from `uuid` to no format

---

[Operation](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/docs/api/internal/script-runs/:runId/agent-task/post.md) · [API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [Page](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/internal/script-runs/:runId/agent-task/post)
