---
title: "Changes to Execute a code snippet."
method: POST
path: "/v1/machines/{id}/code"
---

# Changes to Execute a code snippet.

`POST /v1/machines/{id}/code`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 2 revisions.

- **2026-10-16** `bc31fc04a568`: 10 info

## Changes

- **2026-10-16** `bc31fc04a568`: 10 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - added the new optional request property `user`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the non-success response with the status `429`
  - added the non-success response with the status `500`
  - added the optional property `stderrB64` to the response with the `200` status
  - added the optional property `stdoutB64` to the response with the `200` status
  - added the optional property `user` to the response with the `200` status

---

[Operation](https://skmtc.dev/smolmachines/apis/smolfleet-api/docs/v1/machines/:id/code/post.md) - [API](https://skmtc.dev/smolmachines/apis/smolfleet-api.md) - [Page](https://skmtc.dev/smolmachines/apis/smolfleet-api/changes/v1/machines/:id/code/post)
