---
title: "PUT /api/{version}/organizations/{orgId}/resources/{id}"
method: PUT
path: "/api/{version}/organizations/{orgId}/resources/{id}"
tags: ["Resource"]
---

# PUT /api/{version}/organizations/{orgId}/resources/{id}

`PUT /api/{version}/organizations/{orgId}/resources/{id}`

## Path parameters

- `id` string, required
- `orgId` string, required
- `version` string, required

## Request body

- UpdateResourceRequest
  - `name` string, nullable
  - `type` 'VALUE' | 'KEY_VALUE'
  - `data` IResourceItem
    - `resourceType` 'VALUE' | 'KEY_VALUE'
  - `scopeLevel` 'Global' | 'Organization' | 'Project'
  - `projectsScope` string[], nullable

## Response `200`

OK

- ResourceDtoItemResponse
  - `item` ResourceDto
    - `id` string, nullable
    - `name` string, nullable
    - `data` IResourceItem
      - `resourceType` 'VALUE' | 'KEY_VALUE'
    - `scope` ResourceScopeDto
      - `level` 'Global' | 'Organization' | 'Project'
      - `projectsScope` string[], nullable
  - `links` HateoasLink[], nullable
    - `relation` string, nullable
    - `uri` string, nullable
    - `method` string, nullable

## Other responses

- `400` — Validation failed

---

[API](https://skmtc.net/data-grapes/apis/grapes-api.md) · [All operations](https://skmtc.net/data-grapes/apis/grapes-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/data-grapes/grapes-api/revisions/8ff77fe45bba/schema)
