---
title: "Queue a container lifecycle action"
method: POST
path: "/container/{ocid}/actions/{action}"
tags: ["Container"]
---

# Queue a container lifecycle action

`POST /container/{ocid}/actions/{action}`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/{ocid}/actions/{action}`
- Auth: API key in header `Authorization`

Queue a start, stop, restart, or kill action for a container

## Path parameters

- `ocid` integer, required
- `action` 'start' | 'stop' | 'restart' | 'kill', required

## Response `202`

Accepted

- GithubComAlchemillahqSylveInternalAPIResponseInternalHandlersContainerTaskResponse
  - `data` InternalHandlersContainerTaskResponse
    - `action` string
    - `ocId` integer
    - `outcome` string
    - `taskId` integer
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/:ocid/actions/:action/post.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
