v1/bags

GET /v1/bags

List all bags. No pagination is provided in this version. This method is deprecated and will be removed in v2.

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 bag 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:
GET /v1/bags/(uuid: bag_id)

Show a specific bag. This method is deprecated and will be removed in v2.

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:
GET /v1/bags/(uuid: bag_id)/events

List all events for the given bag. No pagination is provided in this version. This method is deprecated and will be removed in v2.

Request Headers:
 
Parameters:
  • bag_id (uuid) – Bag’s id
Response Headers:
 
Response JSON Array of Objects:
 
  • id (int) – The event’s id
  • type (string) – The event’s type.
  • executor (string) – The user’s username
  • outcome (string) – The result of the invent, whether it succeeded or failed.
  • detail (string) – Detailed information about the event.
  • date (date) – When the event was created
Status Codes: