Signed URLs

[Internal] Get signed URL to upload a file by Resource

GET storage-signed-urls/local-tables/<str:resource>/upload/

Note

Authorized Roles: root, manager, backend

Get signed url to upload a file. The url must be called using the method PUT with the same content type set in the query parameter.

Resources available are: item, user, rating, interaction, user_id, user_to_items_reco, item_to_items_reco, analytics_report.

Query Parameters
  • name (string) – File name

  • content_type (string) – Optional. Content type of file

EXAMPLE QUERY PARAMS
  ?name=whitelist_file.csv
Response JSON Object
  • warnings (list-of-string) – Optional. List of warnings

  • url (string) – Signed url

EXAMPLE RESPONSE
  {
      "url": "https://stora...com/local-tables/Up131.../whitelist_file.csv?X-Goog-Algor...",
  }

[Internal] Get signed URL to download a file by Resource

GET storage-signed-urls/local-tables/<str:resource>/download/

Note

Authorized Roles: root, manager, backend

Get signed url to download a file. The url must be called using the method GET with the same content type set in the query parameter.

Resources available are: item, user, rating, interaction, user_id, user_to_items_reco, item_to_items_reco, analytics_report.

Read about analytics here: Analytics (a.k.a. KPIs)

Query Parameters
  • name (string) – File name

  • content_type (string) – Optional. Content type of file

EXAMPLE QUERY PARAMS
  ?name=reco_output_file.csv
Response JSON Object
  • warnings (list-of-string) – Optional. List of warnings

  • url (string) – Signed url

EXAMPLE RESPONSE
  {
      "url": "https://stora...com/local-tables/Up131.../reco_output_file.csv?X-Goog-Algor...",
  }