Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Atualiza os metadados de um arquivo existente
CHARGEFY_ACCESS_TOKEN
Authorization
id
string
name
curl -X PATCH "https://api.chargefy.io/api/v1/files/file_abc123" \ -H "Authorization: Bearer $CHARGEFY_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "guia-completo-v2.pdf" }'
import { Chargefy } from '@chargefy/sdk'; const chargefy = new Chargefy({ accessToken: process.env.CHARGEFY_ACCESS_TOKEN, }); const file = await chargefy.files.update('file_abc123', { name: 'guia-completo-v2.pdf', });
{ "id": "file_abc123", "name": "guia-completo-v2.pdf", "mimeType": "application/pdf", "size": 2456789, "publicUrl": "https://cdn.chargefy.io/files/file_abc123/guia-completo-v2.pdf", "createdAt": "2026-02-15T10:00:00Z" }