Skip to main content
PUT
/
api
/
v1
/
builders
/
{uuid}
/
files
Write a file to the builder
curl --request PUT \
  --url https://{subdomain}.mihu.ai/api/v1/builders/{uuid}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "main.py",
  "content": "<string>",
  "restart": false
}
'

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

Body

application/json
path
string
required
Example:

"main.py"

content
string
required
restart
boolean

Restart the app after writing.

Example:

false

Response

File written.