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

# Update resource

`POST /resources/{projectId}/{resourceId}`

Update external 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 (replacing any existing file).

**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
- `resourceId` integer, required

## Response `200`

successful operation

- ResourceSchemaJson — unresolved $ref

---

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