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

# PUT /authorization_v2/:id

`PUT /authorization_v2/:id`

## Path parameters

- `id` integer, required

## Request body

- 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

## Response `200`

OK

---

[API](https://skmtc.dev/veops/apis/untitled-api-3.md) · [All operations](https://skmtc.dev/veops/apis/untitled-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/veops/untitled-api-3/revisions/d7525cb4e839/schema)
