Attachments API

Attachments API Reference

get  /archivist/v1/{identity}

Get an attachment

Description: Returns the attachment associated with the relative resource name

Responses Description
200A successful response.(streaming responses)
401Returned when the user is not authenticated to the system.
403Returned when the user is not authorized to read the attachment.
404Returned when an attachment with the identity does not exist.
defaultAn unexpected error response.

get  /archivist/v1/{identity}/info

Get attachment metadata

Description: Gets the metadata associated an attachment uuid

{
  "hash": {
    "alg": "SHA256",
    "value": "717903f32653f07cd895cfe89ca18ff4ca35f825afa7fe17bcb5cb13bf628be0"
  },
  "identity": "attachments/20c97f42-87fc-482c-9d58-4d11abd33359",
  "mime_type": "image/jpeg",
  "size": 1024,
  "timestamp_accepted": "2019-06-22 14:41:32+00:00"
}
Response Parameter Type Description
hash
identity string Relative resource name for the attachment. e.g. attachments/20c97f42-87fc-482c-9d58-4d11abd33359
mime_type string Type of data e.g. image/jpeg
size string Size of blob in bytes
timestamp_accepted string Timestamp of creation
Responses Description
200A successful response.
401Returned when the user is not authenticated to the system.
403Returned when the user is not authorized to read the attachment.
404Returned when an attachment with the identity does not exist.
defaultAn unexpected error response.

Edit this page on GitHub