Skip to main content
PUT
/
bots
/
{id}
/
files
/
content
curl -X PUT https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/files/content \
  -H "Authorization: Bearer sess_..." \
  -H "Content-Type: application/json" \
  -d '{
    "path": "index.js",
    "content": "console.log(\"Hello World\");"
  }'
{
  "success": true,
  "data": { "path": "index.js" },
  "message": "File saved. Restart the bot to apply changes."
}

Documentation Index

Fetch the complete documentation index at: https://docs.phanomcloud.online/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required
UUID of the bot.

Body

path
string
required
Relative path of the file to write. Example: index.js or src/utils/helper.js. Max: 512 characters.
content
string
required
Text content to write to the file. Max: 1 MB.
curl -X PUT https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/files/content \
  -H "Authorization: Bearer sess_..." \
  -H "Content-Type: application/json" \
  -d '{
    "path": "index.js",
    "content": "console.log(\"Hello World\");"
  }'
{
  "success": true,
  "data": { "path": "index.js" },
  "message": "File saved. Restart the bot to apply changes."
}