---
title: "Create a new resource"
method: POST
path: "/resources/"
tags: ["Resources"]
---

# Create a new resource

`POST /resources/`

Create a new resource associated with a registration.

## Request body

- object
  - `data` object, required
    - `type` string, required — Must be `resources`.
    - `attributes` object, required — Metadata about the new resource.
      - `description` string, required — Short text describing the resource.
      - `resource_type` string, required — Type of resource (e.g., data, materials).
    - `relationships` object, required — Relationships for the resource.
      - `registration` object — The registration this resource is linked to.
        - `data` object
          - `type` string, required — Must be `registrations`.
          - `id` string, required — ID of the related registration.

## Response `201`

Successfully created a new resource.

## Other responses

- `400` — Validation error or invalid data.
- `401` — Authentication required.
- `403` — Permission denied.

---

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