---
title: "batch actions create"
method: POST
path: "/api/v1/systems/{system_id}/actions"
tags: ["model"]
---

# batch actions create

`POST /api/v1/systems/{system_id}/actions`

batch create actions

## Path parameters

- `system_id` string, required

## Request body

- HandlerActionSerializer[]
  - `auth_type` 'rbac' | 'abac'
  - `description` string
  - `description_en` string
  - `hidden` boolean
  - `id` string, required
  - `name` string, required
  - `name_en` string, required
  - `related_actions` string[]
  - `related_environments` HandlerRelatedEnvironment[]
    - `type` 'period_daily' — NOTE: currently only support period_daily, will support current_timestamp later and no operators now! only one field, but should be a struct! keep extensible in the future
  - `related_resource_types` HandlerRelatedResourceType[]
    - `id` string, required
    - `name_alias` string
    - `name_alias_en` string
    - `related_instance_selections` HandlerReferenceInstanceSelection[]
      - `id` string, required
      - `ignore_iam_path` boolean
      - `system_id` string, required
    - `selection_mode` 'all' | 'instance' | 'attribute' — 实例选择方式/范围: ["all", "instance", "attribute"]
    - `system_id` string, required
  - `sensitivity` integer
  - `type` 'create' | 'edit' | 'view' | 'delete' | 'list' | 'manage' | 'execute' | 'debug' | 'use'
  - `version` integer

## Response `200`

OK

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

---

[API](https://skmtc.net/tencentblueking/apis/iam-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/iam-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/iam-api/versions/f3a5fe2fe9c6/schema)
