---
title: "Редактирование прав доступа"
method: PATCH
path: "/resource_templates/{resource_template}"
tags: ["Authorization"]
---

# Редактирование прав доступа

`PATCH /resource_templates/{resource_template}`

ResourceTemplateController ( privileges: Global: SYSTEM)

## Request body

- object
  - `temp_access` string, required — Права доступа

## Response `200`

Oк

- ResourceTemplate — Информация, описывающая шаблон: какие разрешения и для каких ресурсов
  - `id` integer — Идентификатор записи в таблице resource_templates
  - `resource_id` integer — Идентификатор ресурса в таблице resources
  - `template_id` integer — Идентификатор шаблона в таблице templates
  - `temp_access` string — Шаблон доступа к ресурсу
  - `owner_name` string — Наименование владельца - шаблона или ресурса

## Other responses

- `401` — пользователь не идентифицирован
- `403` — Недостаточно прав доступа
- `424` — нет содержимого или не хватаем входных параметров

---

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