Liftbay
API referenceUpdates

Prepare file uploads for an update

POST
/v1/orgs/{org}/projects/{project}/updates/files

Send the SHA-256, size and type of every file in the update. Returns signed upload URLs for files not stored yet; files already stored (from earlier releases) are skipped.

Authorization

cookielb_session<token>

Dashboard session cookie, set by the sign-in endpoints.

Path Parameters

org*string

Organization slug

project*string

Project slug

Request Body

application/json
  1. body
files*array<>
Items1 <= items <= 5000

Response Body

OK

application/json
  1. response
missing*array<>
alreadyStored*number
curl -X POST "https://example.com/v1/orgs/string/projects/string/updates/files" \  -H "Content-Type: application/json" \  -d '{    "files": [      {        "sha256": "string",        "sizeBytes": 1,        "contentType": "string"      }    ]  }'
{  "missing": [    {      "sha256": "string",      "uploadUrl": "string"    }  ],  "alreadyStored": 0}