HostedFile =
object
A hosted file.
id:
string
The unique Caido ID of the project.
name:
string
The name of the project.
path:
string
The path of the file.
HostedFileSDK =
object
The SDK for the HostedFile service.
create(
spec:HostedFileSpec):Promise<HostedFile>
Create a hosted file.
| Parameter | Type |
|---|---|
spec |
HostedFileSpec |
Promise<HostedFile>
await sdk.hostedFile.create({ name: "My File", content: "Hello, world!" });getAll():
Promise<HostedFile[]>
Get all hosted files.
Promise<HostedFile[]>
await sdk.hostedFile.getAll();HostedFileSpec =
object
A specification for creating a hosted file.
content:
Bytes
name:
string