v1/requests

GET /v1/requests

List all requests. No pagination is provided in this version.

Request Headers:
 
Response Headers:
 
Response JSON Object:
 
  • bag_id (uuid) – bag’s id
  • user (string) – Owning user’s username
  • content_type (enum) – The content type of the object.
  • external_id (string) – The package’s id in its external service
  • upload_link (url) – Rsync link client should use to upload package
  • storage_location (filepath) – The location of the package on disk. This field is only shown to admins.
  • stored (boolean) – Whether the package has been stored for preservation.
  • created_at (date) – Datetime when the object was created
  • updated_at (date) – Datetime when the object was last changed
Status Codes:
POST /v1/requests

Create a new request. Admins may specify the user. For regular users, this field is ignored.

Request Headers:
 
Request JSON Object:
 
  • bag_id (uuid) – bag’s id
  • content_type (enum) – The content type of the object.
  • external_id (string) – The package’s id in its external service
Response Headers:
 
Status Codes:
GET /v1/requests/(uuid: bag_id)

Show a specific request

Request Headers:
 
Parameters:
  • bag_id (uuid) – Bag’s id
Response Headers:
 
Response JSON Object:
 
  • bag_id (uuid) – bag’s id
  • user (string) – Owning user’s username
  • content_type (enum) – The content type of the object.
  • external_id (string) – The package’s id in its external service
  • upload_link (url) – Rsync link client should use to upload package
  • storage_location (filepath) – The location of the bag on disk. This field is only shown to admins.
  • stored (boolean) – Whether the package has been stored for preservation.
  • files (array) – The list of files in the bag.
  • created_at (date) – Datetime when the object was created
  • updated_at (date) – Datetime when the object was last changed
Status Codes:
POST /v1/requests/(uuid: bag_id)/complete

Notify the server that a request’s upload has been completed. :reqheader Authorization: Bearer token

Parameters:
  • bag_id (uuid) – Bag’s id
Response Headers:
 
Status Codes: