Skip to main content

files

Creates, updates, deletes, gets or lists a files resource.

Overview​

Namefiles
TypeResource
Idvercel.deployments.files

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
uploadexecvalueContent-Length, x-vercel-digest, x-now-digest, x-now-size, teamId, slugBefore 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
Content-LengthnumberThe file size in bytes
slugstringThe Team slug to perform the request on behalf of.
teamIdstringThe Team identifier to perform the request on behalf of.
x-now-digeststringThe file SHA1 used to check the integrity
x-now-sizenumberThe file size as an alternative to Content-Length
x-vercel-digeststringThe file SHA1 used to check the integrity

Lifecycle Methods​

EXEC variables use wire (API) names.

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.

EXEC vercel.deployments.files.upload
@Content-Length='{{ Content-Length }}',
@x-vercel-digest='{{ x-vercel-digest }}',
@x-now-digest='{{ x-now-digest }}',
@x-now-size='{{ x-now-size }}',
@teamId='{{ teamId }}',
@slug='{{ slug }}'
@@json=
'{
"value": "{{ value }}"
}'
;