cURL
curl --request PUT \ --url https://dashboard.gratian.pro/api/v2/apps/{appId}/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "path": "<string>", "content": "<string>" } '
{ "success": true, "data": { "path": "index.js", "saved": true } }
Cria um novo arquivo ou atualiza o conteúdo de um arquivo existente.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Caminho completo do arquivo
Conteúdo do arquivo
Arquivo salvo com sucesso
true
Show child attributes