v13

latestOpenAPI 3.0.32026-07-31359869.4 MB
deployments

Upload Deployment Files

Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.

post/v2/files

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Headers

'content-Length'number

The file size in bytes

The file size in bytes

'x-Vercel-Digest'string

The file SHA1 used to check the integrity

The file SHA1 used to check the integrity

'x-Now-Digest'string

The file SHA1 used to check the integrity

The file SHA1 used to check the integrity

'x-Now-Size'number

The file size as an alternative to Content-Length

The file size as an alternative to Content-Length

Response

File already uploaded File successfully uploaded

OR
object required

Example response

{
  "urls": [
    "example-upload.aws.com"
  ]
}