new_storage_location: Post entry to storage_location table

View source: R/new_storage_location.R

new_storage_locationR Documentation

Post entry to storage_location table

Description

Upload information to the storage_location table in the data registry

Usage

new_storage_location(
  path,
  hash,
  public,
  storage_root_url,
  endpoint = "http://127.0.0.1:8000/api/"
)

Arguments

path

a string specifying the path from the storage_root URI to the item location, which when appended to storage_root URI produces a complete URL

hash

a string specifying the SHA1 hash of a file stored in storage_location

public

a boolean indicating whether the storage_location is public or not (default is TRUE)

storage_root_url

a string specifying the URL of an entry in the storage_root table

endpoint

a string specifying the registry endpoint

See Also

Other new functions: new_author(), new_code_repo_release(), new_code_run(), new_data_product(), new_external_object(), new_file_type(), new_issue(), new_keyword(), new_licence(), new_namespace(), new_object(), new_object_component(), new_quality_controlled(), new_storage_root(), new_user_author()


FAIRDataPipeline/rDataPipeline documentation built on Dec. 4, 2024, 4:09 a.m.