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)

Changes

Changed in 2 of the 12 revisions of this API.123

    • added optional request body

      request-body-added-optional

    • added the optional property items/resource to the response with the 200 status

      response-optional-property-added

    • added the optional property items/resource_upload to the response with the 200 status

      response-optional-property-added

  • 5bfc4d9dc1c812See the full diff
    • removed the request body

      request-body-removed

    • removed the optional property items/resource from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/resource_upload from the response with the 200 status

      response-optional-property-removed

    This revision also has 37 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog