---
title: "Update a resource"
method: PATCH
path: "/resources/{resource_id}/"
tags: ["Resources"]
---

# Update a resource

`PATCH /resources/{resource_id}/`

Update one or more metadata fields of a specific resource.

Only the fields provided in the request payload will be updated.

## Path parameters

- `resource_id` string, required

## Request body

- object
  - `data` object, required
    - `id` string, required — The ID of the resource being updated.
    - `type` string, required — The resource type — must be `"resources"`.
    - `attributes` object, required
      - `description` string — A short description of the resource.
      - `resource_type` string — Type of the resource. Allowed values: - data - analytic_code - materials - papers - supplements
      - `finalized` boolean — Whether the resource is finalized (locked for editing).
      - `pid` string — A persistent identifier (e.g. DOI) for the resource.

## Response `200`

Resource updated successfully.

## Other responses

- `400` — Validation error or malformed request data.
- `401` — Authentication required.
- `403` — Permission denied.
- `404` — Resource not found.

---

[API](https://skmtc.net/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.net/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/revisions/ca701048eb0d/schema)
