> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wenium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Power action (start/stop/reboot/rebuild)



## OpenAPI

````yaml /openapi.json post /servers/{server}/action
openapi: 3.1.0
info:
  title: Wenium Cloud API
  version: 2.0.0
  description: >-
    Complete API documentation for the Wenium Cloud platform.


    **Authentication.** All authenticated endpoints require a personal access
    token. Send the token in the `Authorization: Bearer <token>` header.
servers:
  - url: https://console.wenium.com/api
    description: Production API Server
security:
  - bearerAuth: []
paths:
  /servers/{server}/action:
    post:
      summary: Power action (start/stop/reboot/rebuild)
      parameters:
        - name: server
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - action
              properties:
                action:
                  type: string
                  enum:
                    - start
                    - stop
                    - reboot
                    - rebuild
                  example: start
                os_id:
                  type: string
                  description: Required if action is rebuild. The OS template ID.
                  example: ubuntu-22.04
                hostname:
                  type: string
                  description: Optional hostname for the rebuild.
                  example: rebuilt-server
                password:
                  type: string
                  description: Optional root password for the rebuild.
                  example: SuperSecretPass123
                ssh_keys:
                  type: array
                  items:
                    type: integer
                  description: Optional array of SSH key IDs.
                  example:
                    - 1
                    - 2
                firewall_group_id:
                  type: integer
                  description: Optional firewall group ID to assign.
                  example: 5
      responses:
        '200':
          description: Action results
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Power action start completed successfully.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum personal access token

````