---
title: "Create resource"
method: POST
path: "/resources/{projectId}"
tags: ["External resources"]
---

# Create resource

`POST /resources/{projectId}`

Create a new resource for a project. This endpoint accepts multipart/form-data to allow file uploads along with resource metadata.

**File Upload**: If the 'file' parameter is provided, the file will be uploaded and attached to the resource.

**Filename/URL**: The 'filename' parameter (string) can be used to specify either a filename or a URL. This is separate from the file upload.

## Path parameters

- `projectId` integer, required

## Response `200`

successful operation

- ResourceSchemaJson — unresolved $ref

## Changes

- **2026-05-07** `8a07cfd7b757` — 1 info
  - added the new optional request property `overwrite`
- **2026-02-23** `5bfc4d9dc1c8` — 1 warning
  - removed the request property `overwrite`

[Change history](https://skmtc.dev/worldbank/apis/metadata-editor-api/changes/resources/:projectId/post.md)

---

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