v1

latestOpenAPI 3.0.02026-07-1717466209.0 KB
Publish projects

Publish all external resources

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.

post/publish/external_resources/{sid}/{connection_id}

Path parameters

sidstring required

Project ID or IDNO

connection_idinteger required

Catalog connection ID

Request body

object required

Optional; unused by the server today

Response

Resources published successfully

resourceobject

NADA response for the resource metadata POST

resource_uploadobject

NADA response for the file upload (only when a local file was attached)