Upload Deployment Files
Changed onBefore 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.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v2/files
- Auth: HTTP bearer
Query parameters
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Headers
The file size in bytes
The file SHA1 used to check the integrity
The file SHA1 used to check the integrity
The file size as an alternative to Content-Length
Request body application/octet-stream
Response
File already uploaded File successfully uploaded
Example response
{
"urls": [
"example-upload.aws.com"
]
}Changes
- info
added the non-success response with the status
- info
- warning
deleted the
headerrequest parameter'content-Length' - warning
deleted the
headerrequest parameter'x-Now-Digest' - warning
deleted the
headerrequest parameter'x-Now-Size' - warning
deleted the
headerrequest parameter'x-Vercel-Digest' - info
added the new optional
headerrequest parameterContent-Length - info
added the new optional
headerrequest parameterx-now-digest - info
added the new optional
headerrequest parameterx-now-size - info
added the new optional
headerrequest parameterx-vercel-digest
- warning