---
title: "Publish all external resources"
method: POST
path: "/publish/external_resources/{sid}/{connection_id}"
tags: ["Publish projects"]
---

# Publish all external resources

`POST /publish/external_resources/{sid}/{connection_id}`

Publishes every external resource for the project to NADA. For each resource, metadata is POSTed to `{catalog}/index.php/api/resources/{study_idno}` with `overwrite` set to `yes`. If the resource has a stored file (`filename` is set and not an external URL), the file is then uploaded to `{catalog}/index.php/api/datasets/{study_idno}/files`, matching the single-resource publish behavior. Request body JSON (if any) is accepted but not applied.

## Path parameters

- `sid` string, required
- `connection_id` integer, required

## Request body

- object — Optional; unused by the server today

## Response `200`

Resources published successfully

- object[]
  - `resource` object — NADA response for the resource metadata POST
  - `resource_upload` object — NADA response for the file upload (only when a local file was attached)

## Other responses

- `400` — Bad request - project not found or publishing failed

## Changes

- **2026-04-20** `9d1903944c59` — 3 info
  - added optional request body
  - added the optional property `items/resource` to the response with the `200` status
  - added the optional property `items/resource_upload` to the response with the `200` status
- **2026-02-23** `5bfc4d9dc1c8` — 1 breaking, 2 warning
  - removed the request body
  - removed the optional property `items/resource` from the response with the `200` status
  - removed the optional property `items/resource_upload` from the response with the `200` status

[Change history](https://skmtc.dev/worldbank/apis/metadata-editor-api/changes/publish/external_resources/:sid/:connection_id/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)
