---
title: "POST /authorization_v2/:id/clone"
method: POST
path: "/authorization_v2/:id/clone"
tags: ["authorization_v2"]
---

# POST /authorization_v2/:id/clone

`POST /authorization_v2/:id/clone`

## Request

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

## Path parameters

- `id` integer, required

## Request body

- object

## Response `200`

OK

- object
  - `code` integer
  - `data` ModelAuthorizationV2
    - `access_control` ModelAccessControl
      - `cmd_ids` integer[]: Command control
      - `custom_time_ranges` ModelTimeRange[]: Direct definition
        - `end_time` string
        - `start_time` string
        - `weekdays` integer[]
      - `ip_whitelist` string[]
      - `max_sessions` integer
      - `session_timeout` integer
      - `template_ids` integer[]
      - `time_template` ModelTimeTemplateReference
        - `custom_ranges` ModelTimeRange[]: Additional custom time ranges
          - `end_time` string
          - `start_time` string
          - `weekdays` integer[]
        - `template_id` integer
        - `template_name` string: For display
      - `timezone` string
    - `account_selector` ModelTargetSelector
      - `exclude_ids` integer[]
      - `type` 'all' | 'ids' | 'regex' | 'tags'
      - `values` string[]
    - `asset_selector` ModelTargetSelector
      - `exclude_ids` integer[]
      - `type` 'all' | 'ids' | 'regex' | 'tags'
      - `values` string[]
    - `created_at` string
    - `creator_id` integer
    - `description` string
    - `enabled` boolean
    - `id` integer
    - `name` string
    - `node_selector` ModelTargetSelector
      - `exclude_ids` integer[]
      - `type` 'all' | 'ids' | 'regex' | 'tags'
      - `values` string[]
    - `permissions` ModelAuthPermissions
      - `connect` boolean
      - `copy` boolean
      - `file_download` boolean
      - `file_upload` boolean
      - `paste` boolean
      - `share` boolean
    - `resource_id` integer: Standard fields
    - `rids` integer[]: Role IDs for ACL integration
    - `updated_at` string
    - `updater_id` integer
    - `valid_from` ModelCustomTime
      - `time.Time` string
    - `valid_to` ModelCustomTime
      - `time.Time` string
  - `message` string

## Changes

- **2025-07-16** `788529308517`: 1 info
  - endpoint added
- **2025-03-02** `f6b1c099afda`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/veops/apis/veops-oneterm-api/changes/authorization_v2/:id/clone/post.md)

---

[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)
