---
title: "POST /command"
method: POST
path: "/command"
tags: ["command"]
---

# POST /command

`POST /command`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- ModelCommand
  - `category` 'security' | 'system' | 'database' | 'network' | 'file' | 'developer' | 'custom'
  - `cmd` string
  - `created_at` string
  - `creator_id` integer
  - `description` string
  - `enable` boolean
  - `id` integer
  - `is_global` boolean: Global predefined command
  - `is_re` boolean
  - `name` string
  - `permissions` string[]
  - `resource_id` integer
  - `risk_level` 0 | 1 | 2 | 3
  - `tags` string[]
  - `updated_at` string
  - `updater_id` integer

## Response `200`

OK

- ControllerHttpResponse
  - `code` integer
  - `data` unknown
  - `message` string

---

[API](https://skmtc.dev/veops/apis/veops-oneterm-api.md) - [All operations](https://skmtc.dev/veops/apis/veops-oneterm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veops/apis/veops-oneterm-api/revisions/bd0569ff0157?raw)
