files
Creates, updates, deletes, gets or lists a files resource.
Overview​
| Name | files |
| Type | Resource |
| Id | vercel.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
upload | exec | value | Content-Length, x-vercel-digest, x-now-digest, x-now-size, teamId, slug | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
Content-Length | number | The file size in bytes |
slug | string | The Team slug to perform the request on behalf of. |
teamId | string | The Team identifier to perform the request on behalf of. |
x-now-digest | string | The file SHA1 used to check the integrity |
x-now-size | number | The file size as an alternative to Content-Length |
x-vercel-digest | string | The file SHA1 used to check the integrity |
Lifecycle Methods​
EXEC variables use wire (API) names.
- upload
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 }}"
}'
;