files
Overview
Name | files |
Type | Resource |
Id | vercel.deployments.files |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the file tree entry |
children | array | The list of children files of the directory (only valid for the directory type) |
contentType | string | The content-type of the file (only valid for the file type) |
mode | number | The file "mode" indicating file type and permissions. |
symlink | string | Not currently used. See file-list-to-tree.ts . |
type | string | String indicating the type of file tree entry. |
uid | string | The unique identifier of the file (only valid for the file type) |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_deployment_files | SELECT | id, teamId | Allows to retrieve the file structure of a deployment by supplying the deployment unique identifier. |
get_deployment_file_contents | EXEC | fileId, id, teamId | Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain the raw content of the file. |
upload_file | EXEC | teamId | 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. |